|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class provides the interface for the SVGTextContentElement for the bridge to implement.
| Method Summary | |
int |
getCharNumAtPosition(float x,
float y)
|
float |
getComputedTextLength()
|
Point2D |
getEndPositionOfChar(int charnum)
Returns the current text position after rendering the character in the user coordinate system for rendering the glyph(s) that correspond to the specified character. |
Rectangle2D |
getExtentOfChar(int charnum)
Returns a tightest rectangle which defines the minimum and maximum X and Y values in the user coordinate system for rendering the glyph(s) that correspond to the specified character. |
int |
getNumberOfChars()
Returns the total number of characters to be rendered within the current element. |
float |
getRotationOfChar(int charnum)
Returns the rotation value relative to the current user coordinate system used to render the glyph(s) corresponding to the specified character. |
Point2D |
getStartPositionOfChar(int charnum)
Returns the current text position before rendering the character in the user coordinate system for rendering the glyph(s) that correspond to the specified character. |
float |
getSubStringLength(int charnum,
int nchars)
|
void |
selectSubString(int charnum,
int nchars)
Causes the specified substring to be selected just as if the user selected the substring interactively. |
| Method Detail |
public int getNumberOfChars()
public Rectangle2D getExtentOfChar(int charnum)
charnum - The index of the character, where the
first character has an index of 0.
public Point2D getStartPositionOfChar(int charnum)
charnum - The index of the character, where the
first character has an index of 0.
public Point2D getEndPositionOfChar(int charnum)
charnum - The index of the character, where the
first character has an index of 0.
public float getRotationOfChar(int charnum)
charnum - The index of the character, where the
first character has an index of 0.
public void selectSubString(int charnum,
int nchars)
charnum - : The index of the start character
which is at the given point, where the first
character has an index of 0.nchars - : The number of characters in the
substring. If nchars specifies more characters
than are available, then the substring will
consist of all characters starting with charnum
until the end of the list of characters.public float getComputedTextLength()
public float getSubStringLength(int charnum,
int nchars)
public int getCharNumAtPosition(float x,
float y)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||