Label Alignement Problem with JDK 1.3.1 and earlier
Label Alignement Problem with JDK 1.3.1 and earlier
All horizontal Labels (Title, Tickvalues and Categorylabel) are by far too high if i use a jdk version earlier than 1.4. I know this doesnt happen if i use jdk 1.4.2 but is there a way to change the marging/ position of these labels - if so please show me how.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
One thing to try is flipping the value of the useFontMetricsGetStringBounds flag in the TextUtilities class. Change it somewhere near the start of your application before you draw your chart.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Same problem - can't find flag
I've looked for the flag that you mentioned and cannot find it anywhere within the TextUtilities class or any of the org.jfree.text package. I'm having the same problems as well with JDK 1.3.1, all labels are drawn incorrectly and all titles and subtitles are not drawn at all. I've stepped through the code and the title heights are coming back as zero. Any other ideas?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Which version are you using? My guess is 0.9.17, in which case you should give 0.9.18 a try. It has solved a lot of these problems for other people...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

