com.lowagie.text.pdf.codec.postscript

Class PAPencil

public class PAPencil extends Object

Nested Class Summary
protected static classPAPencil.State
Field Summary
protected HashMapfonts
The font hashtable with postscript names as keys
Graphics2Dgraphics
The current graphics device
protected StackgStack
The stack of graphic states.
protected Dimensionsize
The canvas size.
protected PAPencil.Statestate
The current graphics state.
Constructor Summary
PAPencil(Component component)
PAPencil(Graphics graphics, Dimension size)
Method Summary
voidarc(double cx, double cy, double r, double ang1, double ang2)
voidarcn(double cx, double cy, double r, double ang1, double ang2)
voidcharpath(String aString, boolean adjustForStroking)
voidclip()
voidclippath()
voidclosepath()
voidcurveto(double x1, double y1, double x2, double y2, double x3, double y3)
voideofill()
voiderasepage()
voidfill()
FontfindFont(String fontname)
voidgrestore()
voidgrestoreall()
voidgsave()
voidinitgraphics()
voidlineto(double x, double y)
voidlineto(Point2D p)
voidmoveto(double x, double y)
voidmoveto(Point2D p)
voidnewpath()
voidrcurveto(double dx1, double dy1, double dx2, double dy2, double dx3, double dy3)
voidrectfill(double x, double y, double width, double height)
voidrectfill(Rectangle2D rect)
voidrectpath(double x, double y, double width, double height)
voidrectstroke(double x, double y, double width, double height)
voidrectstroke(Rectangle2D rect)
voidrlineto(double dx, double dy)
voidrmoveto(double dx, double dy)
voidshow(String string)
voidshowpage()
voidstroke()

Field Detail

fonts

protected HashMap fonts
The font hashtable with postscript names as keys

graphics

public Graphics2D graphics
The current graphics device

gStack

protected Stack gStack
The stack of graphic states.

size

protected Dimension size
The canvas size.

state

protected PAPencil.State state
The current graphics state.

Constructor Detail

PAPencil

public PAPencil(Component component)

PAPencil

public PAPencil(Graphics graphics, Dimension size)

Method Detail

arc

public void arc(double cx, double cy, double r, double ang1, double ang2)

Parameters: cx double Centerpoint x cy double Centerpoint y r double Radius r ang1 double first angle ang2 double second angle

arcn

public void arcn(double cx, double cy, double r, double ang1, double ang2)

charpath

public void charpath(String aString, boolean adjustForStroking)

clip

public void clip()

clippath

public void clippath()

closepath

public void closepath()

curveto

public void curveto(double x1, double y1, double x2, double y2, double x3, double y3)

eofill

public void eofill()

erasepage

public void erasepage()

fill

public void fill()

findFont

public Font findFont(String fontname)

grestore

public void grestore()

grestoreall

public void grestoreall()

gsave

public void gsave()

initgraphics

public void initgraphics()

lineto

public void lineto(double x, double y)

lineto

public void lineto(Point2D p)

moveto

public void moveto(double x, double y)

moveto

public void moveto(Point2D p)

newpath

public void newpath()

rcurveto

public void rcurveto(double dx1, double dy1, double dx2, double dy2, double dx3, double dy3)

rectfill

public void rectfill(double x, double y, double width, double height)

rectfill

public void rectfill(Rectangle2D rect)

rectpath

public void rectpath(double x, double y, double width, double height)

rectstroke

public void rectstroke(double x, double y, double width, double height)

rectstroke

public void rectstroke(Rectangle2D rect)

rlineto

public void rlineto(double dx, double dy)

rmoveto

public void rmoveto(double dx, double dy)

show

public void show(String string)

showpage

public void showpage()

stroke

public void stroke()