public class Chart
extends com.ibm.json.java.JSONObject
Modifier and Type | Class and Description |
---|---|
static interface |
Chart.Fields
Field contants in this object, or child node objects
|
static interface |
Chart.Positions
Position Constants used by the Title
|
Constructor and Description |
---|
Chart() |
Modifier and Type | Method and Description |
---|---|
Axis |
addAxis(Axis axis) |
void |
addSeries(Series s)
Add a Series to this chart.
|
Axis |
getAxis(java.lang.String id) |
ChartType |
getChartType()
Returns the ChartType (ie, Dojo Chart Type) fort his chart.
|
Legend |
getLegend() |
com.ibm.json.java.JSONObject |
getOptionsNode()
Returns the JSON Options Node from this chart, if the options node is empty, then an Options
node will be created with default values, including an empty title text.
|
com.ibm.json.java.JSONArray |
getSeriesArray()
Returns the Array of Series objects for this Chart.
|
java.lang.String |
getTitle()
Convenience Method for getting the Title from the Title node.
|
Axis |
getXAxis() |
com.ibm.json.java.JSONArray |
getXLabels()
The X Labels for this dataset.
|
Axis |
getYAxis() |
com.ibm.json.java.JSONArray |
getYLabels()
The X Labels for this dataset.
|
boolean |
isNormalized()
Returns true if the Chart is normalized
|
Chart |
normalize()
A Chart Needs to be normalized before we can serialize it.
|
void |
setChartType(ChartType type)
Sets the chart type node
|
void |
setNormalized(boolean normalized)
Updates the normalized flag.
|
void |
setTitle(java.lang.String title)
Convenience method for setting the Title in the Title node.
|
void |
visit(ISeriesVisitor visitor)
Allow each item in each of the series to be visited by this visitor
|
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString
public com.ibm.json.java.JSONObject getOptionsNode()
public void setTitle(java.lang.String title)
title
- public java.lang.String getTitle()
public ChartType getChartType()
public void setChartType(ChartType type)
type
- public Chart normalize()
public com.ibm.json.java.JSONArray getSeriesArray()
public void addSeries(Series s)
s
- public boolean isNormalized()
public void setNormalized(boolean normalized)
normalized
- public com.ibm.json.java.JSONArray getXLabels()
public com.ibm.json.java.JSONArray getYLabels()
public Axis getAxis(java.lang.String id)
public Axis getXAxis()
public Axis getYAxis()
public Legend getLegend()
public void visit(ISeriesVisitor visitor)
visitor
-