A little help for multiline axis labels

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
tomkieffer
Posts: 24
Joined: Wed May 16, 2007 8:20 am

A little help for multiline axis labels

Post by tomkieffer » Tue Oct 02, 2007 8:31 am

Hello,
I'm changeing the TextUtilities Class to allow multiline Axis Labels with the \n line break character. I get the String to be drawn in multiple lines, the remaining problem is that the dataArea and plotArea size do not change, so the axis label is being drawn out of sight due to the shifting caused by the width of the growing rectangle.
Where do the plotArea and dataArea are calculated and how can the calculation be changed according to the desired number of lines?
Second thing is what exactly is the AxisState supposed to do? Are there changes to be made on the 'cursor setting'?
Will post or email the code when i'm finished with it but need some help first.

Locked