Using JFreeChart Scatter Plots is there a Way to Subdivide Styles for Data Sets?
You might consider the approaches mentioned here. The first implements DrawingSupplier
, as shown here:
class DefaultDrawingSupplier implements DrawingSupplier…
The second extends DefaultDrawingSupplier
, as shown here, to achieve a similar effect.
Paint[] paintArray = {…};
plot.setDrawingSupplier(new DefaultDrawingSupplier(
paintArray, …
DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE));
Of course, you can always override getItemPaint()
, as shown here.