Package com.lowagie.text.pdf.parser
Class GraphicsState
java.lang.Object
com.lowagie.text.pdf.parser.GraphicsState
Deprecated.
Keeps all the parameters of the graphics state.
- Since:
- 2.1.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatDeprecated.The current character spacing.private MatrixDeprecated.The current transformation matrix.private CMapAwareDocumentFontDeprecated.The active font.private floatDeprecated.The current font size.private floatDeprecated.The current horizontal scalingprivate booleanDeprecated.The current knockout value.private floatDeprecated.The current leading.private intDeprecated.The current render mode.private floatDeprecated.The current text riseprivate floatDeprecated.The current word spacing. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs a new Graphics State object with the default values.GraphicsState(GraphicsState source) Deprecated.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionfloatcalculateCharacterWidthWithoutSpace(float charFontWidth) Deprecated.floatcalculateCharacterWidthWithSpace(float charFontWidth) Deprecated.floatDeprecated.getCtm()Deprecated.Get the current transformation matrix.getFont()Deprecated.floatDeprecated.Get maximum height above the baseline reached by glyphs in this font, excluding the height of glyphs for accented characters.floatDeprecated.Get maximum depth below the baseline reached by glyphs in this font.floatDeprecated.floatDeprecated.floatDeprecated.intDeprecated.floatgetRise()Deprecated.floatDeprecated.booleanDeprecated.multiplyCtm(Matrix matrix) Deprecated.Multiply transformation matrix and get result.voidsetCharacterSpacing(float characterSpacing) Deprecated.voidsetFont(CMapAwareDocumentFont font) Deprecated.voidsetFontSize(float fontSize) Deprecated.voidsetHorizontalScaling(float horizontalScaling) Deprecated.voidsetLeading(float leading) Deprecated.voidsetRenderMode(int renderMode) Deprecated.voidsetRise(float rise) Deprecated.voidsetWordSpacing(float wordSpacing) Deprecated.
-
Field Details
-
ctm
Deprecated.The current transformation matrix. -
characterSpacing
private float characterSpacingDeprecated.The current character spacing. -
wordSpacing
private float wordSpacingDeprecated.The current word spacing. -
horizontalScaling
private float horizontalScalingDeprecated.The current horizontal scaling -
leading
private float leadingDeprecated.The current leading. -
font
Deprecated.The active font. -
fontSize
private float fontSizeDeprecated.The current font size. -
renderMode
private int renderModeDeprecated.The current render mode. -
rise
private float riseDeprecated.The current text rise -
knockout
private boolean knockoutDeprecated.The current knockout value.
-
-
Constructor Details
-
GraphicsState
public GraphicsState()Deprecated.Constructs a new Graphics State object with the default values. -
GraphicsState
Deprecated.Copy constructor.- Parameters:
source- another GraphicsState object
-
-
Method Details
-
getCtm
Deprecated.Get the current transformation matrix.- Returns:
- current transformation matrix
-
getCharacterSpacing
public float getCharacterSpacing()Deprecated. -
setCharacterSpacing
public void setCharacterSpacing(float characterSpacing) Deprecated. -
getWordSpacing
public float getWordSpacing()Deprecated. -
setWordSpacing
public void setWordSpacing(float wordSpacing) Deprecated. -
getHorizontalScaling
public float getHorizontalScaling()Deprecated. -
setHorizontalScaling
public void setHorizontalScaling(float horizontalScaling) Deprecated. -
getLeading
public float getLeading()Deprecated. -
setLeading
public void setLeading(float leading) Deprecated. -
getFontAscentDescriptor
public float getFontAscentDescriptor()Deprecated.Get maximum height above the baseline reached by glyphs in this font, excluding the height of glyphs for accented characters.- Returns:
- ascent descriptor value
-
getFontDescentDescriptor
public float getFontDescentDescriptor()Deprecated.Get maximum depth below the baseline reached by glyphs in this font. The value is a negative number- Returns:
- descent descriptor value
-
calculateCharacterWidthWithSpace
public float calculateCharacterWidthWithSpace(float charFontWidth) Deprecated. -
calculateCharacterWidthWithoutSpace
public float calculateCharacterWidthWithoutSpace(float charFontWidth) Deprecated. -
getFont
Deprecated. -
setFont
Deprecated. -
getFontSize
public float getFontSize()Deprecated. -
setFontSize
public void setFontSize(float fontSize) Deprecated. -
getRenderMode
public int getRenderMode()Deprecated. -
setRenderMode
public void setRenderMode(int renderMode) Deprecated. -
getRise
public float getRise()Deprecated. -
setRise
public void setRise(float rise) Deprecated. -
isKnockout
public boolean isKnockout()Deprecated. -
multiplyCtm
Deprecated.Multiply transformation matrix and get result. Result would be also stored in thisGraphicsStateinstance- Parameters:
matrix- multiply by matrix- Returns:
- result matrix
-