| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.chart.AbstractChart<ITEM_TYPE>
org.silverpeas.chart.AbstractAxisChart<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE>
public abstract class AbstractAxisChart<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE extends AbstractAxisChartItem<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE>>
| Constructor Summary | |
|---|---|
| AbstractAxisChart() | |
| Method Summary | ||
|---|---|---|
| protected 
 | add(ITEM_TYPE item)Adds an item into the list of chart items. | |
| protected  void | computeExtraDataAsJson(org.json.JSONObject jsonChart)Overriding this method if necessary. | |
|  ITEM_TYPE | forX(XAXIS_DATA_TYPE xValue)Creates or gets the item associated to the given x value. | |
|  ChartAxis | getAxisX()Gets the ChartAxisthat represents the x axis. | |
|  ChartAxis | getAxisY()Gets the ChartAxisthat represents the y axis. | |
| protected  ITEM_TYPE | getItemFrom(XAXIS_DATA_TYPE xValue)Gets the item associated to the given x value. | |
| Methods inherited from class org.silverpeas.chart.AbstractChart | 
|---|
| addExtra, asJson, getExtra, getItems, getTitle, withTitle | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.silverpeas.chart.Chart | 
|---|
| getType | 
| Constructor Detail | 
|---|
public AbstractAxisChart()
| Method Detail | 
|---|
public ChartAxis getAxisX()
ChartAxis that represents the x axis.
ChartAxis of x axis.public ChartAxis getAxisY()
ChartAxis that represents the y axis.
ChartAxis of y axis.protected void computeExtraDataAsJson(org.json.JSONObject jsonChart)
AbstractChart
computeExtraDataAsJson in class AbstractChart<ITEM_TYPE extends AbstractAxisChartItem<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE>>jsonChart - the json object that represents the chart.protected ITEM_TYPE getItemFrom(XAXIS_DATA_TYPE xValue)
xValue - the x value.
protected <T extends AbstractChart<ITEM_TYPE>> T add(ITEM_TYPE item)
AbstractChart
add in class AbstractChart<ITEM_TYPE extends AbstractAxisChartItem<XAXIS_DATA_TYPE,YAXIS_DATA_TYPE,ITEM_TYPE>>item - the chart item to add.
public ITEM_TYPE forX(XAXIS_DATA_TYPE xValue)
xValue - the x value.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||