public class GraphicsState extends Object
Constructor and Description |
---|
GraphicsState()
Constructs a new Graphics State object with the default values.
|
GraphicsState(GraphicsState source)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
calculateCharacterWidthWithoutSpace(float charFontWidth) |
float |
calculateCharacterWidthWithSpace(float charFontWidth) |
float |
getCharacterSpacing() |
Matrix |
getCtm()
Get the current transformation matrix.
|
CMapAwareDocumentFont |
getFont() |
float |
getFontAscentDescriptor()
Get maximum height above the baseline reached by glyphs in this font,
excluding the height of glyphs for accented characters.
|
float |
getFontDescentDescriptor()
Get maximum depth below the baseline reached by glyphs in this font.
|
float |
getFontSize() |
float |
getHorizontalScaling() |
float |
getLeading() |
int |
getRenderMode() |
float |
getRise() |
float |
getWordSpacing() |
boolean |
isKnockout() |
Matrix |
multiplyCtm(Matrix matrix)
Multiply transformation matrix and get result.
|
void |
setCharacterSpacing(float characterSpacing) |
void |
setFont(CMapAwareDocumentFont font) |
void |
setFontSize(float fontSize) |
void |
setHorizontalScaling(float horizontalScaling) |
void |
setLeading(float leading) |
void |
setRenderMode(int renderMode) |
void |
setRise(float rise) |
void |
setWordSpacing(float wordSpacing) |
public GraphicsState()
public GraphicsState(GraphicsState source)
source
- another GraphicsState objectpublic Matrix getCtm()
public float getCharacterSpacing()
public void setCharacterSpacing(float characterSpacing)
public float getWordSpacing()
public void setWordSpacing(float wordSpacing)
public float getHorizontalScaling()
public void setHorizontalScaling(float horizontalScaling)
public float getLeading()
public void setLeading(float leading)
public float getFontAscentDescriptor()
public float getFontDescentDescriptor()
public float calculateCharacterWidthWithSpace(float charFontWidth)
public float calculateCharacterWidthWithoutSpace(float charFontWidth)
public CMapAwareDocumentFont getFont()
public void setFont(CMapAwareDocumentFont font)
public float getFontSize()
public void setFontSize(float fontSize)
public int getRenderMode()
public void setRenderMode(int renderMode)
public float getRise()
public void setRise(float rise)
public boolean isKnockout()
public Matrix multiplyCtm(Matrix matrix)
GraphicsState
instancematrix
- multiply by matrixCopyright © 2020. All rights reserved.