public abstract class ChartDataModel<T,S> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ChartDataModel.ChartType |
Modifier and Type | Field and Description |
---|---|
protected List<T> |
keys |
protected ChartStrategy |
strategy |
protected ChartDataModel.ChartType |
type |
Constructor and Description |
---|
ChartDataModel(ChartDataModel.ChartType type) |
Modifier and Type | Method and Description |
---|---|
JSONObject |
defaultExport() |
Object |
export() |
Map<String,Object> |
getAttributes() |
Map<T,S> |
getData() |
abstract Class |
getKeyType() |
ChartDataModel.ChartType |
getType() |
abstract Class |
getValueType() |
void |
put(T key,
S value) |
void |
remove(T key) |
void |
setAttributes(Map<String,Object> attributes) |
void |
setData(Map<T,S> data) |
protected ChartDataModel.ChartType type
protected ChartStrategy strategy
public ChartDataModel(ChartDataModel.ChartType type)
public void remove(T key)
public JSONObject defaultExport() throws IOException
IOException
public Object export() throws IOException
IOException
public ChartDataModel.ChartType getType()
public abstract Class getKeyType()
public abstract Class getValueType()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.