All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.graphics.text.TextChange
java.lang.Object
|
+----jp.kyasu.graphics.text.TextChange
- public class TextChange
- extends Object
The TextChange
class provides an information of changes
made on a RichText
object.
- Version:
- 11 Dec 1997
- Author:
- Kazuki YASUMATSU
- See Also:
- RichText
-
begin
- The beginning index of the text changed, inclusive.
-
changeStatus
- The change status.
-
end
- The ending index of the text changed, exclusive.
-
FULL_LAYOUT
- Constant for the full layout.
-
layoutBegin
- The beginning index of the text to be laid out, inclusive.
-
layoutEnd
- The ending index of the text to be laid out, exclusive.
-
lengthChanged
- The length changed.
-
NO_LAYOUT
- Constant for the no layout.
-
paragraphStyleChanged
- True if the paragraph style at the
layoutBegin
index
of the text was changed.
-
PARTIAL_LAYOUT
- Constant for the partial layout.
-
textReplaced
- True if the text was replaced.
-
TextChange(int)
- Constructs a non or full change information.
-
TextChange(int, int, int, int, int, boolean, boolean)
- Constructs a partial change information.
-
isFullLayout()
- Checks if the full layout is needed.
-
isNoLayout()
- Checks if no layout is needed.
-
isPartialLayout()
- Checks if the partial layout is needed.
-
toString()
- Returns a string representation of this object.
changeStatus
public int changeStatus
- The change status.
- See Also:
- PARTIAL_LAYOUT, NO_LAYOUT, FULL_LAYOUT
begin
public int begin
- The beginning index of the text changed, inclusive.
This variable is valid when partail layout is needed.
end
public int end
- The ending index of the text changed, exclusive.
This variable is valid when partail layout is needed.
layoutBegin
public int layoutBegin
- The beginning index of the text to be laid out, inclusive.
This variable is valid when partail layout is needed.
layoutEnd
public int layoutEnd
- The ending index of the text to be laid out, exclusive.
This variable is valid when partail layout is needed.
lengthChanged
public int lengthChanged
- The length changed.
This variable is valid when partail layout is needed.
textReplaced
public boolean textReplaced
- True if the text was replaced.
This variable is valid when partail layout is needed.
paragraphStyleChanged
public boolean paragraphStyleChanged
- True if the paragraph style at the
layoutBegin
index
of the text was changed.
This variable is valid when partail layout is needed.
PARTIAL_LAYOUT
public static final int PARTIAL_LAYOUT
- Constant for the partial layout.
NO_LAYOUT
public static final int NO_LAYOUT
- Constant for the no layout.
FULL_LAYOUT
public static final int FULL_LAYOUT
- Constant for the full layout.
TextChange
public TextChange(int begin,
int end,
int layoutBegin,
int layoutEnd,
int lengthChanged,
boolean textReplaced,
boolean paragraphStyleChanged)
- Constructs a partial change information.
- Parameters:
- begin - the beginning index of the text changed,
inclusive.
- end - the ending index of the text changed,
exclusive.
- layoutBegin - the beginning index of the text to be
laid out, inclusive.
- layoutEnd - the ending index of the text to be laid
out, exclusive.
- lengthChanged - the length changed.
- textReplaced -
true
if the text was replaced.
- paragraphStyleChanged -
true
if the paragraph style
at the layoutBegin
index of
the text was changed.
TextChange
public TextChange(int changeStatus)
- Constructs a non or full change information.
- Parameters:
- changeStatus - the change status.
NO_LAYOUT
and
FULL_LAYOUT
are valied.
isPartialLayout
public boolean isPartialLayout()
- Checks if the partial layout is needed.
isNoLayout
public boolean isNoLayout()
- Checks if no layout is needed.
isFullLayout
public boolean isFullLayout()
- Checks if the full layout is needed.
toString
public String toString()
- Returns a string representation of this object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index