本文整理汇总了Java中com.googlecode.wickedcharts.highcharts.options.Options.getMarkedForProcessing方法的典型用法代码示例。如果您正苦于以下问题:Java Options.getMarkedForProcessing方法的具体用法?Java Options.getMarkedForProcessing怎么用?Java Options.getMarkedForProcessing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.googlecode.wickedcharts.highcharts.options.Options
的用法示例。
在下文中一共展示了Options.getMarkedForProcessing方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processOptions
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
@Override
public void processOptions(final Options options, final OptionsProcessorContext context) {
List<IProcessableOption> processables = options.getMarkedForProcessing(LiveDataSeries.PROCESSING_KEY);
LiveDataFunction function = new LiveDataFunction();
if (processables.size() > 1) {
throw new RuntimeException("Only one LiveDataSeries per chart allowed!");
}
for (IProcessableOption processable : processables) {
LiveDataSeries series = (LiveDataSeries) processable;
LiveDataAjaxBehavior behavior = getBehaviorFromComponent(this.component, series);
if (behavior == null) {
behavior = new LiveDataAjaxBehavior(series);
this.component.add(behavior);
}
behavior.addJavaScriptValues(series.getJavaScriptParameters());
function.addLiveDataSeries(options, behavior);
}
OptionsUtil.getInstance().setChartEventsLoad(options, function);
}
示例2: collectDrilldownOptions
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
/**
* Iterates recursively through all {@link DrilldownPoint}s and their
* drilldownOptions in the given {@link Options} and adds them to the context.
*/
@SuppressWarnings("unchecked")
private void collectDrilldownOptions(final Options options) {
List<? extends IProcessableOption> drilldownPoints = options.getMarkedForProcessing(DrilldownPoint.PROCESSING_KEY);
for (DrilldownPoint drilldownPoint : (List<DrilldownPoint>) drilldownPoints) {
Options drilldownOptions = drilldownPoint.getDrilldownOptions();
if (!getDrilldownOptions().contains(drilldownOptions)) {
getDrilldownOptions().add(drilldownOptions);
collectDrilldownOptions(drilldownOptions);
}
drilldownPoint.setDrilldownOptionsIndex(getDrilldownOptions().indexOf(drilldownOptions));
}
}
示例3: collectLiveDataSeries
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private void collectLiveDataSeries(final Options options) {
List<? extends IProcessableOption> series = options.getMarkedForProcessing(LiveDataSeries.PROCESSING_KEY);
this.liveDataSeries.addAll((List<LiveDataSeries>) series);
}
示例4: collectInteractionFunctions
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private void collectInteractionFunctions(final Options options) {
List<? extends IProcessableOption> functions = options.getMarkedForProcessing(InteractionFunction.PROCESSING_KEY);
this.interactionFunctions.addAll((List<InteractionFunction>) functions);
}
示例5: collectSelectionFunctions
import com.googlecode.wickedcharts.highcharts.options.Options; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private void collectSelectionFunctions(final Options options) {
List<? extends IProcessableOption> functions = options.getMarkedForProcessing(SelectionFunction.PROCESSING_KEY);
this.selectionFunctions.addAll((List<SelectionFunction>) functions);
}