|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.chart.HighLow
public class 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()
|
java.awt.geom.Line2D |
getCloseTickLine()
Returns the line. |
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 valueType,
double newValue)
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 - high - low -
public HighLow(double x,
double high,
double low,
double open,
double close)
x - high - low - open - close -
public HighLow(double x,
double high,
double low,
double open,
double close,
java.awt.Stroke stroke,
java.awt.Paint paint)
x - high - low - open - close - stroke - paint - | Method Detail |
|---|
public void setTickSize(double newSize)
newSize - public double getTickSize()
public java.awt.geom.Line2D getLine()
public java.awt.geom.Rectangle2D getBounds()
public double getValue(int valueType)
valueType -
public void setValue(int valueType,
double newValue)
valueType - newValue - 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 | |||||||