public class TextFragment extends NativeObject
Modifier and Type | Method and Description |
---|---|
static TextFragment |
createDynamicObject(long handle) |
Rectangle |
getBoundingBox()
the bounding box (Getter)
|
double |
getCharacterSpacing()
The additional spacing between glyphs (Getter)
|
Fill |
getFill()
This text fragment's parameters for filling the text or
null if the text is not filled |
double |
getFontSize()
The font size (Getter)
|
double |
getHorizontalScaling()
The horizontal scaling factor (Getter)
|
double |
getRise()
The rise of the baseline (Getter)
|
Stroke |
getStroke()
This text fragment's parameters for stroking the text or
null if the text is not stroked |
java.lang.String |
getText()
The string painted by this text fragment
|
AffineTransform |
getTransform()
the transform to be applied to the bounding box rectangle (Getter)
|
double |
getWordSpacing()
The additional spacing between words (Getter)
|
equals, hashCode
public static TextFragment createDynamicObject(long handle)
public Rectangle getBoundingBox()
java.lang.IllegalStateException
- the object has already been closedpublic AffineTransform getTransform()
java.lang.IllegalStateException
- the object has already been closedpublic java.lang.String getText()
java.lang.IllegalStateException
- the object has already been closedpublic Stroke getStroke()
null
if the text is not strokedjava.lang.IllegalStateException
- the object has already been closedpublic Fill getFill()
null
if the text is not filledjava.lang.IllegalStateException
- the object has already been closedpublic double getFontSize()
java.lang.IllegalStateException
- the object has already been closedpublic double getCharacterSpacing()
java.lang.IllegalStateException
- the object has already been closedpublic double getWordSpacing()
java.lang.IllegalStateException
- the object has already been closedpublic double getHorizontalScaling()
java.lang.IllegalStateException
- the object has already been closedpublic double getRise()
java.lang.IllegalStateException
- the object has already been closed