All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.text.TextPositionInfo

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

public class TextPositionInfo
extends TextLineInfo
The TextPositionInfo class provides an information of position in TextLayout.

Version:
09 Dec 1997
Author:
Kazuki YASUMATSU

Variable Index

 o lineIndex
The index of line at this position.
 o textIndex
The index of text at this position.
 o x
The x position.

Constructor Index

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

Method Index

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

Variables

 o textIndex
 public int textIndex
The index of text at this position.

 o lineIndex
 public int lineIndex
The index of line at this position.

 o x
 public int x
The x position.

Constructors

 o TextPositionInfo
 public TextPositionInfo()
Constructs an empty text position information.

 o 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)
Constructs a text position information with the specified informations.

Parameters:
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.
 o TextPositionInfo
 public TextPositionInfo(int textIndex,
                         int lineIndex,
                         int x,
                         TextLineInfo lineInfo)
Constructs a text position information with the specified text line information and other informations.

Parameters:
textIndex - the index of text.
lineIndex - the index of line.
x - the x position.
lineInfo - the text line information.
 o TextPositionInfo
 public TextPositionInfo(TextPositionInfo posInfo)
Constructs a text position information with the same information as the specified text position information.

Parameters:
posInfo - the text position information.

Methods

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

Overrides:
paramString in class TextLineInfo

All Packages  Class Hierarchy  This Package  Previous  Next  Index