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

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

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

XYPlot.getLegendItems介绍

[英]Returns the legend items for the plot. Each legend item is generated by the plot's renderer, since the renderer is responsible for the visual representation of the data.
[中]返回绘图的图例项。每个图例项都由绘图的渲染器生成,因为渲染器负责数据的视觉表示。

代码示例

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

/**
 * Returns a collection of legend items for the plot.
 *
 * @return The legend items.
 */
@Override
public LegendItemCollection getLegendItems() {
  LegendItemCollection result = getFixedLegendItems();
  if (result == null) {
    result = new LegendItemCollection();
    if (this.subplots != null) {
      Iterator iterator = this.subplots.iterator();
      while (iterator.hasNext()) {
        XYPlot plot = (XYPlot) iterator.next();
        LegendItemCollection more = plot.getLegendItems();
        result.addAll(more);
      }
    }
  }
  return result;
}

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

/**
 * Returns a collection of legend items for the plot.
 *
 * @return The legend items.
 */
public LegendItemCollection getLegendItems() {
  LegendItemCollection result = getFixedLegendItems();
  if (result == null) {
    result = new LegendItemCollection();
    if (this.subplots != null) {
      Iterator iterator = this.subplots.iterator();
      while (iterator.hasNext()) {
        XYPlot plot = (XYPlot) iterator.next();
        LegendItemCollection more = plot.getLegendItems();
        result.addAll(more);
      }
    }
  }
  return result;
}

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

/**
 * Returns a collection of legend items for the plot.
 *
 * @return The legend items.
 */
@Override
public LegendItemCollection getLegendItems() {
  LegendItemCollection result = getFixedLegendItems();
  if (result == null) {
    result = new LegendItemCollection();
    if (this.subplots != null) {
      Iterator iterator = this.subplots.iterator();
      while (iterator.hasNext()) {
        XYPlot plot = (XYPlot) iterator.next();
        LegendItemCollection more = plot.getLegendItems();
        result.addAll(more);
      }
    }
  }
  return result;
}

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

/**
 * Returns a collection of legend items for the plot.
 *
 * @return The legend items.
 */
public LegendItemCollection getLegendItems() {
  LegendItemCollection result = getFixedLegendItems();
  if (result == null) {
    result = new LegendItemCollection();
    if (this.subplots != null) {
      Iterator iterator = this.subplots.iterator();
      while (iterator.hasNext()) {
        XYPlot plot = (XYPlot) iterator.next();
        LegendItemCollection more = plot.getLegendItems();
        result.addAll(more);
      }
    }
  }
  return result;
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法