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

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

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

XYPlot.getRangeMarkers介绍

[英]Returns a collection of range markers for a particular renderer and layer.
[中]返回特定渲染器和层的范围标记集合。

代码示例

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

/**
 * Returns the list of range markers (read only) for the specified layer.
 *
 * @param layer  the layer (foreground or background).
 *
 * @return The list of range markers.
 *
 * @see #getDomainMarkers(Layer)
 */
public Collection getRangeMarkers(Layer layer) {
  return getRangeMarkers(0, layer);
}

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

/**
 * Returns the list of range markers (read only) for the specified layer.
 *
 * @param layer  the layer (foreground or background).
 *
 * @return The list of range markers.
 *
 * @see #getDomainMarkers(Layer)
 */
public Collection getRangeMarkers(Layer layer) {
  return getRangeMarkers(0, layer);
}

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

/**
 * Draws the range markers (if any) for a renderer and layer.  This method
 * is typically called from within the draw() method.
 *
 * @param g2  the graphics device.
 * @param dataArea  the data area.
 * @param index  the renderer index.
 * @param layer  the layer (foreground or background).
 */
protected void drawRangeMarkers(Graphics2D g2, Rectangle2D dataArea,
                int index, Layer layer) {
  XYItemRenderer r = getRenderer(index);
  if (r == null) {
    return;
  }
  // check that the renderer has a corresponding dataset (it doesn't
  // matter if the dataset is null)
  if (index >= getDatasetCount()) {
    return;
  }
  Collection markers = getRangeMarkers(index, layer);
  ValueAxis axis = getRangeAxisForDataset(index);
  if (markers != null && axis != null) {
    Iterator iterator = markers.iterator();
    while (iterator.hasNext()) {
      Marker marker = (Marker) iterator.next();
      r.drawRangeMarker(g2, this, axis, marker, dataArea);
    }
  }
}

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

/**
 * Draws the range markers (if any) for a renderer and layer.  This method
 * is typically called from within the draw() method.
 *
 * @param g2  the graphics device.
 * @param dataArea  the data area.
 * @param index  the renderer index.
 * @param layer  the layer (foreground or background).
 */
protected void drawRangeMarkers(Graphics2D g2, Rectangle2D dataArea,
                int index, Layer layer) {
  XYItemRenderer r = getRenderer(index);
  if (r == null) {
    return;
  }
  // check that the renderer has a corresponding dataset (it doesn't
  // matter if the dataset is null)
  if (index >= getDatasetCount()) {
    return;
  }
  Collection markers = getRangeMarkers(index, layer);
  ValueAxis axis = getRangeAxisForDataset(index);
  if (markers != null && axis != null) {
    Iterator iterator = markers.iterator();
    while (iterator.hasNext()) {
      Marker marker = (Marker) iterator.next();
      r.drawRangeMarker(g2, this, axis, marker, dataArea);
    }
  }
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法