All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.text.TextLayoutChange

java.lang.Object
   |
   +----jp.kyasu.graphics.text.TextLayoutChange

public class TextLayoutChange
extends Object
The TextLayoutChange class provides an information of changes in a layout made on a TextLayout object.

Version:
11 Dec 1997
Author:
Kazuki YASUMATSU
See Also:
TextLayout

Variable Index

 o changeStatus
The change status.
 o FULL_REPAINT
Constant for the full repaint.
 o heightChanged
The height changed.
 o NO_REPAINT
Constant for no repaint.
 o paintBegin
The beginning position to repaint, inclusive.
 o paintEnd
The ending position to repaint, exclusive.
 o paintFromLineBegin
True if repainting is needed from the beginning of the line.
 o paintToLineEnd
True if repainting is needed to the ending of the line.
 o PARTIAL_REPAINT
Constant for the partial repaint.
 o widthChanged
The width changed.

Constructor Index

 o TextLayoutChange(int)
Constructs a non or full change information.
 o TextLayoutChange(TextPositionInfo, TextPositionInfo, boolean, boolean, int, int)
Constructs a partial change information with the specified informations.

Method Index

 o isFullRepaint()
Checks if the full repainting is needed.
 o isNoRepaint()
Checks if no repainting is needed.
 o isPartialRepaint()
Checks if the partial repainting is needed.
 o toString()
Returns a string representation of this object.

Variables

 o changeStatus
 public int changeStatus
The change status.

See Also:
PARTIAL_REPAINT, NO_REPAINT, FULL_REPAINT
 o paintBegin
 public TextPositionInfo paintBegin
The beginning position to repaint, inclusive. This variable is valid when partail repainting is needed.

 o paintEnd
 public TextPositionInfo paintEnd
The ending position to repaint, exclusive. This variable is valid when partail repainting is needed.

 o paintFromLineBegin
 public boolean paintFromLineBegin
True if repainting is needed from the beginning of the line. This variable is valid when partail repainting is needed.

 o paintToLineEnd
 public boolean paintToLineEnd
True if repainting is needed to the ending of the line. This variable is valid when partail repainting is needed.

 o heightChanged
 public int heightChanged
The height changed. This variable is valid when partail repainting is needed.

 o widthChanged
 public int widthChanged
The width changed. This variable is valid when partail repainting is needed.

 o PARTIAL_REPAINT
 public static final int PARTIAL_REPAINT
Constant for the partial repaint.

 o NO_REPAINT
 public static final int NO_REPAINT
Constant for no repaint.

 o FULL_REPAINT
 public static final int FULL_REPAINT
Constant for the full repaint.

Constructors

 o TextLayoutChange
 public TextLayoutChange(TextPositionInfo paintBegin,
                         TextPositionInfo paintEnd,
                         boolean paintFromLineBegin,
                         boolean paintToLineEnd,
                         int heightChanged,
                         int widthChanged)
Constructs a partial change information with the specified informations.

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

Parameters:
changeStatus - the change status. NO_REPAINT and FULL_REPAINT are valied.

Methods

 o isPartialRepaint
 public boolean isPartialRepaint()
Checks if the partial repainting is needed.

 o isNoRepaint
 public boolean isNoRepaint()
Checks if no repainting is needed.

 o isFullRepaint
 public boolean isFullRepaint()
Checks if the full repainting 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