I tried to colorize an LegendItem with code similar to the following:
Code: Select all
AttributedString txt = new AttributedString("colored");
txt.addAttribute(TextAttribute.FOREGROUND, Color.RED);
legendItems.add(new LegendItem(txt, null, null, null,
new Line2D.Double(-lineLength, 0.0, lineLength, 0.0),
new BasicStroke(1),
Color.BLUE));
Is this a bug, or do I something wrong. I am using JFreeChart 1.0.9.
best regards and happy Easter
Tom