afreechart/src/main/java/org/afree/chart/renderer/category/BarRenderer3D.java
/**
     * Draws a grid line against the domain axis.
     *
     * @param canvas  the graphics device.
     * @param plot  the plot.
     * @param dataArea  the area for plotting data (not yet adjusted for any
     *                  3D effect).
     * @param value  the Java2D value at which the grid line should be drawn.
     *
     */
Draws a grid line against the domain axis.
@param canvas  the graphics device.
@param plot  the plot.
@param dataArea  the area for plotting data (not yet adjusted for any
3D effect).
@param value  the Java2D value at which the grid line should be drawn.
Draws a grid line against the domain axis . @param canvas the graphics device . @param plot the plot . @param dataArea the area for plotting data ( not yet adjusted for any 3D effect ) . @param value the Java2D value at which the grid line should be drawn .
public void drawDomainGridline(Canvas canvas,
                                   CategoryPlot plot,
                                   RectShape dataArea,
                                   double value) {
        LineShape line1 = null;
        LineShape line2 = null;
        PlotOrientation orientation = plot.getOrientation();
        if (orientation == PlotOrientation.HORIZONTAL) {
            double y0 = value;
            double y1 = value - getYOffset();
            double x0 = dataArea.getMinX();
            double x1 = x0 + getXOffset();
            double x2 = dataArea.getMaxX();
            line1 = new LineShape(x0, y0, x1, y1);
            line2 = new LineShape(x1, y1, x2, y1);
        }
        else if (orientation == PlotOrientation.VERTICAL) {
            double x0 = value;
            double x1 = value + getXOffset();
            double y0 = dataArea.getMaxY();
            double y1 = y0 - getYOffset();
            double y2 = dataArea.getMinY();
            line1 = new LineShape(x0, y0, x1, y1);
            line2 = new LineShape(x1, y1, x1, y2);
        }
        PaintType paintType = plot.getDomainGridlinePaintType();
        if ( paintType == null ) {
            paintType = Plot.DEFAULT_OUTLINE_PAINT_TYPE;
        }
        float stroke = plot.getDomainGridlineStroke();
        if ( stroke != 0.0f ) {
            Paint paint = PaintUtility.createPaint(
                    Paint.ANTI_ALIAS_FLAG, 
                    paintType, 
                    stroke, 
                    plot.getOutlineEffect());
            line1.draw(canvas, paint);
            line2.draw(canvas, paint);
        }
    }
public void drawDomainGridline ( Canvas canvas , CategoryPlot plot , RectShape dataArea , double value ) { LineShape line1 = null ; LineShape line2 = null ; PlotOrientation orientation = plot . getOrientation ( ) ; if ( orientation == PlotOrientation . HORIZONTAL ) { double y0 = value ; double y1 = value - getYOffset ( ) ; double x0 = dataArea . getMinX ( ) ; double x1 = x0 + getXOffset ( ) ; double x2 = dataArea . getMaxX ( ) ; line1 = new LineShape ( x0 , y0 , x1 , y1 ) ; line2 = new LineShape ( x1 , y1 , x2 , y1 ) ; } else if ( orientation == PlotOrientation . VERTICAL ) { double x0 = value ; double x1 = value + getXOffset ( ) ; double y0 = dataArea . getMaxY ( ) ; double y1 = y0 - getYOffset ( ) ; double y2 = dataArea . getMinY ( ) ; line1 = new LineShape ( x0 , y0 , x1 , y1 ) ; line2 = new LineShape ( x1 , y1 , x1 , y2 ) ; } PaintType paintType = plot . getDomainGridlinePaintType ( ) ; if ( paintType == null ) { paintType = Plot . DEFAULT_OUTLINE_PAINT_TYPE ; } float stroke = plot . getDomainGridlineStroke ( ) ; if ( stroke != 0.0f ) { Paint paint = PaintUtility . createPaint ( Paint . ANTI_ALIAS_FLAG , paintType , stroke , plot . getOutlineEffect ( ) ) ; line1 . draw ( canvas , paint ) ; line2 . draw ( canvas , paint ) ; } }
Draws a grid line against the domain axis.
Draws a grid line against the domain axis .