|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.chart.AbstractChartItem<DATA_TYPE>
public abstract class AbstractChartItem<DATA_TYPE>
| Constructor Summary | |
|---|---|
AbstractChartItem()
|
|
| Method Summary | ||
|---|---|---|
|
addExtra(String key,
Object value)
Adds an extra information associated to the chart, but not necessary for the chart rendering. |
|
String |
asJson()
Gets the json representation of the item. |
|
protected abstract void |
computeDataAsJson(org.json.JSONObject itemAsJson)
Computes the data of the item into a JSON representation. |
|
Object |
getExtra(String key)
Gets the value of an information associated to the chart, but not necessary for the chart rendering. |
|
String |
getTitle()
Gets the label of the item. |
|
|
withTitle(String title)
Sets the title that defines the item. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractChartItem()
| Method Detail |
|---|
public String getTitle()
ChartItem
getTitle in interface ChartItem
public <T extends AbstractChartItem<DATA_TYPE>> T addExtra(String key,
Object value)
T - key - the key at which the given information is registered.value - the value registered.
public Object getExtra(String key)
key - the ket at which the extra data is registered.
public <T extends AbstractChartItem<DATA_TYPE>> T withTitle(String title)
T - title - a title as string.
public final String asJson()
asJson in interface ChartItemprotected abstract void computeDataAsJson(org.json.JSONObject itemAsJson)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||