org.jfree.chart.plot.Plot.notifyListeners()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中org.jfree.chart.plot.Plot.notifyListeners()方法的一些代码示例,展示了Plot.notifyListeners()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plot.notifyListeners()方法的具体详情如下:
包路径:org.jfree.chart.plot.Plot
类名称:Plot
方法名:notifyListeners

Plot.notifyListeners介绍

[英]Notifies all registered listeners that the plot has been modified.
[中]通知所有注册的侦听器绘图已被修改。

代码示例

代码示例来源:origin: jfree/jfreechart

/**
 * Sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @since 1.0.10
 */
protected void fireChangeEvent() {
  notifyListeners(new PlotChangeEvent(this));
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @since 1.0.10
 */
protected void fireChangeEvent() {
  notifyListeners(new PlotChangeEvent(this));
}

代码示例来源:origin: jfree/jfreechart

/**
 * Sets a flag that controls whether or not listeners receive
 * {@link PlotChangeEvent} notifications.
 *
 * @param notify  a boolean.
 *
 * @see #isNotify()
 *
 * @since 1.0.13
 */
public void setNotify(boolean notify) {
  this.notify = notify;
  // if the flag is being set to true, there may be queued up changes...
  if (notify) {
    notifyListeners(new PlotChangeEvent(this));
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sets a flag that controls whether or not listeners receive
 * {@link PlotChangeEvent} notifications.
 *
 * @param notify  a boolean.
 *
 * @see #isNotify()
 *
 * @since 1.0.13
 */
public void setNotify(boolean notify) {
  this.notify = notify;
  // if the flag is being set to true, there may be queued up changes...
  if (notify) {
    notifyListeners(new PlotChangeEvent(this));
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Receives notification of a change to the plot's dataset.
 * <P>
 * The plot reacts by passing on a plot change event to all registered
 * listeners.
 *
 * @param event  information about the event (not used here).
 */
public void datasetChanged(DatasetChangeEvent event) {
  PlotChangeEvent newEvent = new PlotChangeEvent(this);
  newEvent.setType(ChartChangeEventType.DATASET_UPDATED);
  notifyListeners(newEvent);
}

代码示例来源:origin: jfree/jfreechart

/**
 * Receives notification of a change to the plot's dataset.
 * <P>
 * The plot reacts by passing on a plot change event to all registered
 * listeners.
 *
 * @param event  information about the event (not used here).
 */
@Override
public void datasetChanged(DatasetChangeEvent event) {
  PlotChangeEvent newEvent = new PlotChangeEvent(this);
  newEvent.setType(ChartChangeEventType.DATASET_UPDATED);
  notifyListeners(newEvent);
}

相关文章