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

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

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

XYPlot.configureDomainAxes介绍

[英]Configures the domain axes.
[中]配置域轴。

代码示例

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

/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
  // if the event was caused by a change to series visibility, then
  // the axis ranges might need updating...
  if (event.getSeriesVisibilityChanged()) {
    configureDomainAxes();
    configureRangeAxes();
  }
  fireChangeEvent();
}

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

/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
@Override
public void rendererChanged(RendererChangeEvent event) {
  // if the event was caused by a change to series visibility, then
  // the axis ranges might need updating...
  if (event.getSeriesVisibilityChanged()) {
    configureDomainAxes();
    configureRangeAxes();
  }
  fireChangeEvent();
}

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

configureDomainAxes();
configureRangeAxes();

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

/**
 * Sets the renderer for the dataset with the specified index and, if 
 * requested, sends a change event to all registered listeners.  Note that 
 * each dataset should have its own renderer, you should not use one 
 * renderer for multiple datasets.
 *
 * @param index  the index (must be >= 0).
 * @param renderer  the renderer.
 * @param notify  notify listeners?
 *
 * @see #getRenderer(int)
 */
public void setRenderer(int index, XYItemRenderer renderer, 
    boolean notify) {
  XYItemRenderer existing = getRenderer(index);
  if (existing != null) {
    existing.removeChangeListener(this);
  }
  this.renderers.put(index, renderer);
  if (renderer != null) {
    renderer.setPlot(this);
    renderer.addChangeListener(this);
  }
  configureDomainAxes();
  configureRangeAxes();
  if (notify) {
    fireChangeEvent();
  }
}

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

/**
 * Receives notification of a change to the plot's dataset.
 * <P>
 * The axis ranges are updated if necessary.
 *
 * @param event  information about the event (not used here).
 */
@Override
public void datasetChanged(DatasetChangeEvent event) {
  configureDomainAxes();
  configureRangeAxes();
  if (getParent() != null) {
    getParent().datasetChanged(event);
  }
  else {
    PlotChangeEvent e = new PlotChangeEvent(this);
    e.setType(ChartChangeEventType.DATASET_UPDATED);
    notifyListeners(e);
  }
}

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

/**
 * Receives notification of a change to the plot's dataset.
 * <P>
 * The axis ranges are updated if necessary.
 *
 * @param event  information about the event (not used here).
 */
public void datasetChanged(DatasetChangeEvent event) {
  configureDomainAxes();
  configureRangeAxes();
  if (getParent() != null) {
    getParent().datasetChanged(event);
  }
  else {
    PlotChangeEvent e = new PlotChangeEvent(this);
    e.setType(ChartChangeEventType.DATASET_UPDATED);
    notifyListeners(e);
  }
}

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

configureDomainAxes();
configureRangeAxes();

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

/**
 * Sets a renderer and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @param index  the index.
 * @param renderer  the renderer.
 * @param notify  notify listeners?
 *
 * @see #getRenderer(int)
 */
public void setRenderer(int index, XYItemRenderer renderer,
            boolean notify) {
  XYItemRenderer existing = getRenderer(index);
  if (existing != null) {
    existing.removeChangeListener(this);
  }
  this.renderers.set(index, renderer);
  if (renderer != null) {
    renderer.setPlot(this);
    renderer.addChangeListener(this);
  }
  configureDomainAxes();
  configureRangeAxes();
  if (notify) {
    fireChangeEvent();
  }
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法