public class PDFPaintingState extends AbstractPaintingState
AbstractPaintingState.AbstractData, AbstractPaintingState.StateStack<E>
Constructor and Description |
---|
PDFPaintingState()
PDF State for storing graphics state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkClip(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.
|
String |
getLayer() |
boolean |
getLayerChanged() |
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(Shape cl)
Set the current clip.
|
void |
setLayer(String layer) |
boolean |
setPaint(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(Paint p)
p
- the new paintpublic boolean checkClip(Shape cl)
cl
- the clip shape to checkpublic void setClip(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()
public void setLayer(String layer)
public String getLayer()
public boolean getLayerChanged()
protected AbstractPaintingState.AbstractData instantiateData()
instantiateData
in class AbstractPaintingState
protected AbstractPaintingState instantiate()
instantiate
in class AbstractPaintingState
public void save()
save
in class AbstractPaintingState
Copyright © 2025 Apache Software Foundation. All rights reserved.