Class BarChart
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.Charts.Charts.Chart
-
- com.cloudofficeprint.RenderElements.Charts.Charts.BarChart
-
public class BarChart extends Chart
Represents a bar chart.
-
-
Constructor Summary
Constructors Constructor Description BarChart(java.lang.String name, ChartOptions options, BarSeries... barSeries)
Represents a bar chart.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<BarSeries>
getBarSeries()
com.google.gson.JsonObject
getJSON()
void
setBarSeries(java.util.ArrayList<BarSeries> barSeries)
-
Methods inherited from class com.cloudofficeprint.RenderElements.Charts.Charts.Chart
getOptions, getTemplateTags, setOptions
-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
Constructor Detail
-
BarChart
public BarChart(java.lang.String name, ChartOptions options, BarSeries... barSeries)
Represents a bar chart.- Parameters:
name
- Name of the chart (for the tag).options
- Options of the chart.barSeries
- Series with the data for the chart.
-
-
Method Detail
-
getBarSeries
public java.util.ArrayList<BarSeries> getBarSeries()
- Returns:
- BarSeries with the data for the chart.
-
setBarSeries
public void setBarSeries(java.util.ArrayList<BarSeries> barSeries)
- Parameters:
barSeries
- BarSeries with the data for the chart.
-
getJSON
public com.google.gson.JsonObject getJSON()
- Specified by:
getJSON
in classRenderElement
- Returns:
- JSONObject with the tags for this element for the Cloud Office Print server.
-
-