public class TextPositionInfo extends TextLineInfo
TextPositionInfo class provides an information of
position in TextLayout.| 修飾子とタイプ | フィールドと説明 |
|---|---|
int |
lineIndex
The index of line at this position.
|
int |
textIndex
The index of text at this position.
|
int |
x
The x position.
|
baseline, isParagraphMark, lineBegin, lineEnd, lineHeight, lineSkip, paragraphStyle, remainWidth, y| コンストラクタと説明 |
|---|
TextPositionInfo()
Constructs an empty text position information.
|
TextPositionInfo(int textIndex,
int lineIndex,
int x,
int y,
int lineBegin,
int lineEnd,
int remainWidth,
int lineHeight,
int lineSkip,
int baseline,
ParagraphStyle paragraphStyle,
boolean isParagraphMark)
Constructs a text position information with the specified informations.
|
TextPositionInfo(int textIndex,
int lineIndex,
int x,
TextLineInfo lineInfo)
Constructs a text position information with the specified text line
information and other informations.
|
TextPositionInfo(TextPositionInfo posInfo)
Constructs a text position information with the same information
as the specified text position information.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.String |
paramString()
Returns a string representation of the parameters.
|
toStringpublic int textIndex
public int lineIndex
public int x
public TextPositionInfo()
public TextPositionInfo(int textIndex,
int lineIndex,
int x,
int y,
int lineBegin,
int lineEnd,
int remainWidth,
int lineHeight,
int lineSkip,
int baseline,
ParagraphStyle paragraphStyle,
boolean isParagraphMark)
textIndex - the index of text.lineIndex - the index of line.x - the x position.y - the y position.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.paragraphStyle - the paragraph style.isParagraphMark - truewhen end of a paragraph.public TextPositionInfo(int textIndex,
int lineIndex,
int x,
TextLineInfo lineInfo)
textIndex - the index of text.lineIndex - the index of line.x - the x position.lineInfo - the text line information.public TextPositionInfo(TextPositionInfo posInfo)
posInfo - the text position information.public java.lang.String paramString()
paramString クラス内 TextLineInfo