Package org.zkoss.chart.model
Class DefaultXYZModel
- java.lang.Object
-
- org.zkoss.chart.model.AbstractChartsModel
-
- org.zkoss.chart.model.DefaultXYModel
-
- org.zkoss.chart.model.DefaultXYZModel
-
- All Implemented Interfaces:
Serializable
,ChartsModel
,XYModel
,XYZModel
public class DefaultXYZModel extends DefaultXYModel implements XYZModel
A XYZ data model implementation ofXYZModel
. A XYZ model is an N series of (X, Y, Z) data objects .- Author:
- jumperchen
- See Also:
XYModel
,Charts
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.zkoss.chart.model.DefaultXYModel
DefaultXYModel.XYPair
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.model.DefaultXYModel
_seriesList, _seriesMap
-
Fields inherited from class org.zkoss.chart.model.AbstractChartsModel
_listeners
-
-
Constructor Summary
Constructors Constructor Description DefaultXYZModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(Comparable<?> series, Number x, Number y)
Not supported since we need not only x, y, but also z information.void
addValue(Comparable<?> series, Number x, Number y, int index)
Not supported since we need not only x, y, but also z information.void
addValue(Comparable<?> series, Number x, Number y, Number z)
Append an (x,y,z) into a series.void
addValue(Comparable<?> series, Number x, Number y, Number z, int index)
Add an (x,y,z) into a series at the specified index.Number
getZ(Comparable<?> series, int index)
Get Z value of a specified series and data index.void
removeValue(Comparable<?> series, int index)
Remove (x,Y) value of a specified series and data index.void
setValue(Comparable<?> series, Number x, Number y, int index)
Not supported since we need not only x, y, but also z information.void
setValue(Comparable<?> series, Number x, Number y, Number z, int index)
Replace an (x,y,z) into a series at the specified index.-
Methods inherited from class org.zkoss.chart.model.DefaultXYModel
clear, clone, getDataCount, getSeries, getSeries, getX, getY, isAutoSort, removeSeries, setAutoSort
-
Methods inherited from class org.zkoss.chart.model.AbstractChartsModel
addChartsDataListener, fireEvent, removeChartsDataListener
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zkoss.chart.model.ChartsModel
addChartsDataListener, removeChartsDataListener
-
Methods inherited from interface org.zkoss.chart.model.XYModel
clear, getDataCount, getSeries, getSeries, getX, getY, isAutoSort, removeSeries, setAutoSort
-
-
-
-
Method Detail
-
addValue
public void addValue(Comparable<?> series, Number x, Number y)
Not supported since we need not only x, y, but also z information.- Specified by:
addValue
in interfaceXYModel
- Overrides:
addValue
in classDefaultXYModel
- Parameters:
series
- the series.x
- the x value.y
- the y value.
-
addValue
public void addValue(Comparable<?> series, Number x, Number y, int index)
Not supported since we need not only x, y, but also z information.- Specified by:
addValue
in interfaceXYModel
- Overrides:
addValue
in classDefaultXYModel
- Parameters:
series
- the series.x
- the x value.y
- the y value.index
- the data index.
-
setValue
public void setValue(Comparable<?> series, Number x, Number y, int index)
Not supported since we need not only x, y, but also z information.- Specified by:
setValue
in interfaceXYModel
- Overrides:
setValue
in classDefaultXYModel
- Parameters:
series
- the seriesx
- the x valuey
- the y valueindex
- the data index
-
getZ
public Number getZ(Comparable<?> series, int index)
Description copied from interface:XYZModel
Get Z value of a specified series and data index.
-
addValue
public void addValue(Comparable<?> series, Number x, Number y, Number z)
Description copied from interface:XYZModel
Append an (x,y,z) into a series.
-
setValue
public void setValue(Comparable<?> series, Number x, Number y, Number z, int index)
Description copied from interface:XYZModel
Replace an (x,y,z) into a series at the specified index.
-
addValue
public void addValue(Comparable<?> series, Number x, Number y, Number z, int index)
Description copied from interface:XYZModel
Add an (x,y,z) into a series at the specified index.
-
removeValue
public void removeValue(Comparable<?> series, int index)
Description copied from interface:XYModel
Remove (x,Y) value of a specified series and data index.- Specified by:
removeValue
in interfaceXYModel
- Overrides:
removeValue
in classDefaultXYModel
- Parameters:
series
- the series.index
- the data index.
-
-