Package org.zkoss.chart.model
Interface FromToWeightModel
-
- All Superinterfaces:
ChartsModel,FromToModel
- All Known Implementing Classes:
DefaultFromToWeightModel
public interface FromToWeightModel extends FromToModel
A (from, to, weight) chart data model.- Since:
- 7.2.1.0
- Author:
- rudyhuang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddValue(Comparable<?> series, String from, String to, Number weight)Append a (from, to, weight) into a series.voidaddValue(Comparable<?> series, String from, String to, Number weight, int index)Add a (from, to, weight) into a series at the specified index.NumbergetWeight(Comparable<?> series, int index)Get weight value of a specified series and data index.voidsetValue(Comparable<?> series, String from, String to, Number weight, int index)Replace a (from, to, weight) into a series at the specified index.-
Methods inherited from interface org.zkoss.chart.model.ChartsModel
addChartsDataListener, removeChartsDataListener
-
Methods inherited from interface org.zkoss.chart.model.FromToModel
addValue, addValue, clear, getDataCount, getFrom, getSeries, getSeries, getTo, isAutoSort, removeSeries, removeValue, setAutoSort, setValue
-
-
-
-
Method Detail
-
getWeight
Number getWeight(Comparable<?> series, int index)
Get weight value of a specified series and data index.- Parameters:
series- the series.index- the data index.
-
addValue
void addValue(Comparable<?> series, String from, String to, Number weight)
Append a (from, to, weight) into a series.- Parameters:
series- the series.from- the from value.to- the to value.weight- the weight value.
-
addValue
void addValue(Comparable<?> series, String from, String to, Number weight, int index)
Add a (from, to, weight) into a series at the specified index.- Parameters:
series- the series.from- the from value.to- the to value.weight- the weight value.index- the data index.
-
setValue
void setValue(Comparable<?> series, String from, String to, Number weight, int index)
Replace a (from, to, weight) into a series at the specified index.- Parameters:
series- the series.from- the from value.to- the to value.weight- the weight value.index- the data index.
-
-