|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.chart.renderer.HighLow
Represents one point in the high/low/open/close plot.
All the coordinates in this class are in Java2D space.
Field Summary | |
static int |
CLOSE
Useful constant for open/close value types. |
static int |
OPEN
Useful constant for open/close value types. |
Constructor Summary | |
HighLow(double x,
double high,
double low)
Constructs a high-low item, with default values for the open/close and colors. |
|
HighLow(double x,
double high,
double low,
double open,
double close)
Constructs a high-low item, with default values for the colors. |
|
HighLow(double x,
double high,
double low,
double open,
double close,
java.awt.Stroke stroke,
java.awt.Paint paint)
Constructs a high-low item. |
Method Summary | |
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds. |
java.awt.geom.Line2D |
getCloseTickLine()
Returns the line for close tick |
java.awt.geom.Line2D |
getLine()
Returns the line. |
java.awt.geom.Line2D |
getOpenTickLine()
Returns the line for open tick. |
java.awt.Paint |
getPaint()
Returns the Paint object used to color the line. |
java.awt.Stroke |
getStroke()
Returns the Stroke object used to draw the line. |
double |
getTickSize()
Returns the width of the open/close tick. |
double |
getValue(int valueType)
Returns either OPEN or CLOSE value depending on the valueType. |
void |
setTickSize(double newSize)
Sets the width of the open/close tick. |
void |
setValue(int type,
double value)
Sets either OPEN or Close value depending on the valueType. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OPEN
public static final int CLOSE
Constructor Detail |
public HighLow(double x, double high, double low)
x
- the x value.high
- the high value.low
- the low value.public HighLow(double x, double high, double low, double open, double close)
x
- the x value.high
- the high value.low
- the low value.open
- the open value.close
- the close value.public HighLow(double x, double high, double low, double open, double close, java.awt.Stroke stroke, java.awt.Paint paint)
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 Detail |
public void setTickSize(double newSize)
newSize
- the new tick size.public double getTickSize()
public java.awt.geom.Line2D getLine()
public java.awt.geom.Rectangle2D getBounds()
public double getValue(int valueType)
valueType
- which value {OPEN|CLOSE}
.
OPEN
, the close value
otherwise.public void setValue(int type, double value)
type
- the value type (OPEN or CLOSE).value
- the new value.public java.awt.geom.Line2D getOpenTickLine()
public java.awt.geom.Line2D getCloseTickLine()
public java.awt.Stroke getStroke()
public java.awt.Paint getPaint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |