PiePlot section labels ignore newline

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
escroger
Posts: 3
Joined: Fri Feb 18, 2005 12:00 am

PiePlot section labels ignore newline

Post by escroger » Fri Feb 18, 2005 12:10 am

I tried inserting newline '\n' chars into the String returned by the generateSectionLabel() method of my StandardPieItemLabelGenerator
subclass to help with label formatting and line wrapping. To my surprise,
the newlines were ignored. I looked at the source and learned
that the nextLineBreak() method of jfree.text.TextUtilities is
ignoring the newline break and continues to concatentate the
next word break.

I hacked together a quick fix to test my theories and I got it to work.
When will newlines be supported in pieplot section labels and
consequently, jcommon TextUtilities.

-Eric

Jurassic

Post by Jurassic » Thu Mar 03, 2005 7:55 pm

Would you mind sharing your solution please?

Locked