public interface HiLoModel extends ChartModel
Chart
,
SimpleHiLoModel
Modifier and Type | Method and Description |
---|---|
void |
addValue(Date date,
Number open,
Number high,
Number low,
Number close,
Number volumn)
Append an (date, open, high, low, close, volumn) tuple.
|
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.
|
void |
clear()
clear this model.
|
Number |
getClose(int index)
Get close value of a specified data index.
|
int |
getDataCount()
Get data count.
|
Date |
getDate(int index)
Get date of a specified data index.
|
Number |
getHigh(int index)
Get High value of a specified data index.
|
Number |
getLow(int index)
Get Low value of a specified data index.
|
Number |
getOpen(int index)
Get Open value of a specified data index.
|
Comparable<?> |
getSeries()
Get the only series.
|
Number |
getVolume(int index)
Get volume value of a specified data index.
|
void |
removeValue(int index)
Remove (date, open, high, low, close, volumn) tuple of a data index.
|
void |
setSeries(Comparable<?> series)
Set the only series.
|
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.
|
addChartDataListener, removeChartDataListener
Comparable<?> getSeries()
void setSeries(Comparable<?> series)
series
- the only series in legend.int getDataCount()
Date getDate(int index)
Number getOpen(int index)
index
- the data index.Number getHigh(int index)
index
- the data index.Number getLow(int index)
index
- the data index.Number getClose(int index)
index
- the data index.Number getVolume(int index)
index
- the data index.void addValue(Date date, Number open, Number high, Number low, Number close, Number volumn)
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.void addValue(Date date, Number open, Number high, Number low, Number close, Number volumn, int index)
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 indexvoid setValue(Date date, Number open, Number high, Number low, Number close, Number volumn, int index)
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 indexvoid removeValue(int index)
index
- the data index.void clear()
Copyright © 2020. All rights reserved.