org.silverpeas.chart.period
Class PeriodChartItem

java.lang.Object
  extended by org.silverpeas.chart.AbstractChartItem<ITEM_TYPE>
      extended by org.silverpeas.chart.AbstractAxisChartItem<Period,Number,PeriodChartItem>
          extended by org.silverpeas.chart.period.PeriodChartItem
All Implemented Interfaces:
ChartItem

public class PeriodChartItem
extends AbstractAxisChartItem<Period,Number,PeriodChartItem>

Author:
Yohann Chastagnier

Method Summary
protected  org.json.JSONObject computeXAsJson(Period period)
          Computes the data of the x value into a JSON representation.
protected  Number computeYValueAsJson(Number yValue)
          Computes the data of a y value into a JSON representation.
 
Methods inherited from class org.silverpeas.chart.AbstractAxisChartItem
add, computeDataAsJson, getX, getYValues
 
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
 

Method Detail

computeXAsJson

protected org.json.JSONObject computeXAsJson(Period period)
Description copied from class: AbstractAxisChartItem
Computes the data of the x value into a JSON representation.

Specified by:
computeXAsJson in class AbstractAxisChartItem<Period,Number,PeriodChartItem>
Parameters:
period - the value on x axis.

computeYValueAsJson

protected Number computeYValueAsJson(Number yValue)
Description copied from class: AbstractAxisChartItem
Computes the data of a y value into a JSON representation.

Specified by:
computeYValueAsJson in class AbstractAxisChartItem<Period,Number,PeriodChartItem>
Parameters:
yValue - a y value from AbstractAxisChartItem.getYValues().


Copyright © 2016 Silverpeas. All Rights Reserved.