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
-
baseline
- The baseline of this line.
-
isParagraphMark
- True when this line is end of a paragraph.
-
lineBegin
- The beginning text index of this line, inclusive.
-
lineEnd
- The ending text index of this line, exclusive.
-
lineHeight
- The height of this line.
-
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
).
-
paragraphStyle
- The paragraph style of this line.
-
remainWidth
- The remaining width (the remaining space) of this line.
-
y
- The top position of this line.
-
TextLineInfo()
- Constructs an empty text line information.
-
TextLineInfo(int, int, int, int, int, int, int, ParagraphStyle, boolean)
- Constructs a text line information with the specified informations.
-
TextLineInfo(TextLineInfo)
- Constructs a text line information with the same information
as the specified text line information.
-
paramString()
- Returns a string representation of the parameters.
-
toString()
- Returns a string representation of this object.
lineBegin
public int lineBegin
- The beginning text index of this line, inclusive.
lineEnd
public int lineEnd
- The ending text index of this line, exclusive.
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.
lineHeight
public int lineHeight
- The height of this line.
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
).
baseline
public int baseline
- The baseline of this line.
y
public int y
- The top position of this line.
paragraphStyle
public ParagraphStyle paragraphStyle
- The paragraph style of this line.
isParagraphMark
public boolean isParagraphMark
- True when this line is end of a paragraph.
TextLineInfo
public TextLineInfo()
- Constructs an empty text line information.
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 -
true
when end of a paragraph.
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.
paramString
public String paramString()
- Returns a string representation of the parameters.
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