piePlot.setLabelGenerator(null);
// The following section deals with whether individual pie sections are exploded or not.
// Although PiePlot3D extends PiePlot, it does not support exploded sections.
if (! (plot instanceof PiePlot3D)) {
PieDataset ds = piePlot.getDataset();
for (Iterator paramIter=params.entrySet().iterator(); paramIter.hasNext(); ) {
Map.Entry entry = (Map.Entry) paramIter.next();
String paramKey = (String) entry.getKey();
if (paramKey.startsWith("explode_")) {
double explodePercent = Double.valueOf(paramKey.substring(8)).doubleValue();
String paramValue = (String) entry.getValue();
for (Iterator keyIter=ds.getKeys().iterator(); keyIter.hasNext(); ) {
Comparable key = (Comparable) keyIter.next();
if (key.equals(paramValue)) {
piePlot.setExplodePercent(key, explodePercent);
}
}