afreechart/src/main/java/org/afree/chart/renderer/category/BarRenderer.java
/**
     * Initialises the renderer and returns a state object that will be passed
     * to subsequent calls to the drawItem method. This method gets called once
     * at the start of the process of drawing a chart.
     * 
     * @param canvas
     *            the graphics device.
     * @param dataArea
     *            the area in which the data is to be plotted.
     * @param plot
     *            the plot.
     * @param rendererIndex
     *            the renderer index.
     * @param info
     *            collects chart rendering information for return to caller.
     * 
     * @return The renderer state.
     */
Initialises the renderer and returns a state object that will be passed
to subsequent calls to the drawItem method. This method gets called once
at the start of the process of drawing a chart.

@param canvas
the graphics device.
@param dataArea
the area in which the data is to be plotted.
@param plot
the plot.
@param rendererIndex
the renderer index.
@param info
collects chart rendering information for return to caller.

@return The renderer state.
Initialises the renderer and returns a state object that will be passed to subsequent calls to the drawItem method . This method gets called once at the start of the process of drawing a chart . @param canvas the graphics device . @param dataArea the area in which the data is to be plotted . @param plot the plot . @param rendererIndex the renderer index . @param info collects chart rendering information for return to caller . @return The renderer state .
public CategoryItemRendererState initialise(Canvas canvas,
            RectShape dataArea, CategoryPlot plot, int rendererIndex,
            PlotRenderingInfo info) {
        CategoryItemRendererState state = super.initialise(canvas, dataArea, plot,
                rendererIndex, info);
        ValueAxis rangeAxis = plot.getRangeAxisForDataset(rendererIndex);
        this.lowerClip = rangeAxis.getRange().getLowerBound();
        this.upperClip = rangeAxis.getRange().getUpperBound();
        calculateBarWidth(plot, dataArea, rendererIndex, state);
        return state;
    }
public CategoryItemRendererState initialise ( Canvas canvas , RectShape dataArea , CategoryPlot plot , int rendererIndex , PlotRenderingInfo info ) { CategoryItemRendererState state = super . initialise ( canvas , dataArea , plot , rendererIndex , info ) ; ValueAxis rangeAxis = plot . getRangeAxisForDataset ( rendererIndex ) ; this . lowerClip = rangeAxis . getRange ( ) . getLowerBound ( ) ; this . upperClip = rangeAxis . getRange ( ) . getUpperBound ( ) ; calculateBarWidth ( plot , dataArea , rendererIndex , state ) ; return state ; }
Initialises the renderer and returns a state object that will be passed
 to subsequent calls to the drawItem method.
Initialises the renderer and returns a state object that will be passed to subsequent calls to the drawItem method .
// get the clipping values... // calculate the bar width