|
xmlgraphics-commons 2.1 | |||||||||
| 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 String |
DEFAULT_DASH
Default for setdash |
static Color |
DEFAULT_RGB_COLOR
Default color in PostScript |
| Constructor Summary | |
|---|---|
PSState()
Default constructor |
|
PSState(PSState org,
boolean copyTransforms)
Copy constructor |
|
| Method Summary | |
|---|---|
boolean |
checkTransform(AffineTransform tf)
Check the current transform. |
void |
concatMatrix(AffineTransform transform)
Concats the given transformation matrix with the current one. |
AffineTransform |
getTransform()
Returns the transform. |
void |
reestablish(PSGenerator gen)
Reestablishes the graphics state represented by this instance by issueing the necessary commands. |
boolean |
useColor(Color value)
Establishes the specified color (RGB). |
boolean |
useDash(String pattern)
Establishes the specified dash. |
boolean |
useFont(String name,
float size)
Establishes the specified font and size. |
boolean |
useLineCap(int value)
Establishes the specified line cap. |
boolean |
useLineJoin(int value)
Establishes the specified line join. |
boolean |
useLineWidth(double value)
Establishes the specified line width. |
boolean |
useMiterLimit(float value)
Establishes the specified miter limit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_DASH
public static final 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, too| Method Detail |
|---|
public AffineTransform getTransform()
public boolean checkTransform(AffineTransform tf)
tf - the transform the check against
public void concatMatrix(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 useLineJoin(int value)
value - line join (0, 1 or 2) as defined by the setlinejoin command
public boolean useMiterLimit(float value)
value - the miter limit as defined by the setmiterlimit command
public boolean useLineWidth(double value)
value - line width as defined by the setlinewidth command
public boolean useDash(String pattern)
pattern - dash pattern as defined by the setdash command
public boolean useColor(Color value)
value - color as defined by the setrgbcolor command
public boolean useFont(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 IOException
gen - The generator to use for output
IOException - In case of an I/O problem
|
xmlgraphics-commons 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||