public class PDFPaintingState extends AbstractPaintingState
AbstractPaintingState.AbstractData, AbstractPaintingState.StateStack
Constructor and Description |
---|
PDFPaintingState()
PDF State for storing graphics state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkClip(java.awt.Shape cl)
Check if the clip will change the current state.
|
float |
getCharacterSpacing()
Returns the current character spacing (Tc) value.
|
PDFGState |
getGState()
Get the graphics state.
|
int |
getStackLevel()
Get the current stack level.
|
protected AbstractPaintingState |
instantiate()
Instantiates a new state object
|
protected AbstractPaintingState.AbstractData |
instantiateData()
Instantiates a new state data object
|
void |
save()
Push the current state onto the stack.
|
boolean |
setCharacterSpacing(float value)
Sets the character spacing (Tc).
|
void |
setClip(java.awt.Shape cl)
Set the current clip.
|
boolean |
setPaint(java.awt.Paint p)
Set the current paint.
|
checkTransform, clear, clearTransform, clone, concatenate, getBackColor, getBaseTransform, getColor, getData, getFontName, getFontSize, getLineWidth, getStateStack, getTransform, resetTransform, restore, restoreAll, saveAll, setBackColor, setColor, setDashArray, setData, setFontName, setFontSize, setLineWidth, toString
public boolean setPaint(java.awt.Paint p)
p
- the new paintpublic boolean checkClip(java.awt.Shape cl)
cl
- the clip shape to checkpublic void setClip(java.awt.Shape cl)
cl
- the new clip in the current statepublic boolean setCharacterSpacing(float value)
value
- the new valuepublic float getCharacterSpacing()
public int getStackLevel()
public PDFGState getGState()
protected AbstractPaintingState.AbstractData instantiateData()
instantiateData
in class AbstractPaintingState
protected AbstractPaintingState instantiate()
instantiate
in class AbstractPaintingState
public void save()
save
in class AbstractPaintingState
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.