analyzer.plot
Class PlotBox

java.lang.Object
  |
  +--analyzer.plot.PlotElement
        |
        +--analyzer.plot.PlotBox
Direct Known Subclasses:
Plot

public class PlotBox
extends PlotElement

Container class for PlotElements.


Field Summary
protected  CoordSys coordSys
          Transformation for this local coordinate system.
 
Fields inherited from class analyzer.plot.PlotElement
color, parent, stroke
 
Constructor Summary
PlotBox()
          Default constructor
PlotBox(CoordRange limits, CoordRange location)
           
PlotBox(CoordRange limits, CoordRange location, boolean rotated)
           
 
Method Summary
 void addElement(PlotElement e)
          Add an element to be ploted in this box.
 CoordSys getCoordSys()
          Get the coordinate system.
 void paint(java.awt.Graphics2D g)
          Plot the contents of this PlotBox.
 
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

coordSys

protected CoordSys coordSys
Transformation for this local coordinate system. Actual mapping local coordinates to user coordinates is in the affine transformation part of the coordSys. Affine transformation is a product of the affine transforms from all parents and must be recalculated.
Constructor Detail

PlotBox

public PlotBox()
Default constructor

PlotBox

public PlotBox(CoordRange limits,
               CoordRange location)

PlotBox

public PlotBox(CoordRange limits,
               CoordRange location,
               boolean rotated)
Method Detail

addElement

public void addElement(PlotElement e)
Add an element to be ploted in this box.
Overrides:
addElement in class PlotElement

paint

public void paint(java.awt.Graphics2D g)
Plot the contents of this PlotBox. First recalculate the affine transformation for this box, then call paint for all elements.
Overrides:
paint in class PlotElement

getCoordSys

public CoordSys getCoordSys()
Get the coordinate system.


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