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

# public class GraphicsGrapher

(source file: GraphicsGrapher.java)

    java.lang.Object
       |
       +----Grapher
               |
               +----GraphicsGrapher

The pure class interface.

    public class GraphicsGrapher
      extends Grapher

  An implementation of the Grapher class which draws to a graphics context. Note that graphers use PS coordinates (ie bottom = 0 not top = 0).

##

GraphicsGrapher(Graphics, int, int)
  Create a new grapher.

##

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

##

GraphicsGrapher

    public GraphicsGrapher(Graphics g,
                           int maxX,
                           int maxY);

  Create a new grapher.

  Parameters:
    g - the graphics context to draw to.
    maxX - the maximum x coordinate.
    maxY - the maximum y coordinate.

##

drawLine

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

drawArrow

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

drawRectangle

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

drawText

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

drawCircle

    public void drawCircle(int x,
                           int y);

drawDot

    public void drawDot(int x,
                        int y);

drawUTurn

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

black

    public void black();

blue

    public void blue();

purple

    public void purple();

red

    public void red();

close

    public void close();

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

###### GraphicsGrapher.html