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

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

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

XYPlot.getSeriesCount介绍

[英]Returns the number of series in the primary dataset for this plot. If the dataset is null, the method returns 0.
[中]返回此绘图的主数据集中的系列数。如果数据集为null,则该方法返回0。

代码示例

代码示例来源:origin: senbox-org/snap-desktop

@Override
protected void showAlternativeView() {
  final TableModel model;
  if (xyPlot != null && xyPlot.getSeriesCount() > 0) {
    model = new MetadataPlotTableModel(xyPlot);
  } else {
    model = new DefaultTableModel();
  }
  final TableViewPagePanel alternativPanel = (TableViewPagePanel) getAlternativeView();
  alternativPanel.setModel(model);
  super.showAlternativeView();
}

代码示例来源:origin: mikaelhg/openblocks

/**
 * Clears all values for all series, leaving the same number of series
 */
public void clearValues() {
  if (!lock) {
    for (int i = 0; i < chart.getXYPlot().getSeriesCount(); i++) {
      XYSeries s = ((XYSeriesCollection) chart.getXYPlot().getDataset()).getSeries(i);
      while (s.getItemCount() > 0) {
        s.remove(0);
      }
    }
  }
}

代码示例来源:origin: us.ihmc/Plotting

int seriesCount = plot.getSeriesCount();
if (independentYaxis)

代码示例来源:origin: us.ihmc/ihmc-swing-plotting

int seriesCount = plot.getSeriesCount();
if (independentYaxis)

代码示例来源:origin: us.ihmc/Plotting

rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
if (independentYaxes && plot.getSeriesCount() > 1)
  for(int i=0; i<plot.getSeriesCount(); i++)

代码示例来源:origin: us.ihmc/ihmc-swing-plotting

rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
if (independentYaxes && plot.getSeriesCount() > 1)
  for(int i=0; i<plot.getSeriesCount(); i++)

代码示例来源:origin: datacleaner/DataCleaner

final int seriesCount = xyPlot.getSeriesCount();
for (int i = 0; i < seriesCount; i++) {
  renderer.setSeriesStroke(i, STROKE_WIDE);

相关文章

微信公众号

最新文章

更多

XYPlot类方法