|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.util.AbstractPaintingState
org.apache.fop.pdf.PDFPaintingState
public class PDFPaintingState
This keeps information about the current painting state when writing to pdf. It allows for creating new graphics states with the q operator. This class is only used to store the information about the state the caller needs to handle the actual pdf operators. When setting the state for pdf there are three possible ways of handling the situation. The values can be set to override previous or default values. A new state can be added and then the values set. The current state can be popped and values will return to a previous state then the necessary values can be overridden. The current transform behaves differently to other values as the matrix is combined with the current resolved value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.util.AbstractPaintingState |
---|
AbstractPaintingState.AbstractData, AbstractPaintingState.StateStack<E> |
Constructor Summary | |
---|---|
PDFPaintingState()
PDF State for storing graphics state. |
Method Summary | |
---|---|
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. |
java.lang.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(java.awt.Shape cl)
Set the current clip. |
void |
setLayer(java.lang.String layer)
|
boolean |
setPaint(java.awt.Paint p)
Set the current paint. |
Methods inherited from class org.apache.fop.util.AbstractPaintingState |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PDFPaintingState()
Method Detail |
---|
public boolean setPaint(java.awt.Paint p)
p
- the new paint
public boolean checkClip(java.awt.Shape cl)
cl
- the clip shape to check
public void setClip(java.awt.Shape cl)
cl
- the new clip in the current statepublic boolean setCharacterSpacing(float value)
value
- the new value
public float getCharacterSpacing()
public int getStackLevel()
public PDFGState getGState()
public void setLayer(java.lang.String layer)
public java.lang.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
|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |