analyzer.plot
Class Axis

java.lang.Object
  |
  +--analyzer.plot.PlotElement
        |
        +--analyzer.plot.Axis

public class Axis
extends PlotElement

Class for drawing a one-dimensional coordinate axis. Draws tick marks and numerical lables.


Field Summary
static int HORIZONTAL
           
protected  int orientation
           
static int VERTICAL
           
 
Fields inherited from class analyzer.plot.PlotElement
color, parent, stroke
 
Constructor Summary
Axis(int orientation)
          Constructor takes an orientation as its argument.
 
Method Summary
 void paint(java.awt.Graphics2D g)
          Paint method is called by parent PlotElement.
 
Methods inherited from class analyzer.plot.PlotElement
addElement, setPaint, setParent, setStroke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orientation

protected int orientation

HORIZONTAL

public static final int HORIZONTAL

VERTICAL

public static final int VERTICAL
Constructor Detail

Axis

public Axis(int orientation)
Constructor takes an orientation as its argument.
Method Detail

paint

public void paint(java.awt.Graphics2D g)
Paint method is called by parent PlotElement.
Overrides:
paint in class PlotElement


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