analyzer.plot
Class Plot

java.lang.Object
  |
  +--analyzer.plot.PlotElement
        |
        +--analyzer.plot.PlotBox
              |
              +--analyzer.plot.Plot

public class Plot
extends PlotBox

A class that implements PlotBox and attaches to a PlotPanel. Use this class as the base of a PlotElement tree to paint the graphics defined by the tree onto a PlotPanel. To create a plot, create a Plot object, and add it to a PlotPanel.

   Plot plot = new Plot();
   plotPanel.add(plot);
 

A Plot object stores a reference to the PlotPanel. The base class of Plot, PlotBox, has a CoordSys object that is used to map the PlotPanel pixel coordinates (measured in pts, 72 pts per inch) to the local coordinate system.

See Also:
Analyzer.plot.PlotPanel, Analyzer.plot.PlotElement, Analyzer.plot.PlotBox

Field Summary
protected  PlotPanel panel
          The Panel on which to paint the plot graphics.
 
Fields inherited from class analyzer.plot.PlotBox
coordSys
 
Fields inherited from class analyzer.plot.PlotElement
color, parent, stroke
 
Constructor Summary
Plot()
           
 
Method Summary
 void paint(java.awt.Graphics2D g)
           
 void setPanel(PlotPanel panel)
          Construct the base of the plot tree, with coordinates (0,0)-(1,1).
 
Methods inherited from class analyzer.plot.PlotBox
addElement, getCoordSys
 
Methods inherited from class analyzer.plot.PlotElement
setPaint, setParent, setStroke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

panel

protected PlotPanel panel
The Panel on which to paint the plot graphics.
Constructor Detail

Plot

public Plot()
Method Detail

setPanel

public void setPanel(PlotPanel panel)
Construct the base of the plot tree, with coordinates (0,0)-(1,1). public Plot() { super(); } /** Set the panel for the plot - should only be called by the add method of PlotPanel.
Parameters:
panel - The panel on which to paint the plot.

paint

public void paint(java.awt.Graphics2D g)
Overrides:
paint in class PlotBox


Email questions and comments to
shumway@uiuc.edu or nzhong@ncsa.uiuc.edu