ps
Class ToPS

java.lang.Object
  extended byps.ToPS

public class ToPS
extends java.lang.Object


Constructor Summary
ToPS(java.lang.String filename)
          Sets up an output .ps file
ToPS(java.lang.String filename, int llx, int lly, int urx, int ury)
          Sets up an output .eps file with given BoundingBox
 
Method Summary
 void appendToPath(java.awt.Shape shape)
           
 void appendToPath(java.awt.Shape shape, java.awt.geom.AffineTransform transform)
           
 void clip()
           
 void concat(java.awt.geom.AffineTransform at)
           
 void copyFile(java.lang.String filename)
          Reads a file and copies it into the PostScript file.
 void fill()
           
 void grestore()
           
 void gsave()
           
 void newpath()
           
 void rotate(double angle)
           
 void scale(double sx, double sy)
           
 void setdash(float[] d, float offset)
           
 void setDigits(int n)
          Sets the number of significant digits to use when writing floats and doubles
 void setgray(float g)
           
 void setlinewidth(float w)
           
 void setmiterlimit(float l)
           
 void setrgbcolor(java.awt.Color c)
           
 void setrgbcolor(float r, float g, float b)
           
 void showpage()
           
 void stroke()
           
 void translate(double x, double y)
           
 void writeString(java.lang.String s)
          Writes a String into the PostScript file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToPS

public ToPS(java.lang.String filename)
     throws java.io.FileNotFoundException
Sets up an output .ps file


ToPS

public ToPS(java.lang.String filename,
            int llx,
            int lly,
            int urx,
            int ury)
     throws java.io.FileNotFoundException
Sets up an output .eps file with given BoundingBox

Method Detail

setDigits

public void setDigits(int n)
Sets the number of significant digits to use when writing floats and doubles


setgray

public void setgray(float g)

setrgbcolor

public void setrgbcolor(java.awt.Color c)

setrgbcolor

public void setrgbcolor(float r,
                        float g,
                        float b)

gsave

public void gsave()

grestore

public void grestore()

stroke

public void stroke()

fill

public void fill()

translate

public void translate(double x,
                      double y)

scale

public void scale(double sx,
                  double sy)

rotate

public void rotate(double angle)

concat

public void concat(java.awt.geom.AffineTransform at)

copyFile

public void copyFile(java.lang.String filename)
              throws java.io.FileNotFoundException,
                     java.io.IOException
Reads a file and copies it into the PostScript file. This could be useful for reading in a library of procedures.

Throws:
java.io.FileNotFoundException
java.io.IOException

newpath

public void newpath()

clip

public void clip()

showpage

public void showpage()

setlinewidth

public void setlinewidth(float w)

setmiterlimit

public void setmiterlimit(float l)

setdash

public void setdash(float[] d,
                    float offset)

writeString

public void writeString(java.lang.String s)
Writes a String into the PostScript file. You could use this if there are PostScript commands not given in this class.


appendToPath

public void appendToPath(java.awt.Shape shape,
                         java.awt.geom.AffineTransform transform)

appendToPath

public void appendToPath(java.awt.Shape shape)