|
||||||||||
| 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<Period,Number,PeriodChartItem>
org.silverpeas.chart.period.PeriodChart
public class PeriodChart
| Method Summary | |
|---|---|
protected void |
computeExtraDataAsJson(org.json.JSONObject jsonChart)
Overriding this method if necessary. |
PeriodChartItem |
forX(Date dateReference,
PeriodType periodType)
Adds a value associated to a period. |
PeriodChartItem |
forX(Period period)
Creates or gets the item associated to the given x value. |
static PeriodChart |
fromTitle(String title)
Initializes a new chart with the specified title that will provides the data in order to display them on a temporal graphic. |
PeriodType |
getDefaultPeriodType()
Gets the default period type. |
ChartType |
getType()
Gets the type of chart. |
PeriodChart |
setDefaultPeriodType(PeriodType defaultPeriodType)
Sets the default period type. |
static PeriodChart |
withoutTitle()
Initializes a new chart without title that will provides the data in order to display them on a temporal graphic. |
| Methods inherited from class org.silverpeas.chart.AbstractAxisChart |
|---|
add, getAxisX, getAxisY, getItemFrom |
| 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 |
| Method Detail |
|---|
public static PeriodChart fromTitle(String title)
title - the main title of the chart.
PeriodChart.public static PeriodChart withoutTitle()
PeriodChart.public ChartType getType()
Chart
ChartType.public PeriodType getDefaultPeriodType()
PeriodType.public PeriodChart setDefaultPeriodType(PeriodType defaultPeriodType)
defaultPeriodType - the default period type.
protected void computeExtraDataAsJson(org.json.JSONObject jsonChart)
AbstractChart
computeExtraDataAsJson in class AbstractAxisChart<Period,Number,PeriodChartItem>jsonChart - the json object that represents the chart.
public PeriodChartItem forX(Date dateReference,
PeriodType periodType)
PeriodType of the period must not be PeriodType.unknown.
dateReference - a date of reference.periodType - the period to represents.
PeriodChartItem that represents the given values.public PeriodChartItem forX(Period period)
AbstractAxisChart
forX in class AbstractAxisChart<Period,Number,PeriodChartItem>period - the x value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||