plot.setExplodePercent(index, (double) sectorPulled);
}
StyleObjectModel cssSectorModel = sector.getStyleObjectModel();
if (cssSectorModel != null && cssSectorModel.getBorder() != null) {
StyleBorderModel border = cssSectorModel.getBorder();
Color borderColor = border.getColor();
if (borderColor != null) {
plot.setSectionOutlinePaint(index, borderColor);
plot.setSectionOutlineStroke(index, PropertiesConverter.toStroke(border));
}
Color sectorModelColor = cssSectorModel.getColor();
if (sectorModelColor != null) {
plot.setSectionPaint(index, sectorModelColor);
}
}
}
}
} else {
if (dataset == null || dataset.getKeys() == null)
continue;
for (int j = 0; j < dataset.getKeys().size(); j++) {
index++;
boolean conditionValue = generator.getConditionValue(sector, 0, dataset, dataset.getKey(j));
if (!conditionValue)
continue;
if (sectorPulled != null && sectorPulled > 0) {
plot.setExplodePercent(index, (double) sectorPulled);
}
StyleObjectModel cssSectorModel = sector.getStyleObjectModel();
if (cssSectorModel != null && cssSectorModel.getBorder() != null) {
StyleBorderModel border = cssSectorModel.getBorder();
if (border.getColor() != null) {
plot.setSectionOutlinePaint(index, border.getColor());
plot.setSectionOutlineStroke(index, PropertiesConverter.toStroke(border));
}
}
if (cssSectorModel != null && cssSectorModel.getColor() != null) {