Package org.wicketstuff.jqplot.lib.data
Class BarData<T extends Number>
- java.lang.Object
-
- org.wicketstuff.jqplot.lib.data.AbstractCollectionData<Collection<T>>
-
- org.wicketstuff.jqplot.lib.data.BarData<T>
-
- Type Parameters:
T- Type of number. Ex.: Double, Integer, Float, etc.
- All Implemented Interfaces:
Serializable,ChartData<Collection<Collection<T>>>
public class BarData<T extends Number> extends AbstractCollectionData<Collection<T>>
Data Helper to build Bar Charts.- Author:
- inaiat
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BarData()Instantiates a new bar data.BarData(Collection<T>... values)Instantiates a new bar data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Collection<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
-
BarData
public BarData()
Instantiates a new bar data.
-
BarData
public BarData(Collection<T>... values)
Instantiates a new bar data.- Parameters:
values- the values
-
-
Method Detail
-
getData
public Collection<Collection<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
-
-