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

x33g5p2x  于2022-02-02 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(79)

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

XYPlot.removeChangeListener介绍

暂无

代码示例

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

/**
 * Removes a subplot from the combined chart.
 *
 * @param subplot  the subplot (<code>null</code> not permitted).
 */
public void remove(XYPlot subplot) {
  if (subplot == null) {
    throw new IllegalArgumentException(" Null 'subplot' argument.");
  }
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this);
    configureRangeAxes();
    fireChangeEvent();
  }
}

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

/**
 * Removes a subplot from the combined chart.
 *
 * @param subplot  the subplot ({@code null} not permitted).
 */
public void remove(XYPlot subplot) {
  Args.nullNotPermitted(subplot, "subplot");
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this);
    configureRangeAxes();
    fireChangeEvent();
  }
}

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

/**
 * Removes a subplot from the combined chart and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param subplot  the subplot (<code>null</code> not permitted).
 */
public void remove(XYPlot subplot) {
  if (subplot == null) {
    throw new IllegalArgumentException(" Null 'subplot' argument.");
  }
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this);
    ValueAxis domain = getDomainAxis();
    if (domain != null) {
      domain.configure();
    }
    fireChangeEvent();
  }
}

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

/**
 * Removes a subplot from the combined chart and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param subplot  the subplot ({@code null} not permitted).
 */
public void remove(XYPlot subplot) {
  Args.nullNotPermitted(subplot, "subplot");
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this);
    ValueAxis domain = getDomainAxis();
    if (domain != null) {
      domain.configure();
    }
    fireChangeEvent();
  }
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法