afreechart/src/main/java/org/afree/chart/axis/SymbolAxis.java
/**
     * Draws the grid bands.  Alternate bands are colored using
     * <CODE>gridBandPaint<CODE> (<CODE>DEFAULT_GRID_BAND_PAINT</CODE> by
     * default).
     *
     * @param canvas  the graphics device.
     * @param plotArea  the area within which the chart should be drawn.
     * @param dataArea  the area within which the plot should be drawn (a
     *                  subset of the drawArea).
     * @param edge  the axis location.
     * @param ticks  the ticks.
     */
Draws the grid bands.  Alternate bands are colored using
gridBandPaint (DEFAULT_GRID_BAND_PAINT by
default).

@param canvas  the graphics device.
@param plotArea  the area within which the chart should be drawn.
@param dataArea  the area within which the plot should be drawn (a
subset of the drawArea).
@param edge  the axis location.
@param ticks  the ticks.
Draws the grid bands . Alternate bands are colored using gridBandPaint ( DEFAULT_GRID_BAND_PAINT by default ) . @param canvas the graphics device . @param plotArea the area within which the chart should be drawn . @param dataArea the area within which the plot should be drawn ( a subset of the drawArea ) . @param edge the axis location . @param ticks the ticks .
protected void drawGridBands(Canvas canvas,
                                 RectShape plotArea,
                                 RectShape dataArea,
                                 RectangleEdge edge,
                                 List ticks) {
        canvas.save();
        canvas.clipRect(dataArea.getRectF());
        if (RectangleEdge.isTopOrBottom(edge)) {
            drawGridBandsHorizontal(canvas, plotArea, dataArea, true, ticks);
        }
        else if (RectangleEdge.isLeftOrRight(edge)) {
            drawGridBandsVertical(canvas, plotArea, dataArea, true, ticks);
        }
        canvas.restore();
    }
protected void drawGridBands ( Canvas canvas , RectShape plotArea , RectShape dataArea , RectangleEdge edge , List ticks ) { canvas . save ( ) ; canvas . clipRect ( dataArea . getRectF ( ) ) ; if ( RectangleEdge . isTopOrBottom ( edge ) ) { drawGridBandsHorizontal ( canvas , plotArea , dataArea , true , ticks ) ; } else if ( RectangleEdge . isLeftOrRight ( edge ) ) { drawGridBandsVertical ( canvas , plotArea , dataArea , true , ticks ) ; } canvas . restore ( ) ; }
Draws the grid bands.
Draws the grid bands .