com.itextpdf.text.pdf.parser
Class GraphicsState

java.lang.Object
  extended by com.itextpdf.text.pdf.parser.GraphicsState

public class GraphicsState
extends Object

Keeps all the parameters of the graphics state.

Since:
2.1.4

Constructor Summary
GraphicsState()
          Constructs a new Graphics State object with the default values.
GraphicsState(GraphicsState source)
          Copy constructor.
 
Method Summary
 float getCharacterSpacing()
          Getter for the character spacing.
 Matrix getCtm()
          Getter for the current transformation matrix
 CMapAwareDocumentFont getFont()
          Getter for the font
 float getFontSize()
          Getter for the font size
 float getHorizontalScaling()
          Getter for the horizontal scaling
 float getLeading()
          Getter for the leading
 int getRenderMode()
          Getter for the render mode
 float getRise()
          Getter for text rise
 float getWordSpacing()
          Getter for the word spacing
 boolean isKnockout()
          Getter for knockout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicsState

public GraphicsState()
Constructs a new Graphics State object with the default values.


GraphicsState

public GraphicsState(GraphicsState source)
Copy constructor.

Parameters:
source - another GraphicsState object
Method Detail

getCtm

public Matrix getCtm()
Getter for the current transformation matrix

Returns:
the ctm
Since:
iText 5.0.1

getCharacterSpacing

public float getCharacterSpacing()
Getter for the character spacing.

Returns:
the character spacing
Since:
iText 5.0.1

getWordSpacing

public float getWordSpacing()
Getter for the word spacing

Returns:
the word spacing
Since:
iText 5.0.1

getHorizontalScaling

public float getHorizontalScaling()
Getter for the horizontal scaling

Returns:
the horizontal scaling
Since:
iText 5.0.1

getLeading

public float getLeading()
Getter for the leading

Returns:
the leading
Since:
iText 5.0.1

getFont

public CMapAwareDocumentFont getFont()
Getter for the font

Returns:
the font
Since:
iText 5.0.1

getFontSize

public float getFontSize()
Getter for the font size

Returns:
the font size
Since:
iText 5.0.1

getRenderMode

public int getRenderMode()
Getter for the render mode

Returns:
the renderMode
Since:
iText 5.0.1

getRise

public float getRise()
Getter for text rise

Returns:
the text rise
Since:
iText 5.0.1

isKnockout

public boolean isKnockout()
Getter for knockout

Returns:
the knockout
Since:
iText 5.0.1


Copyright © 2013. All Rights Reserved.