public class PAPencil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
PAPencil.State |
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
fonts
The font hashtable with postscript names as keys
|
java.awt.Graphics2D |
graphics
The current graphics device
|
protected java.util.Stack |
gStack
The stack of graphic states.
|
protected java.awt.Dimension |
size
The canvas size.
|
protected PAPencil.State |
state
The current graphics state.
|
Constructor and Description |
---|
PAPencil(java.awt.Component component) |
PAPencil(java.awt.Graphics graphics,
java.awt.Dimension size) |
Modifier and Type | Method and Description |
---|---|
void |
arc(double cx,
double cy,
double r,
double ang1,
double ang2) |
void |
arcn(double cx,
double cy,
double r,
double ang1,
double ang2) |
void |
charpath(java.lang.String aString,
boolean adjustForStroking) |
void |
clippath() |
void |
closepath() |
void |
curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3) |
void |
eofill() |
void |
erasepage() |
void |
fill() |
java.awt.Font |
findFont(java.lang.String fontname) |
void |
grestore() |
void |
grestoreall() |
void |
gsave() |
void |
initgraphics() |
void |
lineto(double x,
double y) |
void |
lineto(java.awt.geom.Point2D p) |
void |
moveto(double x,
double y) |
void |
moveto(java.awt.geom.Point2D p) |
void |
newpath() |
void |
rcurveto(double dx1,
double dy1,
double dx2,
double dy2,
double dx3,
double dy3) |
void |
rectfill(double x,
double y,
double width,
double height) |
void |
rectfill(java.awt.geom.Rectangle2D rect) |
void |
rectpath(double x,
double y,
double width,
double height) |
void |
rectstroke(double x,
double y,
double width,
double height) |
void |
rectstroke(java.awt.geom.Rectangle2D rect) |
void |
rlineto(double dx,
double dy) |
void |
rmoveto(double dx,
double dy) |
void |
show(java.lang.String string) |
void |
showpage() |
void |
stroke() |
protected java.awt.Dimension size
protected PAPencil.State state
protected java.util.Stack gStack
protected java.util.HashMap fonts
public java.awt.Graphics2D graphics
public PAPencil(java.awt.Component component)
public PAPencil(java.awt.Graphics graphics, java.awt.Dimension size)
public void gsave()
public void grestore()
public void grestoreall()
public void initgraphics()
public void newpath()
public void moveto(double x, double y)
public void moveto(java.awt.geom.Point2D p)
public void rmoveto(double dx, double dy) throws PainterException
PainterException
public void lineto(double x, double y) throws PainterException
PainterException
public void lineto(java.awt.geom.Point2D p) throws PainterException
PainterException
public void rlineto(double dx, double dy) throws PainterException
PainterException
public void arc(double cx, double cy, double r, double ang1, double ang2)
public void arcn(double cx, double cy, double r, double ang1, double ang2)
public void curveto(double x1, double y1, double x2, double y2, double x3, double y3) throws PainterException
PainterException
public void rcurveto(double dx1, double dy1, double dx2, double dy2, double dx3, double dy3) throws PainterException
PainterException
public void closepath()
public void clippath()
public void erasepage()
public void charpath(java.lang.String aString, boolean adjustForStroking)
public void showpage()
public void show(java.lang.String string) throws PainterException
PainterException
public void fill()
public void eofill()
public void stroke()
public void rectfill(double x, double y, double width, double height)
public void rectfill(java.awt.geom.Rectangle2D rect)
public void rectstroke(double x, double y, double width, double height)
public void rectstroke(java.awt.geom.Rectangle2D rect)
public void rectpath(double x, double y, double width, double height)
public java.awt.Font findFont(java.lang.String fontname)