|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XYModel
A XY chart data model.
Chart,
SimpleXYModel| Method Summary | |
|---|---|
void |
addValue(Comparable<?> series,
Number x,
Number y)
Append an (x,y) into a series. |
void |
addValue(Comparable<?> series,
Number x,
Number y,
int index)
Add an (x,y) into a series at specified index. |
void |
clear()
clear this model. |
int |
getDataCount(Comparable<?> series)
Get data count of a specified series. |
Collection<Comparable<?>> |
getSeries()
Get all series as a collection. |
Comparable<?> |
getSeries(int index)
Get a series of the specified index; |
Number |
getX(Comparable<?> series,
int index)
Get X value of a specified series and data index. |
Number |
getY(Comparable<?> series,
int index)
Get Y value of a specified series and data index. |
boolean |
isAutoSort()
check whether to autosort on x value for each series; default is true. |
void |
removeSeries(Comparable<?> series)
Remove data of a specified series. |
void |
removeValue(Comparable<?> series,
int index)
Remove (x,y) value of a specified series and data index. |
void |
setAutoSort(boolean auto)
Set model to autosort on x value for each series. |
void |
setValue(Comparable<?> series,
Number x,
Number y,
int index)
Replace the value of the new (x,y) into a series at specified index. |
| Methods inherited from interface org.zkoss.zul.ChartModel |
|---|
addChartDataListener, removeChartDataListener |
| Method Detail |
|---|
Comparable<?> getSeries(int index)
Collection<Comparable<?>> getSeries()
int getDataCount(Comparable<?> series)
series - the specified series.
Number getX(Comparable<?> series,
int index)
series - the series.index - the data index.
Number getY(Comparable<?> series,
int index)
series - the series.index - the data index.
void setValue(Comparable<?> series,
Number x,
Number y,
int index)
series - the seriesx - the x valuey - the y valueindex - the data index
void addValue(Comparable<?> series,
Number x,
Number y)
series - the series.x - the x value.y - the y value.
void addValue(Comparable<?> series,
Number x,
Number y,
int index)
series - the series.x - the x value.y - the y value.index - the data index.void setAutoSort(boolean auto)
boolean isAutoSort()
void removeSeries(Comparable<?> series)
series - the series
void removeValue(Comparable<?> series,
int index)
series - the series.index - the data index.void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||