All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class picture.Picture

java.lang.Object
   |
   +----sim.display.Plot
           |
           +----picture.Picture

public class Picture
extends Plot
This Plot draws a bitmapped picture, calculated in a separate thread.

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, 18 June 98
Author:
Leemon Baird

Constructor Index

 o Picture()

Method Index

 o drawAll(Graphics, Component, double, double, double, double, int, int, int, int, int, int)
Draws the picture.
 o getParameters(int)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
 o initialize(int)
Initialize after everything in the whole HTML file has been parsed.
 o setWatchManager(WatchManager, String)
Register all variables with this WatchManager.

Constructors

 o Picture
 public Picture()

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 initialize
 public void initialize(int level)
Initialize after everything in the whole HTML file has been parsed.

Overrides:
initialize in class Plot
 o setWatchManager
 public void setWatchManager(WatchManager wm,
                             String name)
Register all variables with this WatchManager. This will be called after all parsing is done.

Overrides:
setWatchManager in class Plot
 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 picture. 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). Right now, this assumes a rectangular drawing region on the screen.

Overrides:
drawAll in class Plot

All Packages  Class Hierarchy  This Package  Previous  Next  Index