Hello all,
JFreeChart 1.0.11
Enviroment:
Server: Linux 8.0, tomcat5, no X Server started.
Windows
How can I get same draw quality on Linux?
Thanks!
Draw chart uder Windows and Linux without X Server
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The output from Linux looks like it doesn't have antialiasing enabled. Not sure why that would be. Which Java runtime are you using?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
OK, IceTea is based on OpenJDK but with the "binary blob" (non-open source code) removed and replaced with Free / Open Source alternatives. I think that the Java2D rendering is one area that Sun wasn't able to fully "open source" (because code was licensed from a third party) so there is some new Java2D code in there...so I guess what you are seeing is could be a bug in the new implementation. Their bug tracker is here if you want to report it:
http://icedtea.classpath.org/bugzilla/query.cgi
When I find some time, I'd like to get up to speed with IcedTea so I can make sure JFreeChart runs nicely on it. Hopefully I'll do that before the FOSDEM conference in Brussels in February (where many of the OpenJDK, GNU Classpath and IcedTea developers meet).
http://icedtea.classpath.org/bugzilla/query.cgi
When I find some time, I'd like to get up to speed with IcedTea so I can make sure JFreeChart runs nicely on it. Hopefully I'll do that before the FOSDEM conference in Brussels in February (where many of the OpenJDK, GNU Classpath and IcedTea developers meet).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
Actually, the JDK never made a claim that a certain default anti-aliasing setting is required. The defaults changed in the past and in most cases, they are purely platform dependent.
If you tell your Windows-System (or Linux, does not matter) to not perform any aliasing on graphics and fonts, you probably want your JDK to obey to that rule. At least on Windows, the JDK uses whatever you define as system-default in the control panel. For Linux, things are a bit more difficult thanks to a insane X11-Server API (or no X11-Server at all).
Therefore I would not claim it a JDK bug. You probably should provide a sensible default in your code.
@see http://java.sun.com/javase/6/docs/api/j ... rties.html
@see http://java.sun.com/javase/6/docs/techn ... flags.html
If you tell your Windows-System (or Linux, does not matter) to not perform any aliasing on graphics and fonts, you probably want your JDK to obey to that rule. At least on Windows, the JDK uses whatever you define as system-default in the control panel. For Linux, things are a bit more difficult thanks to a insane X11-Server API (or no X11-Server at all).
Therefore I would not claim it a JDK bug. You probably should provide a sensible default in your code.
@see http://java.sun.com/javase/6/docs/api/j ... rties.html
@see http://java.sun.com/javase/6/docs/techn ... flags.html
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
JFreeChart sets the anti-aliasing hint by default. It's only a hint, so I guess a JRE could ignore it and still be compliant with the Java specification, but I'd still consider this a bug. Anyway, I'll dig deeper into IcedTea / OpenJDK soon and find out for sure...Taqua wrote:Therefore I would not claim it a JDK bug. You probably should provide a sensible default in your code.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program