Package org.wicketstuff.jqplot.lib.data
Class LabeledData<T extends Number>
- java.lang.Object
-
- org.wicketstuff.jqplot.lib.data.AbstractCollectionData<LabeledItem<T>>
-
- org.wicketstuff.jqplot.lib.data.LabeledData<T>
-
- Type Parameters:
T- Type of number. Ex.: Double, Integer, Float, etc.
- All Implemented Interfaces:
Serializable,ChartData<Collection<LabeledItem<T>>>
public class LabeledData<T extends Number> extends AbstractCollectionData<LabeledItem<T>>
Data Helper to build Labeled Charts.- Author:
- inaiat
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LabeledData()Instantiates a new labeled data.LabeledData(LabeledItem<T>... values)Instantiates a new labeled data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<LabeledItem<T>>getData()Gets the data.intsize()Gets the size of the data.StringtoJsonString()To json string.-
Methods inherited from class org.wicketstuff.jqplot.lib.data.AbstractCollectionData
addValue, addValues, addValues
-
-
-
-
Constructor Detail
-
LabeledData
public LabeledData()
Instantiates a new labeled data.
-
LabeledData
public LabeledData(LabeledItem<T>... values)
Instantiates a new labeled data.- Parameters:
values- the values
-
-
Method Detail
-
toJsonString
public String toJsonString()
Description copied from interface:ChartDataTo json string.- Returns:
- the string
-
getData
public Collection<LabeledItem<T>> getData()
Description copied from interface:ChartDataGets the data.- Returns:
- the data
-
size
public int size()
Gets the size of the data.- Returns:
- the data
-
-