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

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

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

XYPlot.checkAxisIndices介绍

[英]This method is used to perform argument checking on the list of axis indices passed to mapDatasetToDomainAxes() and mapDatasetToRangeAxes().
[中]此方法用于对传递给mapDatasetToDomainAxes()和MapDataSetOrangeAxes()的轴索引列表执行参数检查。

代码示例

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

/**
 * Maps the specified dataset to the axes in the list.  Note that the
 * conversion of data values into Java2D space is always performed using
 * the first axis in the list.
 *
 * @param index  the dataset index (zero-based).
 * @param axisIndices  the axis indices (<code>null</code> permitted).
 *
 * @since 1.0.12
 */
public void mapDatasetToDomainAxes(int index, List axisIndices) {
  if (index < 0) {
    throw new IllegalArgumentException("Requires 'index' >= 0.");
  }
  checkAxisIndices(axisIndices);
  Integer key = new Integer(index);
  this.datasetToDomainAxesMap.put(key, new ArrayList(axisIndices));
  // fake a dataset change event to update axes...
  datasetChanged(new DatasetChangeEvent(this, getDataset(index)));
}

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

/**
 * Maps the specified dataset to the axes in the list.  Note that the
 * conversion of data values into Java2D space is always performed using
 * the first axis in the list.
 *
 * @param index  the dataset index (zero-based).
 * @param axisIndices  the axis indices (<code>null</code> permitted).
 *
 * @since 1.0.12
 */
public void mapDatasetToRangeAxes(int index, List axisIndices) {
  if (index < 0) {
    throw new IllegalArgumentException("Requires 'index' >= 0.");
  }
  checkAxisIndices(axisIndices);
  Integer key = new Integer(index);
  this.datasetToRangeAxesMap.put(key, new ArrayList(axisIndices));
  // fake a dataset change event to update axes...
  datasetChanged(new DatasetChangeEvent(this, getDataset(index)));
}

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

/**
 * Maps the specified dataset to the axes in the list.  Note that the
 * conversion of data values into Java2D space is always performed using
 * the first axis in the list.
 *
 * @param index  the dataset index (zero-based).
 * @param axisIndices  the axis indices ({@code null} permitted).
 *
 * @since 1.0.12
 */
public void mapDatasetToDomainAxes(int index, List axisIndices) {
  Args.requireNonNegative(index, "index");
  checkAxisIndices(axisIndices);
  Integer key = new Integer(index);
  this.datasetToDomainAxesMap.put(key, new ArrayList(axisIndices));
  // fake a dataset change event to update axes...
  datasetChanged(new DatasetChangeEvent(this, getDataset(index)));
}

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

/**
 * Maps the specified dataset to the axes in the list.  Note that the
 * conversion of data values into Java2D space is always performed using
 * the first axis in the list.
 *
 * @param index  the dataset index (zero-based).
 * @param axisIndices  the axis indices ({@code null} permitted).
 *
 * @since 1.0.12
 */
public void mapDatasetToRangeAxes(int index, List axisIndices) {
  Args.requireNonNegative(index, "index");
  checkAxisIndices(axisIndices);
  Integer key = new Integer(index);
  this.datasetToRangeAxesMap.put(key, new ArrayList(axisIndices));
  // fake a dataset change event to update axes...
  datasetChanged(new DatasetChangeEvent(this, getDataset(index)));
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法