{
public void applySeriesAppearance(JFreeChart chart, List<SeriesDefinition> seriesDefinitions, SeriesStrokeAndPaintApplier strokeAndPaintApplier)
{
for (int i = 0; i < seriesDefinitions.size(); i++)
{
SeriesDefinition seriesDefinition = seriesDefinitions.get(i);
if (seriesDefinition.getSeriesColourName() != null)
{
strokeAndPaintApplier.setSeriesPaint(i, ColorFactory.toColour(seriesDefinition.getSeriesColourName()), chart);
}
if (seriesDefinition.getStrokeWidth() != null)
{
// Negative width used to signify dashed
boolean dashed = seriesDefinition.getStrokeWidth() < 0;
float width = Math.abs(seriesDefinition.getStrokeWidth());
BasicStroke stroke = buildStrokeOfWidth(width, dashed);
strokeAndPaintApplier.setSeriesStroke(i, stroke, chart);
}
}
}