[all packages] [package ] [class hierarchy] [index]

public class PSGrapher

(source file: PSGrapher.java)
java.lang.Object
   |
   +----Grapher
           |
           +----PSGrapher

The pure class interface.
public class PSGrapher
  extends Grapher
A PostScript back end for the application.

Author:
Alan Jeffrey
Version: v1.0 1998/06/10

Constuctor Index

O PSGrapher(int, int, int, int, String, int, Printer)
Create a new graph-drawing object which will send PostScript instructions to a printer.

Methods

O black()
O blue()
O close()
O drawArrow(int, int, int, int)
O drawCircle(int, int)
O drawDot(int, int)
O drawLine(int, int, int, int)
O drawRectangle(int, int, int, int)
O drawText(int, int, String)
O drawUTurn(int, int, int, int)
O purple()
O red()

Constructors

O PSGrapher
public PSGrapher(int llX,
                 int llY,
                 int urX,
                 int urY,
                 String font,
                 int size,
                 Printer p);
Create a new graph-drawing object which will send PostScript instructions to a printer.

Parameters:
llX - the lower left x-coordinate of the bounding box
llY - the lower left y-coordinate of the bounding box
urX - the upper right x-coordinate of the bounding box
urY - the upper right y-coordinate of the bounding box
font - the name of the font
size - the size of the font
p - the printer to print to

Methods

O black
public void black();

O blue

public void blue();

O purple

public void purple();

O red

public void red();

O drawLine

public void drawLine(int llX,
                     int llY,
                     int urX,
                     int urY);

O drawArrow

public void drawArrow(int llX,
                      int llY,
                      int urX,
                      int urY);

O drawRectangle

public void drawRectangle(int llX,
                          int llY,
                          int urX,
                          int urY);

O drawText

public void drawText(int x,
                     int y,
                     String text);

O drawCircle

public void drawCircle(int x,
                       int y);

O drawDot

public void drawDot(int x,
                    int y);

O drawUTurn

public void drawUTurn(int bot,
                      int left,
                      int top,
                      int right);

O close

public void close();


[all packages] [package ] [class hierarchy] [index]
PSGrapher.html