afreechart/src/main/java/org/afree/chart/plot/PiePlot.java
/**
     * Initialises the drawing procedure. This method will be called before the
     * first item is rendered, giving the plot an opportunity to initialise any
     * state information it wants to maintain.
     * 
     * @param canvas
     *            the graphics device.
     * @param plotArea
     *            the plot area (<code>null</code> not permitted).
     * @param plot
     *            the plot.
     * @param index
     *            the secondary index (<code>null</code> for primary renderer).
     * @param info
     *            collects chart rendering information for return to caller.
     * 
     * @return A state object (maintains state information relevant to one chart
     *         drawing).
     */
Initialises the drawing procedure. This method will be called before the
first item is rendered, giving the plot an opportunity to initialise any
state information it wants to maintain.

@param canvas
the graphics device.
@param plotArea
the plot area (null not permitted).
@param plot
the plot.
@param index
the secondary index (null for primary renderer).
@param info
collects chart rendering information for return to caller.

@return A state object (maintains state information relevant to one chart
drawing).
Initialises the drawing procedure . This method will be called before the first item is rendered giving the plot an opportunity to initialise any state information it wants to maintain . @param canvas the graphics device . @param plotArea the plot area ( null not permitted ) . @param plot the plot . @param index the secondary index ( null for primary renderer ) . @param info collects chart rendering information for return to caller . @return A state object ( maintains state information relevant to one chart drawing ) .
public PiePlotState initialise(Canvas canvas, RectShape plotArea, PiePlot plot, Integer index,
            PlotRenderingInfo info) {
        PiePlotState state = new PiePlotState(info);
        state.setPassesRequired(2);
        if (this.dataset != null) {
            state.setTotal(DatasetUtilities.calculatePieDatasetTotal(plot.getDataset()));
        }
        state.setLatestAngle(plot.getStartAngle());
        return state;
    }
public PiePlotState initialise ( Canvas canvas , RectShape plotArea , PiePlot plot , Integer index , PlotRenderingInfo info ) { PiePlotState state = new PiePlotState ( info ) ; state . setPassesRequired ( 2 ) ; if ( this . dataset != null ) { state . setTotal ( DatasetUtilities . calculatePieDatasetTotal ( plot . getDataset ( ) ) ) ; } state . setLatestAngle ( plot . getStartAngle ( ) ) ; return state ; }
Initialises the drawing procedure.
Initialises the drawing procedure .