本文整理汇总了Java中com.googlecode.wickedcharts.highcharts.options.Options.getChartOptions方法的典型用法代码示例。如果您正苦于以下问题:Java Options.getChartOptions方法的具体用法?Java Options.getChartOptions怎么用?Java Options.getChartOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.googlecode.wickedcharts.highcharts.options.Options
的用法示例。
在下文中一共展示了Options.getChartOptions方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: copyRenderTo
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
/**
* Copies the renderTo configuration from one {@link Options} object to
* another. Null-safe.
*/
public void copyRenderTo(final Options from, final Options to) {
if (to.getChartOptions() == null) {
to.setChartOptions(new ChartOptions());
}
to.getChartOptions().setRenderTo(from.getChartOptions().getRenderTo());
}
示例2: setRenderTo
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
/**
* Null-safe setter for the renderTo configuration.
*/
public void setRenderTo(final Options options, final String renderTo) {
if (options.getChartOptions() == null) {
options.setChartOptions(new ChartOptions());
}
options.getChartOptions().setRenderTo(renderTo);
}
示例3: setChartEventsLoad
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
/**
* Null-safe setter for the chart.events.load configuration.
*/
public void setChartEventsLoad(final Options options, final Function function) {
if (options.getChartOptions() == null) {
options.setChartOptions(new ChartOptions());
}
if (options.getChartOptions().getEvents() == null) {
options.getChartOptions().setEvents(new Events());
}
if (options.getChartOptions().getEvents().getLoad() == null) {
options.getChartOptions().getEvents().setLoad(function);
}
}
示例4: hasChartTypeNeedingMoreJs
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
private static boolean hasChartTypeNeedingMoreJs(final Options options) {
if (options.getChartOptions() != null && options.getChartOptions().getType() != null
&& options.getChartOptions().getType().getChartType() == ChartType.ADVANCED) {
return true;
}
if (options.getSeries() != null) {
for (Series<?> series : options.getSeries()) {
if (series.getType() != null && series.getType().getChartType() == ChartType.ADVANCED) {
return true;
}
}
}
return false;
}
示例5: hasPolar
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
private static boolean hasPolar(final Options options) {
return options.getChartOptions() != null && options.getChartOptions().getPolar() != null
&& options.getChartOptions().getPolar();
}