public class TextLayoutChange
extends java.lang.Object
TextLayoutChange class provides an information of
changes in a layout made on a TextLayout object.TextLayout| 修飾子とタイプ | フィールドと説明 |
|---|---|
int |
changeStatus
The change status.
|
static int |
FULL_REPAINT
Constant for the full repaint.
|
int |
heightChanged
The height changed.
|
static int |
NO_REPAINT
Constant for no repaint.
|
TextPositionInfo |
paintBegin
The beginning position to repaint, inclusive.
|
TextPositionInfo |
paintEnd
The ending position to repaint, exclusive.
|
boolean |
paintFromLineBegin
True if repainting is needed from the beginning of the line.
|
boolean |
paintToLineEnd
True if repainting is needed to the ending of the line.
|
static int |
PARTIAL_REPAINT
Constant for the partial repaint.
|
int |
widthChanged
The width changed.
|
| コンストラクタと説明 |
|---|
TextLayoutChange(int changeStatus)
Constructs a non or full change information.
|
TextLayoutChange(TextPositionInfo paintBegin,
TextPositionInfo paintEnd,
boolean paintFromLineBegin,
boolean paintToLineEnd,
int heightChanged,
int widthChanged)
Constructs a partial change information with the specified informations.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
isFullRepaint()
Checks if the full repainting is needed.
|
boolean |
isNoRepaint()
Checks if no repainting is needed.
|
boolean |
isPartialRepaint()
Checks if the partial repainting is needed.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
public int changeStatus
PARTIAL_REPAINT,
NO_REPAINT,
FULL_REPAINTpublic TextPositionInfo paintBegin
public TextPositionInfo paintEnd
public boolean paintFromLineBegin
public boolean paintToLineEnd
public int heightChanged
public int widthChanged
public static final int PARTIAL_REPAINT
public static final int NO_REPAINT
public static final int FULL_REPAINT
public TextLayoutChange(TextPositionInfo paintBegin, TextPositionInfo paintEnd, boolean paintFromLineBegin, boolean paintToLineEnd, int heightChanged, int widthChanged)
paintBegin - the beginning position to repaint, inclusive.paintEnd - the ending position to repaint, exclusive.paintFromLineBegin - true if repainting is needed from the
beginning of the line.paintToLineEnd - true if repainting is needed to the ending
of the line.heightChanged - the height changed.widthChanged - the width changed.public TextLayoutChange(int changeStatus)
changeStatus - the change status. NO_REPAINT and
FULL_REPAINT are valied.public boolean isPartialRepaint()
public boolean isNoRepaint()
public boolean isFullRepaint()
public java.lang.String toString()
toString クラス内 java.lang.Object