|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.graphics.TextState
public class TextState
The text state comprises those graphics state parameters that only affect text.
Tc - Character spacing Tw - Word spacing Th - Horizontal scaling Tl - Leading Tf Text font Tfs - Text font size Tmode - Text rendering mode Trise - Text rise Tk - Text knockout
| Field Summary | |
|---|---|
float |
cspace
Set the character spacing, Tc, to charSpace, which is a number expressed in unscaled text space units. |
FontFile |
currentfont
Text Font - Associated awt font object for display purposes |
Font |
font
Text Font - Associated ICEpdf font object |
float |
hScalling
Set the horizontal scaling, Th, to (scale div 100). |
float |
leading
Set the text leading, Tl, to leading, which is a number expressed in unscaled text space units. |
static int |
MODE_ADD
Add text to path for clipping |
static int |
MODE_FILL
Fill text |
static int |
MODE_FILL_ADD
Fill text and add to path for clipping. |
static int |
MODE_FILL_STROKE
Fill then stroke text. |
static int |
MODE_FILL_STROKE_ADD
Fill then stroke,text and add to path for clipping |
static int |
MODE_INVISIBLE
Neither fill nor stroke text |
static int |
MODE_STROKE
Stroke text |
static int |
MODE_STROKE_ADD
Stroke text and add to path for clipping |
int |
rmode
Set the text rendering mode, Tmode, to render, which is an integer. |
java.awt.geom.AffineTransform |
tlmatrix
|
java.awt.geom.AffineTransform |
tmatrix
Transformation matrix defined by the Tm tag |
float |
trise
Set the text rise, Trise, to rise, which is a number expressed in unscaled text space units. |
float |
tsize
Text Font size |
protected PRectangle |
type3BBox
|
protected java.awt.geom.Point2D.Float |
type3HorizontalDisplacement
|
float |
wspace
Set the word spacing, Tw, to wordSpace, which is a number expressed in unscaled text space units. |
| Constructor Summary | |
|---|---|
TextState()
Create a new Instance of TextState |
|
TextState(TextState ts)
Creat a new instance of TextState. |
|
| Method Summary | |
|---|---|
PRectangle |
getType3BBox()
|
java.awt.geom.Point2D.Float |
getType3HorizontalDisplacement()
|
void |
setType3BBox(PRectangle type3BBox)
|
void |
setType3HorizontalDisplacement(java.awt.geom.Point2D.Float type3HorizontalDisplacement)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_FILL
public static final int MODE_STROKE
public static final int MODE_FILL_STROKE
public static final int MODE_INVISIBLE
public static final int MODE_FILL_ADD
public static final int MODE_STROKE_ADD
public static final int MODE_FILL_STROKE_ADD
public static final int MODE_ADD
protected PRectangle type3BBox
protected java.awt.geom.Point2D.Float type3HorizontalDisplacement
public float cspace
public float wspace
public float hScalling
public float leading
public float tsize
public int rmode
public float trise
public java.awt.geom.AffineTransform tmatrix
public java.awt.geom.AffineTransform tlmatrix
public Font font
public FontFile currentfont
| Constructor Detail |
|---|
public TextState()
public TextState(TextState ts)
ts.
ts - text state to| Method Detail |
|---|
public PRectangle getType3BBox()
public void setType3BBox(PRectangle type3BBox)
public java.awt.geom.Point2D.Float getType3HorizontalDisplacement()
public void setType3HorizontalDisplacement(java.awt.geom.Point2D.Float type3HorizontalDisplacement)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||