public class DefaultChartDataSet extends Object implements ChartDataSet
Modifier and Type | Class and Description |
---|---|
static class |
DefaultChartDataSet.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
protected Hashtable<String,ArrayList<Object>> |
props |
protected List<ChartSerieEntity> |
savedSeries |
protected List<ChartSerieEntity> |
series |
Constructor and Description |
---|
DefaultChartDataSet() |
Modifier and Type | Method and Description |
---|---|
void |
addData(String attName,
ArrayList<Object> array) |
void |
addData(String attName,
Iterator it) |
void |
addData(String attName,
Object[] key) |
void |
clear() |
ChartDataSet |
clone() |
void |
combine(ChartDataSet ds) |
List<String> |
getAttributeNames() |
String |
getDomainField()
Values of the domain field will be used as X axis in XYPlot, for example
or as Domain axis in CategoryPlot.
|
boolean |
getIsSorted() |
String |
getKeyField()
Can be null.
|
String |
getRangeField()
Values of the range field will be use as Y axis in XYPlot.
|
List<ChartSerieEntity> |
getSavedSeries() |
List<ChartSerieEntity> |
getSeries() |
Iterator<Object> |
getValues(String attributeName) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setColumnField(String columnField) |
void |
setIsSorted(boolean boolean1) |
void |
setKeyField(String keyField) |
void |
setRowField(String rowField) |
void |
setSeries(List<ChartSerieEntity> series) |
void |
setSeriesPaint(ChartSerieEntity serie,
Color paint) |
void |
setSeriesShape(ChartSerieEntity serie,
Shape shape) |
void |
setSeriesShapesVisible(ChartSerieEntity serie,
boolean visible) |
void |
setSeriesStroke(ChartSerieEntity serie,
Stroke stroke) |
void |
sortDataByField(String string,
String values) |
protected List<ChartSerieEntity> series
protected List<ChartSerieEntity> savedSeries
public String getKeyField()
ChartDataSet
getKeyField
in interface ChartDataSet
public void setKeyField(String keyField)
setKeyField
in interface ChartDataSet
public String getDomainField()
ChartDataSet
getDomainField
in interface ChartDataSet
public void setColumnField(String columnField)
setColumnField
in interface ChartDataSet
public String getRangeField()
ChartDataSet
getRangeField
in interface ChartDataSet
public void setRowField(String rowField)
setRowField
in interface ChartDataSet
public List<String> getAttributeNames()
getAttributeNames
in interface ChartDataSet
public Iterator<Object> getValues(String attributeName)
getValues
in interface ChartDataSet
public void addData(String attName, Iterator it)
addData
in interface ChartDataSet
public void addData(String attName, ArrayList<Object> array)
addData
in interface ChartDataSet
public void clear()
clear
in interface ChartDataSet
public void combine(ChartDataSet ds)
combine
in interface ChartDataSet
public List<ChartSerieEntity> getSeries()
getSeries
in interface ChartDataSet
public void setSeriesPaint(ChartSerieEntity serie, Color paint)
setSeriesPaint
in interface ChartDataSet
public void setSeriesShapesVisible(ChartSerieEntity serie, boolean visible)
setSeriesShapesVisible
in interface ChartDataSet
public void setSeriesShape(ChartSerieEntity serie, Shape shape)
setSeriesShape
in interface ChartDataSet
public void setSeriesStroke(ChartSerieEntity serie, Stroke stroke)
setSeriesStroke
in interface ChartDataSet
public void setSeries(List<ChartSerieEntity> series)
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public List<ChartSerieEntity> getSavedSeries()
getSavedSeries
in interface ChartDataSet
public ChartDataSet clone()
clone
in interface ChartDataSet
clone
in class Object
public void sortDataByField(String string, String values)
sortDataByField
in interface ChartDataSet
public boolean getIsSorted()
getIsSorted
in interface ChartDataSet
public void setIsSorted(boolean boolean1)
setIsSorted
in interface ChartDataSet