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


Java SeriesChangeEvent类代码示例

本文整理汇总了Java中org.jfree.data.general.SeriesChangeEvent的典型用法代码示例。如果您正苦于以下问题:Java SeriesChangeEvent类的具体用法?Java SeriesChangeEvent怎么用?Java SeriesChangeEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SeriesChangeEvent类属于org.jfree.data.general包,在下文中一共展示了SeriesChangeEvent类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: seriesChanged

import org.jfree.data.general.SeriesChangeEvent; //导入依赖的package包/类
/**
 * This method receives notification when a series belonging to the dataset
 * changes.  It responds by updating the x-points for the entire dataset
 * and sending a {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param event  information about the change.
 */
@Override
public void seriesChanged(SeriesChangeEvent event) {
    if (this.propagateEvents) {
        updateXPoints();
        fireDatasetChanged();
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:15,代码来源:DefaultTableXYDataset.java

示例2: seriesChanged

import org.jfree.data.general.SeriesChangeEvent; //导入依赖的package包/类
@Override
public void seriesChanged(final SeriesChangeEvent event) {
	if (utilityModel.utilityOutputModel != null) {
		final double utility = utilityModel.utilityOutputModel.getValue();

		accumulator.add(utility, 1);
	}

	if (isPeriodEnd()) {
		writeCsvLine(getPeriodLabel(),
				Double.toString(accumulator.getAmount()));
		accumulator.reset();
	}
}
 
开发者ID:uwol,项目名称:ComputationalEconomy,代码行数:15,代码来源:UtilityCsvWriterImpl.java

示例3: seriesChanged

import org.jfree.data.general.SeriesChangeEvent; //导入依赖的package包/类
@Override
public void seriesChanged(final SeriesChangeEvent event) {
	if (industryModel.outputModel != null) {
		final double output = industryModel.outputModel.getValue();

		accumulator.add(output, 1);
	}

	if (isPeriodEnd()) {
		writeCsvLine(getPeriodLabel(),
				Double.toString(accumulator.getAmount()));
		accumulator.reset();
	}
}
 
开发者ID:uwol,项目名称:ComputationalEconomy,代码行数:15,代码来源:OutputCsvWriterImpl.java

示例4: seriesChanged

import org.jfree.data.general.SeriesChangeEvent; //导入依赖的package包/类
@Override
public void seriesChanged(final SeriesChangeEvent event) {
	if (m1Model != null) {
		final double output = m1Model.getValue();

		accumulator.add(output, 1);
	}

	if (isPeriodEnd()) {
		writeCsvLine(getPeriodLabel(),
				Double.toString(accumulator.getAmount()));
		accumulator.reset();
	}
}
 
开发者ID:uwol,项目名称:ComputationalEconomy,代码行数:15,代码来源:M1CsvWriterImpl.java

示例5: seriesChanged

import org.jfree.data.general.SeriesChangeEvent; //导入依赖的package包/类
@Override
public void seriesChanged(final SeriesChangeEvent event) {
	if (pricingBehaviourModel.soldModel != null) {
		final double output = pricingBehaviourModel.soldModel.getValue();

		accumulator.add(output, 1);
	}

	if (isPeriodEnd()) {
		writeCsvLine(getPeriodLabel(),
				Double.toString(accumulator.getAmount()));
		accumulator.reset();
	}
}
 
开发者ID:uwol,项目名称:ComputationalEconomy,代码行数:15,代码来源:SoldCsvWriterImpl.java

示例6: fireSeriesChanged

import org.jfree.data.general.SeriesChangeEvent; //导入依赖的package包/类
/**
 * Sends a {@link SeriesChangeEvent} to all registered listeners.
 */
protected void fireSeriesChanged() {
    seriesChanged(new SeriesChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:7,代码来源:DynamicTimeSeriesCollection.java

示例7: seriesChanged

import org.jfree.data.general.SeriesChangeEvent; //导入依赖的package包/类
/**
 * Called when a series belonging to the dataset changes.
 *
 * @param event  information about the change.
 */
@Override
public void seriesChanged(SeriesChangeEvent event) {
    refreshKeys();
    fireDatasetChanged();
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:11,代码来源:TaskSeriesCollection.java

示例8: update

import org.jfree.data.general.SeriesChangeEvent; //导入依赖的package包/类
/**
 * Update a series displayed in the excitationPanel corresponding to passed in index
 */
public void update(int series)
{
     XYSeriesCollection seriesCollection = (XYSeriesCollection) getChart().getXYPlot().getDataset();

     ExcitationRenderer renderer = (ExcitationRenderer) getChart().getXYPlot().getRenderer();
     // Current value of use_steps
     //boolean useStepsFlag = renderer.getControl().getUseSteps();
     //renderer.getControl().setUseSteps(!useStepsFlag);
     // update he functions
     if (renderer==null)
         return;
     SetControlNodes cnodes=null;
     if (series==0)
         cnodes = renderer.getControl().getControlValues();
     else if (series==1)
         cnodes=renderer.getControl().getControlMinValues();
     else
         cnodes=renderer.getControl().getControlMaxValues();
     
     XYSeries ser=seriesCollection.getSeries(series);
     ser.clear();
     // RenderingInfo keeps stale refs need to be removed from the Chart
     XYFunctionInterface ctrlFunction = null;
     if (series==0)
          ctrlFunction=ExcitationEditorJPanel.createFunctionFromControlLinear((FunctionXYSeries) ser, 
                  cnodes, !renderer.getControl().getUseSteps());
     else
          ctrlFunction=ExcitationEditorJPanel.createFunctionFromControlLinear((FunctionXYSeries) ser, 
                  cnodes, true);
     //XYFunctionInterface xyFunc = new XYFunctionInterface(ctrlFunction);
     renderer.replaceFunction(series, ctrlFunction);
     
     // The following is a hack adopted from the FunctionPanel to nvoke methods on listeners directly instead of using events!!
     Object[] listeners = functionPanelListeners.getListenerList();
     for (int i = listeners.length - 2; i >= 0; i -= 2) {
         if (listeners[i] == FunctionPanelListener.class) {
             ((ExcitationPanelListener) listeners[i + 1]).replaceFunction(ctrlFunction, series);
         }
     }
     seriesCollection.seriesChanged(new SeriesChangeEvent(this));
     setChanged(true);
    
}
 
开发者ID:opensim-org,项目名称:opensim-gui,代码行数:47,代码来源:ExcitationPanel.java


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