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

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

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

XYPlot.isRangeZeroBaselineVisible介绍

[英]Returns a flag that controls whether or not a zero baseline is displayed for the range axis.
[中]返回一个标志,该标志控制是否为范围轴显示零基线。

代码示例

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

/**
 * Draws a base line across the chart at value zero on the range axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 *
 * @see #setRangeZeroBaselineVisible(boolean)
 */
protected void drawZeroRangeBaseline(Graphics2D g2, Rectangle2D area) {
  if (isRangeZeroBaselineVisible()) {
    getRenderer().drawRangeLine(g2, this, getRangeAxis(), area, 0.0,
        this.rangeZeroBaselinePaint, this.rangeZeroBaselineStroke);
  }
}

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

/**
 * Draws a base line across the chart at value zero on the range axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 *
 * @see #setRangeZeroBaselineVisible(boolean)
 */
protected void drawZeroRangeBaseline(Graphics2D g2, Rectangle2D area) {
  if (isRangeZeroBaselineVisible()) {
    getRenderer().drawRangeLine(g2, this, getRangeAxis(), area, 0.0,
        this.rangeZeroBaselinePaint, this.rangeZeroBaselineStroke);
  }
}

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

|| !isRangeZeroBaselineVisible()) && paintLine) {
getRenderer().drawRangeLine(g2, this, getRangeAxis(),
    area, tick.getValue(), gridPaint, gridStroke);

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

|| !isRangeZeroBaselineVisible()) && paintLine) {
getRenderer().drawRangeLine(g2, this, getRangeAxis(),
    area, tick.getValue(), gridPaint, gridStroke);

相关文章

微信公众号

最新文章

更多

XYPlot类方法