org.silverpeas.chart
Interface Chart<CHART_ITEM_TYPE extends ChartItem>

All Known Implementing Classes:
AbstractAxisChart, AbstractChart, PeriodChart, PieChart

public interface Chart<CHART_ITEM_TYPE extends ChartItem>

Author:
Yohann Chastagnier

Method Summary
 String asJson()
          Gets data list as a json array.
 List<CHART_ITEM_TYPE> getItems()
          Gets all items that constitutes the chart.
 String getTitle()
          Gets the title of the chart.
 ChartType getType()
          Gets the type of chart.
 

Method Detail

getType

ChartType getType()
Gets the type of chart.

Returns:
the ChartType.

getTitle

String getTitle()
Gets the title of the chart.

Returns:
the title of the chart.

getItems

List<CHART_ITEM_TYPE> getItems()
Gets all items that constitutes the chart.

Returns:
a list of data where each data represents a chart part.

asJson

String asJson()
Gets data list as a json array.

Returns:
a string that represents a json array.


Copyright © 2016 Silverpeas. All Rights Reserved.