本文整理了Java中org.jfree.chart.plot.XYPlot.setRangeMinorGridlinesVisible()
方法的一些代码示例,展示了XYPlot.setRangeMinorGridlinesVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYPlot.setRangeMinorGridlinesVisible()
方法的具体详情如下:
包路径:org.jfree.chart.plot.XYPlot
类名称:XYPlot
方法名:setRangeMinorGridlinesVisible
[英]Sets the flag that controls whether or not the range axis minor grid lines are visible.
If the flag value is changed, a PlotChangeEvent is sent to all registered listeners.
[中]设置用于控制范围轴次网格线是否可见的标志。
如果标志值已更改,则会向所有注册的侦听器发送PlotChangeEvent。
代码示例来源:origin: stackoverflow.com
@Override
public void customize(final JFreeChart chart, final JRChart jasperChart) {
final Plot plot = chart.getPlot();
if (plot instanceof CategoryPlot) {
final CategoryPlot cPlot = (CategoryPlot) plot;
cPlot.getRangeAxis().setMinorTickCount(2);
cPlot.getRangeAxis().setMinorTickMarksVisible(true);
} else if (plot instanceof XYPlot) {
final XYPlot xyPlot = (XYPlot) plot;
xyPlot.setRangeMinorGridlinesVisible(true);
xyPlot.getRangeAxis().setMinorTickCount(2);
xyPlot.getRangeAxis().setMinorTickMarksVisible(true);
}
}
代码示例来源:origin: zolyfarkas/spf4j
plot.setDomainGridlinesVisible(false);
plot.setRangeGridlinesVisible(false);
plot.setRangeMinorGridlinesVisible(false);
JFreeChart chart = new JFreeChart(chartName, plot);
PaintScaleLegend legend = new PaintScaleLegend(scale, new NumberAxis("Count"));
内容来源于网络,如有侵权,请联系作者删除!