Acme
Class Psg
java.lang.Object
Acme.Psg
public class Psg
- extends java.lang.Object
Constructor Summary |
Psg(java.awt.Component component)
|
Psg(java.awt.Graphics graphics)
|
Method Summary |
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 |
clippath()
|
void |
closepath()
|
void |
curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
|
int |
dtransform_x(double dx,
double dy)
|
int |
dtransform_y(double dx,
double dy)
|
void |
erasepage()
|
void |
fill()
|
void |
flattenpath()
|
void |
grestore()
|
void |
grestoreall()
|
void |
gsave()
|
double |
idtransform_x(int dx,
int dy)
|
double |
idtransform_y(int dx,
int dy)
|
void |
initgraphics()
|
double |
itransform_x(int x,
int y)
|
double |
itransform_y(int x,
int y)
|
void |
lineto(double x,
double y)
|
static void |
main(java.lang.String[] args)
|
void |
moveto(double x,
double y)
|
void |
newpath()
|
double[] |
pathbbox()
|
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 |
rectstroke(double x,
double y,
double width,
double height)
|
void |
rlineto(double dx,
double dy)
|
void |
rmoveto(double dx,
double dy)
|
void |
rotate(double degrees)
|
void |
scale(double sx,
double sy)
|
void |
setcolor(java.awt.Color color)
|
void |
setfont(java.lang.String name,
int style,
double size)
|
void |
setfontName(java.lang.String name)
|
void |
setfontSize(double size)
|
void |
setfontStyle(int style)
|
void |
setgray(float grayVal)
|
void |
sethsbcolor(float hue,
float saturation,
float brightness)
|
void |
setlinewidth(double linewidth)
|
void |
setrgbcolor(float r,
float g,
float b)
|
void |
show(java.lang.String str)
|
double |
stringwidth_x(java.lang.String str)
|
void |
stroke()
|
int |
transform_x(double x,
double y)
|
int |
transform_y(double x,
double y)
|
void |
translate(double tx,
double ty)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Psg
public Psg(java.awt.Component component)
Psg
public Psg(java.awt.Graphics graphics)
gsave
public void gsave()
grestore
public void grestore()
grestoreall
public void grestoreall()
initgraphics
public void initgraphics()
setlinewidth
public void setlinewidth(double linewidth)
setcolor
public void setcolor(java.awt.Color color)
setgray
public void setgray(float grayVal)
sethsbcolor
public void sethsbcolor(float hue,
float saturation,
float brightness)
setrgbcolor
public void setrgbcolor(float r,
float g,
float b)
translate
public void translate(double tx,
double ty)
scale
public void scale(double sx,
double sy)
rotate
public void rotate(double degrees)
transform_x
public int transform_x(double x,
double y)
transform_y
public int transform_y(double x,
double y)
dtransform_x
public int dtransform_x(double dx,
double dy)
dtransform_y
public int dtransform_y(double dx,
double dy)
itransform_x
public double itransform_x(int x,
int y)
throws PsgException
- Throws:
PsgException
itransform_y
public double itransform_y(int x,
int y)
throws PsgException
- Throws:
PsgException
idtransform_x
public double idtransform_x(int dx,
int dy)
throws PsgException
- Throws:
PsgException
idtransform_y
public double idtransform_y(int dx,
int dy)
throws PsgException
- Throws:
PsgException
newpath
public void newpath()
moveto
public void moveto(double x,
double y)
rmoveto
public void rmoveto(double dx,
double dy)
throws PsgException
- Throws:
PsgException
lineto
public void lineto(double x,
double y)
throws PsgException
- Throws:
PsgException
rlineto
public void rlineto(double dx,
double dy)
throws PsgException
- Throws:
PsgException
arc
public void arc(double cx,
double cy,
double r,
double ang1,
double ang2)
arcn
public void arcn(double cx,
double cy,
double r,
double ang1,
double ang2)
curveto
public void curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
throws PsgException
- Throws:
PsgException
rcurveto
public void rcurveto(double dx1,
double dy1,
double dx2,
double dy2,
double dx3,
double dy3)
throws PsgException
- Throws:
PsgException
closepath
public void closepath()
flattenpath
public void flattenpath()
clippath
public void clippath()
throws PsgException
- Throws:
PsgException
pathbbox
public double[] pathbbox()
throws PsgException
- Throws:
PsgException
erasepage
public void erasepage()
fill
public void fill()
stroke
public void stroke()
rectfill
public void rectfill(double x,
double y,
double width,
double height)
rectstroke
public void rectstroke(double x,
double y,
double width,
double height)
setfont
public void setfont(java.lang.String name,
int style,
double size)
setfontName
public void setfontName(java.lang.String name)
setfontStyle
public void setfontStyle(int style)
setfontSize
public void setfontSize(double size)
show
public void show(java.lang.String str)
throws PsgException
- Throws:
PsgException
stringwidth_x
public double stringwidth_x(java.lang.String str)
throws PsgException
- Throws:
PsgException
main
public static void main(java.lang.String[] args)