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

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

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

XYPlot.getDomainMarkers介绍

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

代码示例

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

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

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

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

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

/**
 * Draws the domain markers (if any) for an axis 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 dataset/renderer index.
 * @param layer  the layer (foreground or background).
 */
protected void drawDomainMarkers(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 = getDomainMarkers(index, layer);
  ValueAxis axis = getDomainAxisForDataset(index);
  if (markers != null && axis != null) {
    Iterator iterator = markers.iterator();
    while (iterator.hasNext()) {
      Marker marker = (Marker) iterator.next();
      r.drawDomainMarker(g2, this, axis, marker, dataArea);
    }
  }
}

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

/**
 * Draws the domain markers (if any) for an axis 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 drawDomainMarkers(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 = getDomainMarkers(index, layer);
  ValueAxis axis = getDomainAxisForDataset(index);
  if (markers != null && axis != null) {
    Iterator iterator = markers.iterator();
    while (iterator.hasNext()) {
      Marker marker = (Marker) iterator.next();
      r.drawDomainMarker(g2, this, axis, marker, dataArea);
    }
  }
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法