All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.text.TextLineInfo

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

public class TextLineInfo
extends Object
The TextLineInfo class provides an information of the line in TextLayout.

Version:
09 Dec 1997
Author:
Kazuki YASUMATSU

Variable Index

 o baseline
The baseline of this line.
 o isParagraphMark
True when this line is end of a paragraph.
 o lineBegin
The beginning text index of this line, inclusive.
 o lineEnd
The ending text index of this line, exclusive.
 o lineHeight
The height of this line.
 o lineSkip
The skip space of this line, that is, the line height plus an optional space after line and an optional space after paragraph (lineHeight + lineSpace + paragraphSpace).
 o paragraphStyle
The paragraph style of this line.
 o remainWidth
The remaining width (the remaining space) of this line.
 o y
The top position of this line.

Constructor Index

 o TextLineInfo()
Constructs an empty text line information.
 o TextLineInfo(int, int, int, int, int, int, int, ParagraphStyle, boolean)
Constructs a text line information with the specified informations.
 o TextLineInfo(TextLineInfo)
Constructs a text line information with the same information as the specified text line information.

Method Index

 o paramString()
Returns a string representation of the parameters.
 o toString()
Returns a string representation of this object.

Variables

 o lineBegin
 public int lineBegin
The beginning text index of this line, inclusive.

 o lineEnd
 public int lineEnd
The ending text index of this line, exclusive.

 o remainWidth
 public int remainWidth
The remaining width (the remaining space) of this line. The remaining width is roughly same as: the width of a TextLayout - the width of a text from beginIndex to endIndex.

 o lineHeight
 public int lineHeight
The height of this line.

 o lineSkip
 public int lineSkip
The skip space of this line, that is, the line height plus an optional space after line and an optional space after paragraph (lineHeight + lineSpace + paragraphSpace).

 o baseline
 public int baseline
The baseline of this line.

 o y
 public int y
The top position of this line.

 o paragraphStyle
 public ParagraphStyle paragraphStyle
The paragraph style of this line.

 o isParagraphMark
 public boolean isParagraphMark
True when this line is end of a paragraph.

Constructors

 o TextLineInfo
 public TextLineInfo()
Constructs an empty text line information.

 o TextLineInfo
 public TextLineInfo(int lineBegin,
                     int lineEnd,
                     int remainWidth,
                     int lineHeight,
                     int lineSkip,
                     int baseline,
                     int lineTop,
                     ParagraphStyle paragraphStyle,
                     boolean isParagraphMark)
Constructs a text line information with the specified informations.

Parameters:
lineBegin - the beginning text index.
lineEnd - the ending text index.
remainWidth - the remaining width.
lineHeight - the height.
lineSkip - the height plus space after line and paragraph.
baseline - the baseline.
lineTop - the top position of line.
paragraphStyle - the paragraph style.
isParagraphMark - truewhen end of a paragraph.
 o TextLineInfo
 public TextLineInfo(TextLineInfo lineInfo)
Constructs a text line information with the same information as the specified text line information.

Parameters:
lineInfo - the text line information.

Methods

 o paramString
 public String paramString()
Returns a string representation of the parameters.

 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