当前位置: 首页>>代码示例>>Java>>正文


Java Options.getMarkedForProcessing方法代码示例

本文整理汇总了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);
}
 
开发者ID:PkayJava,项目名称:pluggable,代码行数:21,代码来源:LiveDataProcessor.java

示例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));
	}
}
 
开发者ID:PkayJava,项目名称:pluggable,代码行数:17,代码来源:OptionsProcessorContext.java

示例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);
}
 
开发者ID:PkayJava,项目名称:pluggable,代码行数:6,代码来源:OptionsProcessorContext.java

示例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);
}
 
开发者ID:PkayJava,项目名称:pluggable,代码行数:6,代码来源:OptionsProcessorContext.java

示例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);
}
 
开发者ID:PkayJava,项目名称:pluggable,代码行数:6,代码来源:OptionsProcessorContext.java


注:本文中的com.googlecode.wickedcharts.highcharts.options.Options.getMarkedForProcessing方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。