|
JMSLTM Numerical Library 6.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 com.imsl.chart.Candlestick
public class Candlestick
Candlestick plot of stock data.
Two nodes are created as children of this node. One for the up days and one for the down days.
Field Summary |
---|
Fields inherited from class com.imsl.chart.HighLowClose |
---|
DAY |
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 | |
---|---|
Candlestick(AxisXY axis,
Date start,
double[] high,
double[] low,
double[] close,
double[] open)
Constructs a candlestick chart node beginning with specified start date. |
|
Candlestick(AxisXY axis,
double[] x,
double[] high,
double[] low,
double[] close,
double[] open)
Constructs a candlestick chart node at specified axis points. |
Method Summary | |
---|---|
CandlestickItem |
getDown()
Returns the CandlestickItem for down days. |
CandlestickItem |
getUp()
Returns the CandlestickItem for up days. |
void |
paint(Draw draw)
Paints this node and all of its children. |
Methods inherited from class com.imsl.chart.HighLowClose |
---|
dataRange, getClose, getHigh, getLow, getOpen, setClose, setDateAxis, setHigh, setLow, setOpen |
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 |
Constructor Detail |
---|
public Candlestick(AxisXY axis, Date start, double[] high, double[] low, double[] close, double[] open)
axis
- an Axis
object, the parent of this nodestart
- a date
object which contains the first datehigh
- 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 Candlestick(AxisXY axis, double[] x, double[] high, double[] low, double[] close, double[] open)
axis
- an Axis
object, the parent of this nodex
- 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 CandlestickItem getDown()
public CandlestickItem getUp()
public void paint(Draw draw)
paint
in class HighLowClose
draw
- the Draw
object to be painted
|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |