public class OptionsUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
copyRenderTo(Options from,
Options to)
Copies the renderTo configuration from one
Options object to
another. |
static Axis |
getAxisWithWickedChartsId(Options options,
int wickedChartsId) |
static OptionsUtil |
getInstance() |
static Point |
getPointWithWickedChartsId(Options options,
int wickedChartsId)
|
static int |
getSeriesIndex(Options options,
int wickedChartsId)
Returns the (0-based) index of the series with the given wickedChartsId or
null.
|
static Series<?> |
getSeriesWithWickedChartsId(Options options,
int wickedChartsId)
|
static boolean |
needsExportingJs(Options options)
Checks if the specified Options object needs the javascript file
"exporting.js" to work properly.
|
static boolean |
needsFunnelJs(Options options)
Checks if the specified Options object needs the javascript file
"funnel.js" to work properly.
|
static boolean |
needsHeatmapJs(Options options)
Checks if the specified Options object needs the javascript file
"heatmap.js" to work properly.
|
static boolean |
needsHighchartsMoreJs(Options options)
Checks if the specified Options object needs the javascript file
"highcharts-more.js" to work properly.
|
void |
setChartEventsLoad(Options options,
Function function)
Null-safe setter for the chart.events.load configuration.
|
void |
setRenderTo(Options options,
String renderTo)
Null-safe setter for the renderTo configuration.
|
public static OptionsUtil getInstance()
public void copyRenderTo(Options from, Options to)
Options object to
another. Null-safe.public void setRenderTo(Options options, String renderTo)
public void setChartEventsLoad(Options options, Function function)
public static boolean needsHighchartsMoreJs(Options options)
options - the Options object to analyzepublic static boolean needsFunnelJs(Options options)
options - the Options object to analyzepublic static boolean needsHeatmapJs(Options options)
options - the Options object to analyzepublic static boolean needsExportingJs(Options options)
options - the Options object to analyzepublic static Series<?> getSeriesWithWickedChartsId(Options options, int wickedChartsId)
public static Point getPointWithWickedChartsId(Options options, int wickedChartsId)
public static Axis getAxisWithWickedChartsId(Options options, int wickedChartsId)
public static int getSeriesIndex(Options options, int wickedChartsId)
options - the options in which to searchwickedChartsId - the wickedChartsId of the seriesCopyright © 2016. All rights reserved.