public class GoogleComboChart
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.HashMap<AxisType,java.util.ArrayList<ChartSeries>> |
axes
A list of axes to add to the chart
|
private CurveType |
curveType
The style of chart line, as defined in the Google Chart API.
|
private int |
height
The height of the chart in pixels, provided in-line in the JSF tag with the "height" parameter, excluding "px".
|
private java.lang.String |
id
ID that will be provided by the JSF build cycle
|
private java.lang.String |
indexLineLabel
A label for the index line
|
private int |
indexLineVal
A y-value to display as a straight line across the chart to indicate some index.
|
private java.util.ArrayList<ChartSeries> |
seriesList
A list of series to add to the chart, individual series should be added with the
addSeries method. |
private java.lang.String |
title
The title of the chart
|
private boolean |
titleBold
Boolean to indicate a bold title
|
private java.lang.String |
titleColor
A color value to use for the chart's title.
|
private java.lang.String |
verticalAxisLabel
A label for the vertical axis
|
private int |
width
The width of the chart in pixels, provided in-line in the JSF tag with the "width" parameter, excluding "px".
|
| Constructor and Description |
|---|
GoogleComboChart() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAxisSeries(ChartSeries series,
AxisType axis)
Add a data series to be used as an axis
|
void |
addSeries(ChartSeries series)
Add a data series to the chart
|
java.util.HashMap<AxisType,java.util.ArrayList<ChartSeries>> |
getAxes() |
CurveType |
getCurveType() |
int |
getHeight() |
java.lang.String |
getId() |
java.lang.String |
getIndexLineLabel() |
int |
getIndexLineVal() |
java.util.ArrayList<ChartSeries> |
getSeriesList() |
java.lang.String |
getTitle() |
java.lang.String |
getTitleColor() |
java.lang.String |
getVerticalAxisLabel() |
int |
getWidth() |
boolean |
isTitleBold() |
void |
setAxes(java.util.HashMap<AxisType,java.util.ArrayList<ChartSeries>> axes) |
void |
setCurveType(CurveType curveType) |
void |
setHeight(int height) |
void |
setId(java.lang.String id) |
void |
setIndexLine(int value,
java.lang.String label)
Create an index line to be displayed across the chart
|
void |
setSeriesList(java.util.ArrayList<ChartSeries> seriesList) |
void |
setTitle(java.lang.String title) |
void |
setTitleBold(boolean titleBold) |
void |
setTitleColor(java.lang.String titleColor) |
void |
setVerticalAxisLabel(java.lang.String verticalAxisLabel) |
void |
setWidth(int width) |
private java.lang.String id
private java.lang.String title
private int width
private int height
private int indexLineVal
private java.lang.String indexLineLabel
private java.util.ArrayList<ChartSeries> seriesList
addSeries method.private java.util.HashMap<AxisType,java.util.ArrayList<ChartSeries>> axes
private java.lang.String titleColor
private boolean titleBold
private java.lang.String verticalAxisLabel
private CurveType curveType
public void setIndexLine(int value,
java.lang.String label)
value - an Int of the Y value to draw the index linelabel - a String to display as the label for the index linepublic void addSeries(ChartSeries series)
series - a ChartSeries to be added to the chartpublic void addAxisSeries(ChartSeries series, AxisType axis)
series - a ChartSeries object to be added as an axisaxis - an AxisType specifying which axis to use the series onpublic java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public java.util.ArrayList<ChartSeries> getSeriesList()
public void setSeriesList(java.util.ArrayList<ChartSeries> seriesList)
public java.util.HashMap<AxisType,java.util.ArrayList<ChartSeries>> getAxes()
public void setAxes(java.util.HashMap<AxisType,java.util.ArrayList<ChartSeries>> axes)
public boolean isTitleBold()
public void setTitleBold(boolean titleBold)
public java.lang.String getTitleColor()
public void setTitleColor(java.lang.String titleColor)
public java.lang.String getVerticalAxisLabel()
public void setVerticalAxisLabel(java.lang.String verticalAxisLabel)
public java.lang.String getIndexLineLabel()
public int getIndexLineVal()
public CurveType getCurveType()
public void setCurveType(CurveType curveType)