|
fop 0.92beta | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for the classes which hold the state of the current graphics context.
Method Summary | |
boolean |
checkClip(java.awt.Shape cl)
Check if the clip will change the current state. |
boolean |
checkTransform(java.awt.geom.AffineTransform tf)
Check the current transform. |
int |
getStackLevel()
Get the current stack level. |
java.awt.geom.AffineTransform |
getTransform()
Get the current transform. |
java.awt.Graphics2D |
pop()
Pop the state from the stack and restore the graphics context. |
void |
push()
Push the current state onto the stack. |
void |
setTransform(java.awt.geom.AffineTransform tf)
Overwrites the Transform in the Graphics2D context. |
void |
transform(java.awt.geom.AffineTransform tf)
Composes an AffineTransform object with the Transform in this Graphics2D according to the rule last-specified-first-applied. |
boolean |
updateClip(java.awt.Shape cl)
Set the current clip. |
boolean |
updateColor(ColorType col,
boolean fill,
java.lang.StringBuffer pdf)
Establishes a new foreground or fill color. |
boolean |
updateFont(java.lang.String name,
int size,
java.lang.StringBuffer pdf)
Set the current font name. |
boolean |
updatePaint(java.awt.Paint p)
Set the current paint. |
boolean |
updateStroke(float width,
int style)
Sets the current Stroke. |
Method Detail |
public void push()
public java.awt.Graphics2D pop()
public int getStackLevel()
public boolean updateColor(ColorType col, boolean fill, java.lang.StringBuffer pdf)
col
- the color to apply (null skips this operation)fill
- true to set the fill color, false for the foreground colorpdf
- only used by the PDFRenderer, is set to null.
public boolean updateFont(java.lang.String name, int size, java.lang.StringBuffer pdf)
name
- the new font namesize
- pdf
-
public boolean updateStroke(float width, int style)
style
- the constant for the style of the line as an int
public boolean updatePaint(java.awt.Paint p)
p
- the new paint
public boolean checkClip(java.awt.Shape cl)
cl
- the clip shape to check
public boolean updateClip(java.awt.Shape cl)
cl
- the new clip in the current statepublic boolean checkTransform(java.awt.geom.AffineTransform tf)
tf
- the transform to check against
public void setTransform(java.awt.geom.AffineTransform tf)
transform()
if you
wish to compose with the current Affinetransform instead.
tf
- the transform to concatonate to the current level transformGraphics2D.setTransform(AffineTransform tf).
public void transform(java.awt.geom.AffineTransform tf)
tf
- the transform to concatonate to the current level transformGraphics2D.transform(AffineTransform tf).
public java.awt.geom.AffineTransform getTransform()
|
fop 0.92beta | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |