analyzer.plot
Class Line

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

public class Line
extends PlotElement

Draw a straight line, either horizontal or vertical.


Field Summary
protected  DoubleSource coordSource
          The object thap rrovides the coordinate of the line.
static int HORIZONTAL
          Horizontal orientation.
protected  int orientation
          The orientation of the line.
static int VERTICAL
          Vertical orientation.
 
Fields inherited from class analyzer.plot.PlotElement
color, parent, stroke
 
Constructor Summary
Line(DoubleSource coordSource, int orientation)
          Constructor
 
Method Summary
 void paint(java.awt.Graphics2D g)
          Paint
 
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

coordSource

protected DoubleSource coordSource
The object thap rrovides the coordinate of the line.

orientation

protected int orientation
The orientation of the line.

HORIZONTAL

public static final int HORIZONTAL
Horizontal orientation.

VERTICAL

public static final int VERTICAL
Vertical orientation.
Constructor Detail

Line

public Line(DoubleSource coordSource,
            int orientation)
Constructor
Method Detail

paint

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


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