public interface SVGTextContent
Modifier and Type | Method and Description |
---|---|
int |
getCharNumAtPosition(float x,
float y) |
float |
getComputedTextLength() |
java.awt.geom.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.
|
java.awt.geom.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.
|
java.awt.geom.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.
|
int getNumberOfChars()
java.awt.geom.Rectangle2D getExtentOfChar(int charnum)
charnum
- The index of the character, where the
first character has an index of 0.java.awt.geom.Point2D getStartPositionOfChar(int charnum)
charnum
- The index of the character, where the
first character has an index of 0.java.awt.geom.Point2D getEndPositionOfChar(int charnum)
charnum
- The index of the character, where the
first character has an index of 0.float getRotationOfChar(int charnum)
charnum
- The index of the character, where the
first character has an index of 0.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.float getComputedTextLength()
float getSubStringLength(int charnum, int nchars)
int getCharNumAtPosition(float x, float y)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.