• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DatasetChangeEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset for the plot, replacing the existing dataset if there is one.
 * 
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(ValueDataset dataset) {
    
    // if there is an existing dataset, remove the plot from the list of change listeners...
    ValueDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:MeterPlot.java


示例2: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset for the plot, replacing the existing dataset if there is one.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(XYDataset dataset) {
    // if there is an existing dataset, remove the plot from the list of change listeners...
    XYDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }
   
    // set the new m_Dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (this.dataset != null) {
        setDatasetGroup(this.dataset.getGroup());
        this.dataset.addChangeListener(this);
    }
   
    // send a m_Dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, this.dataset);
    datasetChanged(event);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:PolarPlot.java


示例3: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets a dataset for the plot.
 *
 * @param index  the dataset index.
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(int index, XYDataset dataset) {
    XYDataset existing = getDataset(index);
    if (existing != null) {
        existing.removeChangeListener(this);
    }
    this.datasets.set(index, dataset);
    if (dataset != null) {
        dataset.addChangeListener(this);
    }

    // map dataset to main axis by default
    if (index >= this.domainAxisMap.size()) {
        this.domainAxisMap.set(index, new Integer(0));
    }
    if (index >= this.rangeAxisMap.size()) {
        this.rangeAxisMap.set(index, new Integer(0));
    }

    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:29,代码来源:XYPlot.java


示例4: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
     * Sets the dataset for the plot, replacing the existing dataset if there is one.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(ValueDataset dataset) {

  // if there is an existing dataset, remove the plot from the list of change listeners...
  ValueDataset existing = this.dataset;
  if (existing != null) {
    existing.removeChangeListener(this);
  }

  // set the new dataset, and register the chart as a change listener...
  this.dataset = dataset;
  if (dataset != null) {
    setDatasetGroup(dataset.getGroup());
    dataset.addChangeListener(this);
  }

  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:ThermometerPlot.java


示例5: datasetChanged

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Checks to see if a new value means the axis range needs adjusting.
 *
 * @param event  the dataset change event.
 */
public void datasetChanged(DatasetChangeEvent event) {

  Number vn = this.dataset.getValue();
  if (vn != null) {
    double value = vn.doubleValue();
    if (inSubrange(NORMAL, value)) {
      this.subrange = NORMAL;
    }
    else if (inSubrange(WARNING, value)) {
      this.subrange = WARNING;
    }
    else if (inSubrange(CRITICAL, value)) {
      this.subrange = CRITICAL;
    }
    else {
      this.subrange = -1;
    }
    setAxisRange();
  }
  super.datasetChanged(event);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:ThermometerPlot.java


示例6: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset for the plot, replacing the existing dataset if there is one.
 * 
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(ContourDataset dataset) {
    
    // if there is an existing dataset, remove the plot from the list of change listeners...
    ContourDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:ContourPlot.java


示例7: datasetChanged

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Receives notification of a change to the plot's dataset.
 * <P>
 * The chart reacts by passing on a chart change event to all registered
 * listeners.
 *
 * @param event  Information about the event (not used here).
 */
public void datasetChanged(DatasetChangeEvent event) {

    if (this.domainAxis != null) {
        this.domainAxis.configure();
    }

    if (this.rangeAxis != null) {
        this.rangeAxis.configure();
    }

    if (this.colorBar != null) {
        this.colorBar.configure(this);
    }

    PlotChangeEvent e = new PlotChangeEvent(this);
    notifyListeners(e);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:ContourPlot.java


示例8: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset and sends a {@link DatasetChangeEvent} to 'this'.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(PieDataset dataset) {
    // if there is an existing dataset, remove the plot from the list of change listeners...
    PieDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:PiePlot.java


示例9: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets a dataset for the plot.
 *
 * @param index  the dataset index.
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(int index, CategoryDataset dataset) {
    
    CategoryDataset existing = (CategoryDataset) this.datasets.get(index);
    if (existing != null) {
        existing.removeChangeListener(this);
    }
    this.datasets.set(index, dataset);
    if (dataset != null) {
        dataset.addChangeListener(this);
    }
    
    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:23,代码来源:CategoryPlot.java


示例10: datasetChanged

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Receives notification of a change to the plot's dataset.
 * <P>
 * The range axis bounds will be recalculated if necessary.
 *
 * @param event  information about the event (not used here).
 */
public void datasetChanged(DatasetChangeEvent event) {

    int count = this.rangeAxes.size();
    for (int axisIndex = 0; axisIndex < count; axisIndex++) {
        ValueAxis yAxis = getRangeAxis(axisIndex);
        if (yAxis != null) {
            yAxis.configure();
        }
    }
    if (getParent() != null) {
        getParent().datasetChanged(event);
    }
    else {
        PlotChangeEvent e = new PlotChangeEvent(this);
        notifyListeners(e);
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:CategoryPlot.java


示例11: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets a dataset for the plot.
 *
 * @param index  the dataset index.
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(int index, ValueDataset dataset) {
    
    ValueDataset existing = (ValueDataset) this.datasets.get(index);
    if (existing != null) {
        existing.removeChangeListener(this);
    }
    this.datasets.set(index, dataset);
    if (dataset != null) {
        dataset.addChangeListener(this);
    }
    
    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:23,代码来源:DialPlot.java


示例12: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset for the plot, replacing the existing dataset if there 
 * is one, and triggers a {@link PlotChangeEvent}.
 * 
 * @param dataset  the dataset (<code>null</code> permitted).
 * 
 * @see #getDataset()
 */
public void setDataset(ValueDataset dataset) {
    
    // if there is an existing dataset, remove the plot from the list of 
    // change listeners...
    ValueDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:30,代码来源:MeterPlot.java


示例13: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset used by the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 * 
 * @param dataset  the dataset (<code>null</code> permitted).
 * 
 * @see #getDataset()
 */
public void setDataset(CategoryDataset dataset) {
    // if there is an existing dataset, remove the plot from the list of 
    // change listeners...
    if (this.dataset != null) {
        this.dataset.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self to trigger plot change event
    datasetChanged(new DatasetChangeEvent(this, dataset));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:SpiderWebPlot.java


示例14: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset for the plot, replacing the existing dataset if there 
 * is one.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 * 
 * @see #getDataset()
 */
public void setDataset(XYDataset dataset) {
    // if there is an existing dataset, remove the plot from the list of 
    // change listeners...
    XYDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }
   
    // set the new m_Dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (this.dataset != null) {
        setDatasetGroup(this.dataset.getGroup());
        this.dataset.addChangeListener(this);
    }
   
    // send a m_Dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, this.dataset);
    datasetChanged(event);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:28,代码来源:PolarPlot.java


示例15: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset for the plot, replacing the existing dataset if there 
 * is one.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(ValueDataset dataset) {

    // if there is an existing dataset, remove the plot from the list 
    // of change listeners...
    ValueDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:28,代码来源:ThermometerPlot.java


示例16: datasetChanged

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Checks to see if a new value means the axis range needs adjusting.
 *
 * @param event  the dataset change event.
 */
public void datasetChanged(DatasetChangeEvent event) {
    Number vn = this.dataset.getValue();
    if (vn != null) {
        double value = vn.doubleValue();
        if (inSubrange(NORMAL, value)) {
            this.subrange = NORMAL;
        }
        else if (inSubrange(WARNING, value)) {
           this.subrange = WARNING;
        }
        else if (inSubrange(CRITICAL, value)) {
            this.subrange = CRITICAL;
        }
        else {
            this.subrange = -1;
        }
        setAxisRange();
    }
    super.datasetChanged(event);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:ThermometerPlot.java


示例17: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset used by the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 * 
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(CategoryDataset dataset) {
    // if there is an existing dataset, remove the plot from the list of 
    // change listeners...
    if (this.dataset != null) {
        this.dataset.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self to trigger plot change event
    datasetChanged(new DatasetChangeEvent(this, dataset));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:MultiplePiePlot.java


示例18: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset for the plot, replacing the existing dataset if there
 * is one.
 * 
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(ContourDataset dataset) {
    
    // if there is an existing dataset, remove the plot from the list of 
    // change listeners...
    ContourDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:28,代码来源:ContourPlot.java


示例19: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets the dataset and sends a {@link DatasetChangeEvent} to 'this'.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 * 
 * @see #getDataset()
 */
public void setDataset(PieDataset dataset) {
    // if there is an existing dataset, remove the plot from the list of 
    // change listeners...
    PieDataset existing = this.dataset;
    if (existing != null) {
        existing.removeChangeListener(this);
    }

    // set the new dataset, and register the chart as a change listener...
    this.dataset = dataset;
    if (dataset != null) {
        setDatasetGroup(dataset.getGroup());
        dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:PiePlot.java


示例20: setDataset

import org.jfree.data.general.DatasetChangeEvent; //导入依赖的package包/类
/**
 * Sets a dataset for the plot.
 *
 * @param index  the dataset index.
 * @param dataset  the dataset (<code>null</code> permitted).
 * 
 * @see #getDataset(int)
 */
public void setDataset(int index, CategoryDataset dataset) {
    
    CategoryDataset existing = (CategoryDataset) this.datasets.get(index);
    if (existing != null) {
        existing.removeChangeListener(this);
    }
    this.datasets.set(index, dataset);
    if (dataset != null) {
        dataset.addChangeListener(this);
    }
    
    // send a dataset change event to self...
    DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    datasetChanged(event);
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:25,代码来源:CategoryPlot.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ClientCredentialsAccessTokenProvider类代码示例发布时间:2022-05-21
下一篇:
Java MixerProvider类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap