|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.AbstractChartNode com.imsl.chart.ChartNode com.imsl.chart.Data com.imsl.chart.HighLowClose
public class HighLowClose
High-low-close plot of stock data.
Field Summary | |
---|---|
static long |
DAY
Milliseconds per day |
static long |
serialVersionUID
|
Fields inherited from class com.imsl.chart.AbstractChartNode |
---|
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG |
Constructor Summary | |
---|---|
HighLowClose(AxisXY axis,
Date start,
double[] high,
double[] low,
double[] close)
Constructs a high-low-close chart node beginning with specified start date. |
|
HighLowClose(AxisXY axis,
Date start,
double[] high,
double[] low,
double[] close,
double[] open)
Constructs a high-low-close-open chart node beginning with specified start date. |
|
HighLowClose(AxisXY axis,
double[] x,
double[] high,
double[] low,
double[] close)
Constructs a high-low-close chart node at specified axis points. |
|
HighLowClose(AxisXY axis,
double[] x,
double[] high,
double[] low,
double[] close,
double[] open)
Constructs a high-low-close-open chart node at specified axis points. |
Method Summary | |
---|---|
void |
dataRange(double[] range)
Update the data range, range = {xmin,xmax,ymin,ymax} . |
double[] |
getClose()
Gets the value of the attribute "Close". |
double[] |
getHigh()
Convenience routine to get the "High" attribute. |
double[] |
getLow()
Convenience routine to get the "Low" attribute. |
double[] |
getOpen()
Gets the value of the attribute "Open". |
void |
paint(Draw draw)
Paints this node and all of its children. |
void |
setClose(double[] value)
Sets the attribute "Close". |
void |
setDateAxis(String labelFormat)
Sets up the x-axis for high-low-close plot. |
void |
setHigh(double[] value)
Convenience routine to set the "High" attribute. |
void |
setLow(double[] value)
Convenience routine to set the "Low" attribute. |
void |
setOpen(double[] value)
Sets the attribute "Open". |
Methods inherited from class com.imsl.chart.Data |
---|
formatLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long DAY
public static final long serialVersionUID
Constructor Detail |
---|
public HighLowClose(AxisXY axis, Date start, double[] high, double[] low, double[] close)
axis
- an Axis
object, the parent of this node.start
- a date
object which contains the first date.high
- a double
array which contains the stock's high prices.
This is used to set the "High" attribute.low
- a double
array which contains the stock's low prices.
This is used to set the "Low" attribute.close
- a double
array which contains the stock's closing prices.
This is used to set the "Close" attribute.public HighLowClose(AxisXY axis, Date start, double[] high, double[] low, double[] close, double[] open)
axis
- an Axis
object, the parent of this node.start
- a date
object which contains the first date.high
- a double
array which contains the stock's high prices.
This is used to set the "High" attribute.low
- a double
array which contains the stock's low prices.
This is used to set the "Low" attribute.close
- a double
array which contains the stock's closing prices.
This is used to set the "Close" attribute.open
- a double
array which contains the stock's opening prices.
This is used to set the "Open" attribute.public HighLowClose(AxisXY axis, double[] x, double[] high, double[] low, double[] close)
axis
- an Axis
object, the parent of this node.x
- a double
array which contains the axis points.
This is used to set the "X" attribute.high
- a double
array which contains the stock's high prices.
This is used to set the "High" attribute.low
- a double
array which contains the stock's low prices.
This is used to set the "Low" attribute.close
- a double
array which contains the stock's closing prices.
This is used to set the "Close" attribute.public HighLowClose(AxisXY axis, double[] x, double[] high, double[] low, double[] close, double[] open)
axis
- an Axis
object, the parent of this node.x
- a double
array which contains the axis points.
This is used to set the "X" attribute.high
- a double
array which contains the stock's high prices.
This is used to set the "High" attribute.low
- a double
array which contains the stock's low prices.
This is used to set the "Low" attribute.close
- a double
array which contains the stock's closing prices.
This is used to set the "Close" attribute.open
- a double
array which contains the stock's opening prices
This is used to set the "Open" attribute.Method Detail |
---|
public void dataRange(double[] range)
range = {xmin,xmax,ymin,ymax}
.
The entries in range are updated to reflect the extent of
the data in this node.
The argument range
is an input/output variable. Its value should be
updated only if the data in this node is outside the range
already in the array.
dataRange
in class Data
range
- a double
array which contains the updated
range, {xmin,xmax,ymin,ymax}public double[] getClose()
double
array of closing stock prices.
public double[] getHigh()
double
array of high stock prices.public double[] getLow()
double
array of low stock prices.public double[] getOpen()
double
array of opening stock prices.
public void paint(Draw draw)
paint
in class Data
draw
- the Draw
object to be paintedpublic void setClose(double[] value)
value
- a double
array of closing stock prices.public void setDateAxis(String labelFormat)
labelFormat
- is used to format the date axis labels.
It sets the TextFormat attribute in the AxisLabel node.AbstractChartNode.setTextFormat(String)
,
AxisLabel
public void setHigh(double[] value)
value
- an double
array of high stock prices.public void setLow(double[] value)
value
- an double
array of low stock prices.public void setOpen(double[] value)
value
- a double
array of opening stock prices.
|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |