public class TextState
extends java.lang.Object
| Constructor and Description |
|---|
TextState()
Create a default text state
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
double |
getCharacterSpacing()
The current character spacing (corresponding to the Tc operator), in unscaled text space units.
|
double |
getFontSize()
The current font size (corresponding to the Tf operator).
|
double |
getHScale()
The current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width.
|
TextRenderMode |
getRenderMode()
The current text rendering mode (corresponding to the Tr operator).
|
double |
getTextRise()
The current text rise (corresponding to the Ts operator), in unscaled text space units.
|
double |
getWordSpacing()
The current word spacing (corresponding to the Tw operator), in unscaled text space units.
|
void |
setCharacterSpacing(double Tc)
The current character spacing (corresponding to the Tc operator), in unscaled text space units.
|
void |
setFontSize(double Tf)
The current font size (corresponding to the Tf operator).
|
void |
setHScale(double Tz)
The current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width.
|
void |
setRenderMode(TextRenderMode Tr)
The current text rendering mode (corresponding to the Tr operator).
|
void |
setTextRise(double Ts)
The current text rise (corresponding to the Ts operator), in unscaled text space units.
|
void |
setWordSpacing(double Tw)
The current word spacing (corresponding to the Tw operator), in unscaled text space units.
|
public void delete()
public TextRenderMode getRenderMode()
public void setRenderMode(TextRenderMode Tr)
Tr - the new/updated text rendering modepublic double getCharacterSpacing()
public void setCharacterSpacing(double Tc)
Tc - the new/updated character spacingpublic double getWordSpacing()
public void setWordSpacing(double Tw)
Tw - the new/updated character spacingpublic double getFontSize()
public void setFontSize(double Tf)
Tf - the new/updated font sizepublic double getHScale()
public void setHScale(double Tz)
Tz - the new/updated horizontal scalingpublic double getTextRise()
public void setTextRise(double Ts)
Ts - the new/updated text rise