|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.chart.AbstractChartItem<ITEM_TYPE>
org.silverpeas.chart.AbstractAxisChartItem<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE>
public abstract class AbstractAxisChartItem<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE extends AbstractAxisChartItem<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE>>
| Constructor Summary | |
|---|---|
protected |
AbstractAxisChartItem(XAXIS_DATA_TYPE x)
|
| Method Summary | ||
|---|---|---|
ITEM_TYPE |
add(YAXIS_DATA_TYPE y)
Add a y value associated to the x one. |
|
protected void |
computeDataAsJson(org.json.JSONObject itemAsJson)
Computes the data of the item into a JSON representation. |
|
protected abstract org.json.JSONObject |
computeXAsJson(XAXIS_DATA_TYPE xValue)
Computes the data of the x value into a JSON representation. |
|
protected abstract
|
computeYValueAsJson(YAXIS_DATA_TYPE yValue)
Computes the data of a y value into a JSON representation. |
|
XAXIS_DATA_TYPE |
getX()
Gets the data of x axis. |
|
List<YAXIS_DATA_TYPE> |
getYValues()
Gets the value |
|
| Methods inherited from class org.silverpeas.chart.AbstractChartItem |
|---|
addExtra, asJson, getExtra, getTitle, withTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractAxisChartItem(XAXIS_DATA_TYPE x)
| Method Detail |
|---|
public XAXIS_DATA_TYPE getX()
public List<YAXIS_DATA_TYPE> getYValues()
public ITEM_TYPE add(YAXIS_DATA_TYPE y)
y - the value to add
protected void computeDataAsJson(org.json.JSONObject itemAsJson)
AbstractChartItem
computeDataAsJson in class AbstractChartItem<ITEM_TYPE extends AbstractAxisChartItem<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE>>protected abstract org.json.JSONObject computeXAsJson(XAXIS_DATA_TYPE xValue)
xValue - the value on x axis.protected abstract <T> T computeYValueAsJson(YAXIS_DATA_TYPE yValue)
yValue - a y value from getYValues().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||