Java Code Examples for org.jfree.chart.renderer.xy.XYItemRenderer#drawDomainLine()

The following examples show how to use org.jfree.chart.renderer.xy.XYItemRenderer#drawDomainLine() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: 1_XYPlot.java    From SimFix with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 * 
 * @see #setDomainZeroBaselineVisible(boolean)
 * 
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0, 
                this.domainZeroBaselinePaint, 
                this.domainZeroBaselineStroke);
    }
}
 
Example 2
Source File: 1_XYPlot.java    From SimFix with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 * 
 * @see #setDomainZeroBaselineVisible(boolean)
 * 
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0, 
                this.domainZeroBaselinePaint, 
                this.domainZeroBaselineStroke);
    }
}
 
Example 3
Source File: Cardumen_009_s.java    From coming with MIT License 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 *
 * @see #setDomainZeroBaselineVisible(boolean)
 *
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0,
                this.domainZeroBaselinePaint,
                this.domainZeroBaselineStroke);
    }
}
 
Example 4
Source File: Cardumen_009_t.java    From coming with MIT License 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 *
 * @see #setDomainZeroBaselineVisible(boolean)
 *
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0,
                this.domainZeroBaselinePaint,
                this.domainZeroBaselineStroke);
    }
}
 
Example 5
Source File: Cardumen_0082_t.java    From coming with MIT License 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 *
 * @see #setDomainZeroBaselineVisible(boolean)
 *
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0,
                this.domainZeroBaselinePaint,
                this.domainZeroBaselineStroke);
    }
}
 
Example 6
Source File: Cardumen_0082_s.java    From coming with MIT License 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 *
 * @see #setDomainZeroBaselineVisible(boolean)
 *
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0,
                this.domainZeroBaselinePaint,
                this.domainZeroBaselineStroke);
    }
}
 
Example 7
Source File: Chart_14_XYPlot_s.java    From coming with MIT License 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 * 
 * @see #setDomainZeroBaselineVisible(boolean)
 * 
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0, 
                this.domainZeroBaselinePaint, 
                this.domainZeroBaselineStroke);
    }
}
 
Example 8
Source File: Chart_14_XYPlot_t.java    From coming with MIT License 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 * 
 * @see #setDomainZeroBaselineVisible(boolean)
 * 
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0, 
                this.domainZeroBaselinePaint, 
                this.domainZeroBaselineStroke);
    }
}
 
Example 9
Source File: XYPlot.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Draws a base line across the chart at value zero on the domain axis.
 *
 * @param g2  the graphics device.
 * @param area  the data area.
 * 
 * @see #setDomainZeroBaselineVisible(boolean)
 * 
 * @since 1.0.5
 */
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) {
    if (isDomainZeroBaselineVisible()) {
        XYItemRenderer r = getRenderer();
        r.drawDomainLine(g2, this, getDomainAxis(), area, 0.0, 
                this.domainZeroBaselinePaint, 
                this.domainZeroBaselineStroke);
    }
}