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

Variable Index

 o begin
The beginning index of the text changed, inclusive.
 o changeStatus
The change status.
 o end
The ending index of the text changed, exclusive.
 o FULL_LAYOUT
Constant for the full layout.
 o layoutBegin
The beginning index of the text to be laid out, inclusive.
 o layoutEnd
The ending index of the text to be laid out, exclusive.
 o lengthChanged
The length changed.
 o NO_LAYOUT
Constant for the no layout.
 o paragraphStyleChanged
True if the paragraph style at the layoutBegin index of the text was changed.
 o PARTIAL_LAYOUT
Constant for the partial layout.
 o textReplaced
True if the text was replaced.

Constructor Index

 o TextChange(int)
Constructs a non or full change information.
 o TextChange(int, int, int, int, int, boolean, boolean)
Constructs a partial change information.

Method Index

 o isFullLayout()
Checks if the full layout is needed.
 o isNoLayout()
Checks if no layout is needed.
 o isPartialLayout()
Checks if the partial layout is needed.
 o toString()
Returns a string representation of this object.

Variables

 o changeStatus
 public int changeStatus
The change status.

See Also:
PARTIAL_LAYOUT, NO_LAYOUT, FULL_LAYOUT
 o begin
 public int begin
The beginning index of the text changed, inclusive. This variable is valid when partail layout is needed.

 o end
 public int end
The ending index of the text changed, exclusive. This variable is valid when partail layout is needed.

 o layoutBegin
 public int layoutBegin
The beginning index of the text to be laid out, inclusive. This variable is valid when partail layout is needed.

 o layoutEnd
 public int layoutEnd
The ending index of the text to be laid out, exclusive. This variable is valid when partail layout is needed.

 o lengthChanged
 public int lengthChanged
The length changed. This variable is valid when partail layout is needed.

 o textReplaced
 public boolean textReplaced
True if the text was replaced. This variable is valid when partail layout is needed.

 o 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.

 o PARTIAL_LAYOUT
 public static final int PARTIAL_LAYOUT
Constant for the partial layout.

 o NO_LAYOUT
 public static final int NO_LAYOUT
Constant for the no layout.

 o FULL_LAYOUT
 public static final int FULL_LAYOUT
Constant for the full layout.

Constructors

 o 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.
 o TextChange
 public TextChange(int changeStatus)
Constructs a non or full change information.

Parameters:
changeStatus - the change status. NO_LAYOUT and FULL_LAYOUT are valied.

Methods

 o isPartialLayout
 public boolean isPartialLayout()
Checks if the partial layout is needed.

 o isNoLayout
 public boolean isNoLayout()
Checks if no layout is needed.

 o isFullLayout
 public boolean isFullLayout()
Checks if the full layout is needed.

 o 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