Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » renderer » xy » [javadoc | source]
org.jfree.chart.renderer.xy
public class: HighLow [javadoc | source]
java.lang.Object
   org.jfree.chart.renderer.xy.HighLow
Represents one point in the high/low/open/close plot.

All the coordinates in this class are in Java2D space.

Field Summary
public static final  int OPEN    Useful constant for open/close value types. 
public static final  int CLOSE    Useful constant for open/close value types. 
Constructor:
 public HighLow(double x,
    double high,
    double low) 
 public HighLow(double x,
    double high,
    double low,
    double open,
    double close) 
 public HighLow(double x,
    double high,
    double low,
    double open,
    double close,
    Stroke stroke,
    Paint paint) 
    Constructs a high-low item.
    Parameters:
    x - the x value.
    high - the high value.
    low - the low value.
    open - the open value.
    close - the close value.
    stroke - the stroke.
    paint - the paint.
Method from org.jfree.chart.renderer.xy.HighLow Summary:
getBounds,   getCloseTickLine,   getLine,   getOpenTickLine,   getPaint,   getStroke,   getTickSize,   getValue,   setTickSize,   setValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.renderer.xy.HighLow Detail:
 public Rectangle2D getBounds() 
    Returns the bounds.
 public Line2D getCloseTickLine() 
    Returns the line for close tick
 public Line2D getLine() 
    Returns the line.
 public Line2D getOpenTickLine() 
    Returns the line for open tick.
 public Paint getPaint() 
    Returns the Paint object used to color the line.
 public Stroke getStroke() 
    Returns the Stroke object used to draw the line.
 public double getTickSize() 
    Returns the width of the open/close tick.
 public double getValue(int valueType) 
    Returns either OPEN or CLOSE value depending on the valueType.
 public  void setTickSize(double newSize) 
    Sets the width of the open/close tick.
 public  void setValue(int type,
    double value) 
    Sets either OPEN or Close value depending on the valueType.