Class SimplePostscript

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.OutputStreamWriter
              |
              +--java.io.FileWriter
                    |
                    +--SimplePostscript

public class SimplePostscript
extends java.io.FileWriter


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
SimplePostscript(java.lang.String filename)
           
 
Method Summary
 void arc(float x, float y, float rad, float deg1, float deg2)
           
 void arcNegative(float x, float y, float rad, float deg1, float deg2)
           
 void circle(float x, float y, float rad)
           
 void close()
           
 void curveto(float x1, float y1, float x2, float y2, float x3, float y3)
           
 void fill()
           
 void fillclosepath()
           
 void fillstroke()
           
 void fillstrokeclosepath()
           
 void grestore()
           
 void gsave()
           
 void lineto(float x, float y)
           
 void moveto(float x, float y)
           
static SimplePostscript open(java.lang.String filename, float x1, float y1, float x2, float y2)
           
 void print(java.lang.String s)
           
 void println(java.lang.String s)
           
 void rect(float x1, float y1, float x2, float y2)
           
 void rotate(float deg)
           
 void scale(float x, float y)
           
 void setcmyk(float c, float m, float y, float k)
           
 void setdash(java.lang.String str)
           
 void setfont(java.lang.String fontname)
           
 void setfont(java.lang.String fontname, float pt)
           
 void setgray(float g)
           
 void setlinecap(int c)
           
 void setlinejoin(int c)
           
 void setlinewidth(float w)
           
 void setrgb(int r, int g, int b)
           
 void stroke()
           
 void strokeclosepath()
           
 void text(float x, float y, java.lang.String s)
           
 void translate(float x, float y)
           
 
Methods inherited from class java.io.OutputStreamWriter
flush, getEncoding, write, write, write
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePostscript

public SimplePostscript(java.lang.String filename)
                 throws java.io.IOException
Method Detail

open

public static SimplePostscript open(java.lang.String filename,
                                    float x1,
                                    float y1,
                                    float x2,
                                    float y2)

setlinewidth

public void setlinewidth(float w)

setlinejoin

public void setlinejoin(int c)

setlinecap

public void setlinecap(int c)

setdash

public void setdash(java.lang.String str)

setgray

public void setgray(float g)

setcmyk

public void setcmyk(float c,
                    float m,
                    float y,
                    float k)

setrgb

public void setrgb(int r,
                   int g,
                   int b)

setfont

public void setfont(java.lang.String fontname)

setfont

public void setfont(java.lang.String fontname,
                    float pt)

moveto

public void moveto(float x,
                   float y)

lineto

public void lineto(float x,
                   float y)

rect

public void rect(float x1,
                 float y1,
                 float x2,
                 float y2)

arc

public void arc(float x,
                float y,
                float rad,
                float deg1,
                float deg2)

arcNegative

public void arcNegative(float x,
                        float y,
                        float rad,
                        float deg1,
                        float deg2)

circle

public void circle(float x,
                   float y,
                   float rad)

curveto

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

fill

public void fill()

fillclosepath

public void fillclosepath()

stroke

public void stroke()

strokeclosepath

public void strokeclosepath()

fillstroke

public void fillstroke()

fillstrokeclosepath

public void fillstrokeclosepath()

rotate

public void rotate(float deg)

scale

public void scale(float x,
                  float y)

translate

public void translate(float x,
                      float y)

gsave

public void gsave()

grestore

public void grestore()

text

public void text(float x,
                 float y,
                 java.lang.String s)

println

public void println(java.lang.String s)

print

public void print(java.lang.String s)

close

public void close()
Overrides:
close in class java.io.OutputStreamWriter