示例#1
0
 /**
  * Initialises the plot state (which will store the total of all dataset values, among other
  * things). This method is called once at the beginning of each drawing.
  *
  * @param g2 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).
  */
 @Override
 public PiePlotState initialise(
     Graphics2D g2, Rectangle2D plotArea, PiePlot plot, Integer index, PlotRenderingInfo info) {
   PiePlotState state = super.initialise(g2, plotArea, plot, index, info);
   state.setPassesRequired(3);
   return state;
 }