|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.telscenter.sail.webapp.presentation.google.charts.impl.BasicGoogleChartOptions
public class BasicGoogleChartOptions
Basic implementation of GoogleChartOptions. The options implemented in this class can be used for all types of GoogleCharts except for GoogleMaps
| Field Summary | |
|---|---|
protected ChartColor |
chartColor
|
protected ChartEffect |
chartEffect
|
protected ChartTitle |
chartTitle
|
protected List<ChartOption> |
options
|
protected DataScaling |
scaling
|
| Constructor Summary | |
|---|---|
BasicGoogleChartOptions()
|
|
| Method Summary | |
|---|---|
void |
addChartColor(List<String> colors)
Specifies a list of colors for this charts data sets, points and legend. |
void |
addChartColor(String color)
Specifies the colors for chart data sets, data points or chart legend. |
void |
addScaling(float min,
float max)
Adds scaling from float min to float max for a
data set. |
void |
addScaling(List<Float> min,
List<Float> max)
Adds scaling for multiple data sets. |
void |
addSolidFill(String area,
String color)
A Solid Fill can be added to either the background, chart area or to apply a transparency to the entire chart and can be used in conjunction with Linear Stripe and Linear Gradient if available for that type of chart. |
void |
addTitle(String title)
Adds a title to this chart. |
void |
addTitle(String title,
String color,
int fontSize)
Adds a String title to this chart with the optional
String hexadecimal RGB color and int font size. |
String |
getOptionString()
Returns a String in Google Chart API format of the values
of the options that have been specified for this chart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<ChartOption> options
protected ChartColor chartColor
protected DataScaling scaling
protected ChartEffect chartEffect
protected ChartTitle chartTitle
| Constructor Detail |
|---|
public BasicGoogleChartOptions()
| Method Detail |
|---|
public void addChartColor(String color)
GoogleChartOptionsString hexadecimal RGB color.
For transparent colors concatenate two digits 00 - FF for a total where 00 is
completely transparent and FF is totally opaque.
Note: Order is important! Colors should be added in the same order as the data
sets that they are intended for.
addChartColor in interface GoogleChartOptionsGoogleChartOptions.addChartColor(java.lang.String)public void addChartColor(List<String> colors)
GoogleChartOptions
addChartColor in interface GoogleChartOptionsorg.telscenter.sail.webapp.presentation.google.charts.GoogleChartOptions#addChartColors(java.util.List)
public void addScaling(float min,
float max)
GoogleChartOptionsfloat min to float max for a
data set. Scaling needs to be added in the same order as that their
respective data sets were added. If only one scaling value is added
and there are multiple sets of data, that value is used for all data
sets. If less scaling values are added than there are data sets, the
last one added is applied to the remaining data sets.
addScaling in interface GoogleChartOptionsorg.telscenter.sail.webapp.presentation.google.charts.GoogleChartOptions#addScaling(int, int)
public void addScaling(List<Float> min,
List<Float> max)
GoogleChartOptions
addScaling in interface GoogleChartOptionsGoogleChartOptions.addScaling(java.util.List, java.util.List)
public void addSolidFill(String area,
String color)
throws Exception
GoogleChartOptions
addSolidFill in interface GoogleChartOptionsExceptionGoogleChartOptions.addSolidFill(java.lang.String, java.lang.String)public void addTitle(String title)
GoogleChartOptions
addTitle in interface GoogleChartOptionsGoogleChartOptions.addTitle(java.lang.String)
public void addTitle(String title,
String color,
int fontSize)
GoogleChartOptionsString title to this chart with the optional
String hexadecimal RGB color and int font size.
Note: if color is specified, fontsize must also be specified and vice versa.
addTitle in interface GoogleChartOptionsGoogleChartOptions.addTitle(java.lang.String, java.lang.String, int)public String getOptionString()
GoogleChartOptionsString in Google Chart API format of the values
of the options that have been specified for this chart
getOptionString in interface GoogleChartOptionsStringGoogleChartOptions.getOptionString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||