Changing default fonts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Andrew Foss
Posts: 36
Joined: Thu Apr 12, 2007 6:54 am

Changing default fonts

Post by Andrew Foss » Wed Sep 24, 2008 3:15 pm

JFree folks,

Is there a simple way to change the default behavior for all charts, w/o doing a lot of setFont's within the code?

It seems to rely on JFreeChart.DEFAULT_FONT, but I'm not sure how I can change those values at runtime?

thanks,
andrew

matinh
Posts: 483
Joined: Fri Aug 11, 2006 10:08 am
Location: Austria

Post by matinh » Wed Sep 24, 2008 4:07 pm

Hi!

You could evenually use JFreeChart's new ChartTheme interface introduced inversion 1.0.11.

hth,
- martin

Locked