|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.wickedcharts.highcharts.options.Options
public class Options
This is the main class for configuring a chart. The structure of this class is designed to be very close to the Highcharts options object. For explanations of all options, please consult the Highcharts API reference.
The options object will be serialized to a JSON object which is passed into the Highcharts Javascript library. Options that are not set (i.e. that are null), are not serialized into JSON, so that the default values of the Highcharts library will be used.
| Constructor Summary | |
|---|---|
Options()
|
|
Options(Options template)
Constructs an Options object initialized with the configuration of
another Options object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Options()
public Options(Options template)
Options object initialized with the configuration of
another Options object.
template - the Options object to copy the configuration from.| Method Detail |
|---|
public Options addColor(ColorReference color)
public Options addSeries(Series<?> series)
public Options addxAxis(Axis xAxis)
setxAxis(Axis) if you want
to define a single axis only.
xAxis - the XAxis to add.
Options object for chaining.public Options addyAxis(Axis yAxis)
setyAxis(Axis) if you want
to define a single axis only.
yAxis - the YAxis to add.
Options object for chaining.public void clearSeries()
public void copyFrom(Options template)
public ChartOptions getChart()
public ChartOptions getChartOptions()
public List<? extends ColorReference> getColors()
public CreditOptions getCreditOptions()
public CreditOptions getCredits()
public ExportingOptions getExporting()
public Global getGlobal()
public Labels getLabels()
public Legend getLegend()
public Loading getLoading()
public List<IProcessableOption> getMarkedForProcessing(String processingKey)
IProcessableOptions that were marked by calling
markForProcessing(IProcessableOption) with the given key.
processingKey - the key with which the options in questions were marked.
IProcessableOptions, or an empty list, if
none were markedpublic Navigation getNavigation()
public Pane getPane()
public PlotOptionsChoice getPlotOptions()
public List<? extends Series> getSeries()
public Axis getSingleXAxis()
public Axis getSingleYAxis()
public Title getSubtitle()
public Title getTitle()
public Tooltip getTooltip()
public List<Axis> getxAxis()
public List<Axis> getyAxis()
public void markForProcessing(IProcessableOption option)
public Options setChart(ChartOptions chart)
public Options setChartOptions(ChartOptions chart)
public Options setColors(ColorReference... colors)
public Options setColors(List<ColorReference> colors)
public Options setCreditOptions(CreditOptions credits)
public Options setCredits(CreditOptions credits)
public Options setExporting(ExportingOptions exporting)
public Options setGlobal(Global global)
public Options setLabels(Labels labels)
public Options setLegend(Legend legend)
public Options setLoading(Loading loading)
public Options setNavigation(Navigation navigation)
public Options setPane(Pane pane)
public Options setPlotOptions(PlotOptionsChoice plotOptions)
public Options setSeries(List<Series<?>> series)
public Options setSubtitle(Title subtitle)
public Options setTitle(Title title)
public Options setTooltip(Tooltip tooltip)
public Options setxAxis(Axis xAxis)
addxAxis(Axis). If there are multiple Axes defined when calling
this method, only the specified axis will be defined afterwards.
xAxis - the single xAxis of the chart
Options object for chainingpublic Options setxAxis(List<Axis> xAxis)
public Options setyAxis(Axis yAxis)
addyAxis(Axis). If there are multiple Axes defined when calling
this method, only the specified axis will be defined afterwards.
yAxis - the single yAxis of the chart
Options object for chainingpublic Options setyAxis(List<Axis> yAxis)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||