|
||||||||||
| 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(java.lang.Comparable series,
java.lang.Number x,
java.lang.Number y)
Add an (x,y) into a series. |
void |
clear()
clear this model. |
int |
getDataCount(java.lang.Comparable series)
Get data count of a specified series. |
java.util.Collection |
getSeries()
Get all series as a collection. |
java.lang.Comparable |
getSeries(int index)
Get a series of the specified index; |
java.lang.Number |
getX(java.lang.Comparable series,
int index)
Get X value of a specified series and data index. |
java.lang.Number |
getY(java.lang.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(java.lang.Comparable series)
/** Remove data of a specified series. |
void |
removeValue(java.lang.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. |
| Methods inherited from interface org.zkoss.zul.ChartModel |
|---|
addChartDataListener, removeChartDataListener |
| Method Detail |
|---|
java.lang.Comparable getSeries(int index)
java.util.Collection getSeries()
int getDataCount(java.lang.Comparable series)
series - the specified series.
java.lang.Number getX(java.lang.Comparable series,
int index)
series - the series.index - the data index.
java.lang.Number getY(java.lang.Comparable series,
int index)
series - the series.index - the data index.
void addValue(java.lang.Comparable series,
java.lang.Number x,
java.lang.Number y)
series - the series.x - the x value.y - the y value.void setAutoSort(boolean auto)
boolean isAutoSort()
void removeSeries(java.lang.Comparable series)
series - the series
void removeValue(java.lang.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 | |||||||||