Package org.zkoss.chart.model
Interface FromToModel
-
- All Superinterfaces:
ChartsModel
- All Known Subinterfaces:
FromToWeightModel
- All Known Implementing Classes:
DefaultFromToModel,DefaultFromToWeightModel
public interface FromToModel extends ChartsModel
A (from, to) chart data model.- Since:
- 7.2.1.0
- Author:
- rudyhuang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddValue(Comparable<?> series, String from, String to)Append a (from, to) into a series.voidaddValue(Comparable<?> series, String from, String to, int index)Add a (from, to) into a series at specified index.voidclear()clear this model.intgetDataCount(Comparable<?> series)Get data count of a specified series.StringgetFrom(Comparable<?> series, int index)Get from value of a specified series and data index.Collection<Comparable<?>>getSeries()Get all series as a collection.Comparable<?>getSeries(int index)Get a series of the specified index;StringgetTo(Comparable<?> series, int index)Get to value of a specified series and data index.booleanisAutoSort()Deprecated.since 7.2.2.0.voidremoveSeries(Comparable<?> series)/** Remove data of a specified series.voidremoveValue(Comparable<?> series, int index)Remove (from, to) value of a specified series and data index.voidsetAutoSort(boolean auto)Deprecated.since 7.2.2.0.voidsetValue(Comparable<?> series, String from, String to, int index)Replace the value of the new (from, to) into a series at specified index.-
Methods inherited from interface org.zkoss.chart.model.ChartsModel
addChartsDataListener, removeChartsDataListener
-
-
-
-
Method Detail
-
getSeries
Comparable<?> getSeries(int index)
Get a series of the specified index;
-
getSeries
Collection<Comparable<?>> getSeries()
Get all series as a collection.
-
getDataCount
int getDataCount(Comparable<?> series)
Get data count of a specified series.- Parameters:
series- the specified series.
-
getFrom
String getFrom(Comparable<?> series, int index)
Get from value of a specified series and data index.- Parameters:
series- the series.index- the data index.
-
getTo
String getTo(Comparable<?> series, int index)
Get to value of a specified series and data index.- Parameters:
series- the series.index- the data index.
-
setValue
void setValue(Comparable<?> series, String from, String to, int index)
Replace the value of the new (from, to) into a series at specified index.- Parameters:
series- the series.from- the from value.to- the to value.index- the data index.
-
addValue
void addValue(Comparable<?> series, String from, String to)
Append a (from, to) into a series.- Parameters:
series- the series.from- the from value.to- the to value.
-
addValue
void addValue(Comparable<?> series, String from, String to, int index)
Add a (from, to) into a series at specified index.- Parameters:
series- the series.from- the from value.to- the to value.index- the data index.
-
setAutoSort
@Deprecated void setAutoSort(boolean auto)
Deprecated.since 7.2.2.0. Added by mistakeSet model to autosort on x value for each series.
-
isAutoSort
@Deprecated boolean isAutoSort()
Deprecated.since 7.2.2.0. Added by mistakecheck whether to autosort on x value for each series; default is true.
-
removeSeries
void removeSeries(Comparable<?> series)
/** Remove data of a specified series.- Parameters:
series- the series
-
removeValue
void removeValue(Comparable<?> series, int index)
Remove (from, to) value of a specified series and data index.- Parameters:
series- the series.index- the data index.
-
clear
void clear()
clear this model.
-
-