All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sim.display.Grid

java.lang.Object
   |
   +----sim.display.Plot
           |
           +----sim.display.Grid

public class Grid
extends Plot
This Plot draws a regular grid with a given feature size and type of grid.

This code is (c) 1997 Leemon Baird <leemon@cs.cmu.edu>, http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely. If the code is modified, please state so in the comments.

Version:
1.00, 1 June 97
Author:
Leemon Baird

Constructor Index

 o Grid()

Method Index

 o drawAll(Graphics, Component, double, double, double, double, int, int, int, int, int, int)
Draws the tiling.
 o getParameters(int)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.

Constructors

 o Grid
 public Grid()

Methods

 o getParameters
 public Object[][] getParameters(int lang)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.

Overrides:
getParameters in class Plot
See Also:
getParameters
 o drawAll
 public void drawAll(Graphics g,
                     Component c,
                     double xMin,
                     double xMax,
                     double yMin,
                     double yMax,
                     int startX,
                     int startY,
                     int xAxisX,
                     int xAxisY,
                     int yAxisX,
                     int yAxisY)
Draws the tiling. The integers are screen coordinates of the place where the axes intersect (startX,startY), and where the X axis ends (xAxisX,xAxisY) and the Y axis ends (yAxisX,yAxisY). The region of the picture to draw is from (xMin,yMin) to (xMax,yMax).

Overrides:
drawAll in class Plot

All Packages  Class Hierarchy  This Package  Previous  Next  Index