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

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

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

XYPlot.setRangeGridlineStroke介绍

[英]Sets the stroke for the grid lines plotted against the range axis, and sends a PlotChangeEvent to all registered listeners.
[中]设置相对于范围轴绘制的网格线的笔划,并向所有注册的侦听器发送PlotChangeEvent。

代码示例

代码示例来源:origin: com.atlassian.confluence.extra.chart/chart-plugin

public static void setupPlot(XYPlot plot)
{
  plot.setBackgroundPaint(ChartDefaults.transparent);
  plot.setOutlinePaint(ChartDefaults.transparent);
  plot.setRangeGridlinePaint(ChartDefaults.gridLineColor);
  plot.setRangeGridlineStroke(new BasicStroke(0.5f));
  plot.setRangeGridlinesVisible(true);
  plot.setRangeAxisLocation(ChartDefaults.rangeAxisLocation);
  plot.setDomainGridlinesVisible(true);
  ChartUtil.setupRangeAxis(plot.getRangeAxis());
  ChartUtil.setupDomainAxis(plot.getDomainAxis());
}

代码示例来源:origin: com.atlassian.jira/jira-api

public static void setupPlot(XYPlot plot)
{
  plot.setBackgroundPaint(ChartDefaults.transparent);
  plot.setOutlinePaint(ChartDefaults.transparent);
  plot.setRangeGridlinePaint(ChartDefaults.gridLineColor);
  plot.setRangeGridlineStroke(new BasicStroke(0.5f));
  plot.setRangeGridlinesVisible(true);
  plot.setRangeAxisLocation(ChartDefaults.rangeAxisLocation);
  plot.setDomainGridlinesVisible(true);
  ChartUtil.setupRangeAxis(plot.getRangeAxis());
  ChartUtil.setupDomainAxis(plot.getDomainAxis());
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

graph.getXYPlot().setRangeGridlineStroke(new BasicStroke(3f));

代码示例来源:origin: net.imglib2/imglib2-script

static private final void setBackgroundDefault(final JFreeChart chart) {
    BasicStroke gridStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, new float[]{2.0f, 1.0f}, 0.0f);
    XYPlot plot = (XYPlot) chart.getPlot();
    plot.setRangeGridlineStroke(gridStroke);
    plot.setDomainGridlineStroke(gridStroke);
    plot.setBackgroundPaint(new Color(235, 235, 235));
    plot.setRangeGridlinePaint(Color.white);
    plot.setDomainGridlinePaint(Color.white);
    plot.setOutlineVisible(false);
    plot.getDomainAxis().setAxisLineVisible(false);
    plot.getRangeAxis().setAxisLineVisible(false);
    plot.getDomainAxis().setLabelPaint(Color.gray);
    plot.getRangeAxis().setLabelPaint(Color.gray);
    plot.getDomainAxis().setTickLabelPaint(Color.gray);
    plot.getRangeAxis().setTickLabelPaint(Color.gray);
    chart.getTitle().setPaint(Color.gray);
  }
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void enableGrid(boolean enable)
{
 if (enable)
 {
   BasicStroke dotted = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, new float[] {1.0f, 6.0f}, 0.0f);
   graph.getXYPlot().setDomainGridlinesVisible(true);
   graph.getXYPlot().setRangeGridlinesVisible(true);
   graph.getXYPlot().setRangeGridlinePaint(Color.black);
   graph.getXYPlot().setDomainGridlinePaint(Color.black);
   graph.getXYPlot().setRangeGridlineStroke(dotted);
   graph.getXYPlot().setDomainGridlineStroke(dotted);
 }
 else
 {
   graph.getXYPlot().setDomainGridlinesVisible(false);
   graph.getXYPlot().setRangeGridlinesVisible(false);
 }
}

代码示例来源:origin: net.imagej/imagej-ui-swing

private final void setBackgroundDefault(final JFreeChart chart) {
  final BasicStroke gridStroke =
    new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,
      1.0f, new float[] { 2.0f, 1.0f }, 0.0f);
  final XYPlot plot = (XYPlot) chart.getPlot();
  plot.setRangeGridlineStroke(gridStroke);
  plot.setDomainGridlineStroke(gridStroke);
  plot.setBackgroundPaint(new Color(235, 235, 235));
  plot.setRangeGridlinePaint(Color.white);
  plot.setDomainGridlinePaint(Color.white);
  plot.setOutlineVisible(false);
  plot.getDomainAxis().setAxisLineVisible(false);
  plot.getRangeAxis().setAxisLineVisible(false);
  plot.getDomainAxis().setLabelPaint(Color.gray);
  plot.getRangeAxis().setLabelPaint(Color.gray);
  plot.getDomainAxis().setTickLabelPaint(Color.gray);
  plot.getRangeAxis().setTickLabelPaint(Color.gray);
  final TextTitle title = chart.getTitle();
  if (title != null) title.setPaint(Color.black);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

plot.setRangeGridlineStroke(params.getStroke(ChartParams.AXIS_RANGE_PREFIX
  + ChartParams.PLOTXY_AXIS_GRIDLINE_STROKE_SUFFIX));

代码示例来源:origin: org.jboss.seam/jboss-seam-pdf

plot.setRangeGridlineStroke(findStroke(getRangeGridlineStroke()));

相关文章

微信公众号

最新文章

更多

XYPlot类方法