Package org.zkoss.zul
Interface HiLoModel
- All Superinterfaces:
ChartModel
- All Known Implementing Classes:
SimpleHiLoModel
A HiLo chart data model (date, open, close, high, low, volumn) usually used in
stock market.
- Author:
- henrichen
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppend an (date, open, high, low, close, volumn) tuple.voidAdd an (date, open, high, low, close, volumn) tuple at specified index.voidclear()clear this model.getClose(int index) Get close value of a specified data index.intGet data count.getDate(int index) Get date of a specified data index.getHigh(int index) Get High value of a specified data index.getLow(int index) Get Low value of a specified data index.getOpen(int index) Get Open value of a specified data index.Comparable<?>Get the only series.getVolume(int index) Get volume value of a specified data index.voidremoveValue(int index) Remove (date, open, high, low, close, volumn) tuple of a data index.voidsetSeries(Comparable<?> series) Set the only series.voidReplace an (date, open, high, low, close, volumn) tuple at specified index.Methods inherited from interface org.zkoss.zul.ChartModel
addChartDataListener, removeChartDataListener
-
Method Details
-
getSeries
Comparable<?> getSeries()Get the only series. -
setSeries
Set the only series.- Parameters:
series- the only series in legend.
-
getDataCount
int getDataCount()Get data count. -
getDate
Get date of a specified data index. -
getOpen
Get Open value of a specified data index.- Parameters:
index- the data index.
-
getHigh
Get High value of a specified data index.- Parameters:
index- the data index.
-
getLow
Get Low value of a specified data index.- Parameters:
index- the data index.
-
getClose
Get close value of a specified data index.- Parameters:
index- the data index.
-
getVolume
Get volume value of a specified data index.- Parameters:
index- the data index.
-
addValue
Append an (date, open, high, low, close, volumn) tuple.- Parameters:
date- the dateopen- the open value in the date.high- the high value in the date.low- the low value in the date.close- the close value in the date.volumn- the trading volume in the date.
-
addValue
void addValue(Date date, Number open, Number high, Number low, Number close, Number volumn, int index) Add an (date, open, high, low, close, volumn) tuple at specified index.- Parameters:
date- the dateopen- the open value in the date.high- the high value in the date.low- the low value in the date.close- the close value in the date.volumn- the trading volumn in the date.index- the data index- Since:
- 5.0.0
-
setValue
void setValue(Date date, Number open, Number high, Number low, Number close, Number volumn, int index) Replace an (date, open, high, low, close, volumn) tuple at specified index.- Parameters:
date- the dateopen- the open value in the date.high- the high value in the date.low- the low value in the date.close- the close value in the date.volumn- the trading volumn in the date.index- the data index- Since:
- 5.0.0
-
removeValue
void removeValue(int index) Remove (date, open, high, low, close, volumn) tuple of a data index.- Parameters:
index- the data index.
-
clear
void clear()clear this model.
-