| org.zkoss.zul.HiLoModel
All known Subclasses: org.zkoss.zul.SimpleHiLoModel,
HiLoModel | public interface HiLoModel extends ChartModel(Code) | | A HiLo chart data model (date, open, close, high, low, volumn) usually used in
stock market.
author: henrichen See Also: Chart See Also: SimpleHiLoModel |
Method Summary | |
public void | addValue(Date date, Number open, Number high, Number low, Number close, Number volumn) Add an (date, open, high, low, close, volumn) tuple. | public void | clear() clear this model. | public Number | getClose(int index) Get close value of a specified data index. | public int | getDataCount() Get data count. | public Date | getDate(int index) Get date of a specified data index. | public Number | getHigh(int index) Get High value of a specified data index. | public Number | getLow(int index) Get Low value of a specified data index. | public Number | getOpen(int index) Get Open value of a specified data index. | public Comparable | getSeries() Get the only series. | public Number | getVolume(int index) Get volume value of a specified data index. | public void | removeValue(int index) Remove (date, open, high, low, close, volumn) tuple of a data index. | public void | setSeries(Comparable series) Set the only series. |
addValue | public void addValue(Date date, Number open, Number high, Number low, Number close, Number volumn)(Code) | | Add an (date, open, high, low, close, volumn) tuple.
Parameters: date - the date Parameters: open - the open value in the date. Parameters: high - the high value in the date. Parameters: low - the low value in the date. Parameters: close - the close value in the date. Parameters: volumn - the trading volumn in the date. |
clear | public void clear()(Code) | | clear this model.
|
getClose | public Number getClose(int index)(Code) | | Get close value of a specified data index.
Parameters: index - the data index. |
getDataCount | public int getDataCount()(Code) | | Get data count.
|
getDate | public Date getDate(int index)(Code) | | Get date of a specified data index.
|
getHigh | public Number getHigh(int index)(Code) | | Get High value of a specified data index.
Parameters: index - the data index. |
getLow | public Number getLow(int index)(Code) | | Get Low value of a specified data index.
Parameters: index - the data index. |
getOpen | public Number getOpen(int index)(Code) | | Get Open value of a specified data index.
Parameters: index - the data index. |
getVolume | public Number getVolume(int index)(Code) | | Get volume value of a specified data index.
Parameters: index - the data index. |
removeValue | public void removeValue(int index)(Code) | | Remove (date, open, high, low, close, volumn) tuple of a data index.
Parameters: index - the data index. |
setSeries | public void setSeries(Comparable series)(Code) | | Set the only series.
Parameters: series - the only series in legend. |
|
|