|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.ps.PSState
public class PSState
This class holds the current state of the PostScript interpreter.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_DASH
Default for setdash |
static java.awt.Color |
DEFAULT_RGB_COLOR
Default color in PostScript |
Constructor Summary | |
---|---|
PSState()
Default constructor |
|
PSState(PSState org,
boolean copyTransforms)
Copy constructor |
Method Summary | |
---|---|
boolean |
checkTransform(java.awt.geom.AffineTransform tf)
Check the current transform. |
void |
concatMatrix(java.awt.geom.AffineTransform transform)
Concats the given transformation matrix with the current one. |
java.awt.geom.AffineTransform |
getTransform()
Returns the transform. |
void |
reestablish(PSGenerator gen)
Reestablishes the graphics state represented by this instance by issueing the necessary commands. |
boolean |
useColor(java.awt.Color value)
Establishes the specified color (RGB). |
boolean |
useDash(java.lang.String pattern)
Establishes the specified dash. |
boolean |
useFont(java.lang.String name,
float size)
Establishes the specified font and size. |
boolean |
useLineCap(int value)
Establishes the specified line cap. |
boolean |
useLineWidth(double value)
Establishes the specified line width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_DASH
public static final java.awt.Color DEFAULT_RGB_COLOR
Constructor Detail |
---|
public PSState()
public PSState(PSState org, boolean copyTransforms)
org
- the original to copy fromcopyTransforms
- true if the list of matrix concats should be cloned, tooMethod Detail |
---|
public java.awt.geom.AffineTransform getTransform()
public boolean checkTransform(java.awt.geom.AffineTransform tf)
tf
- the transform the check against
public void concatMatrix(java.awt.geom.AffineTransform transform)
transform
- The new transformation matrixpublic boolean useLineCap(int value)
value
- line cap (0, 1 or 2) as defined by the setlinecap command
public boolean useLineWidth(double value)
value
- line width as defined by the setlinewidth command
public boolean useDash(java.lang.String pattern)
pattern
- dash pattern as defined by the setdash command
public boolean useColor(java.awt.Color value)
value
- color as defined by the setrgbcolor command
public boolean useFont(java.lang.String name, float size)
name
- name of the font for the "F" command (see FOP Std Proc Set)size
- size of the font
public void reestablish(PSGenerator gen) throws java.io.IOException
gen
- The generator to use for output
java.io.IOException
- In case of an I/O problem
|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |