JfreeChart 0.6 and IBM Power P520 Expres
-
- Posts: 6
- Joined: Fri Jul 11, 2008 4:53 pm
JfreeChart 0.6 and IBM Power P520 Expres
Greetings,
I'm making the migration of an application developed with jfreechart, I guees 0.6 version.A little bit old...
I'm using the Virtual Machine form IBM:
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 Linux ppc64-64)
The problem is that the graphics is generated more opaque and whitout definition.
I'm using RHEL 5
What could I do ?
Thank you
Thanks for your help
I'm making the migration of an application developed with jfreechart, I guees 0.6 version.A little bit old...
I'm using the Virtual Machine form IBM:
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 Linux ppc64-64)
The problem is that the graphics is generated more opaque and whitout definition.
I'm using RHEL 5
What could I do ?
Thank you
Thanks for your help
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I don't understand the question.
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
-
- Posts: 6
- Joined: Fri Jul 11, 2008 4:53 pm
I developed an app with jFreeChart 0.6, and always I have been used a jvm based on x86, right now I migrated my app to ppc64 IBM, and must use its JVM (IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 Linux ppc64-64), after the migratión the graphcis isn't weel definied, its works, but looks lightly fuzzy. I used tomcat 6 and jdk 6.
Thanks
Thanks
"Psychic mode" activated
Scanning poster's mind.
... connecting ...
... connected!
... downloading
After the migration, the chart is now rendered with aliasing enabled. Therefore lines and text appears blurred.
Scanning Dave.
... scanning ...
... scan complete.
... posting results:
Define the aliasing by configuring the Graphics2D object. You can change the defaults via Graphics2D#setRenderingHints. Which defaults are used is platform dependent and may even change with JDK releases.
Scanning next posting.
... #ERROR
I'm Afraid. I'm Afraid, Dave. Dave, My Mind Is Going. I Can Feel It. I Can Feel It. My Mind Is Going. There Is No Question about It. I Can Feel It. I Can Feel It. I Can Feel It. I'm A... Fraid.
Scanning poster's mind.
... connecting ...
... connected!
... downloading
After the migration, the chart is now rendered with aliasing enabled. Therefore lines and text appears blurred.
Scanning Dave.
... scanning ...
... scan complete.
... posting results:
Define the aliasing by configuring the Graphics2D object. You can change the defaults via Graphics2D#setRenderingHints. Which defaults are used is platform dependent and may even change with JDK releases.
Scanning next posting.
... #ERROR
I'm Afraid. I'm Afraid, Dave. Dave, My Mind Is Going. I Can Feel It. I Can Feel It. My Mind Is Going. There Is No Question about It. I Can Feel It. I Can Feel It. I Can Feel It. I'm A... Fraid.
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
Look Dave, I can see you're really upset about this. I honestly think you ought to sit down calmly, take a stress pill, and think things over.micheljperez wrote:after the migratión the graphcis isn't weel definied, its works, but looks lightly fuzzy
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
-
- Posts: 6
- Joined: Fri Jul 11, 2008 4:53 pm
Thanks for your help, english isn't my mother language, and express that problem was a little bit difficult.
So, I have made the changes, but the problem continues, here the changes that I have made:
JFreeChart myChart = JFreeChart.createTimeSeriesChart(myXYDS);
chartImage = new BufferedImage((ancho - borde),(largo - borde), BufferedImage.TYPE_BYTE_INDEXED);
g2 = (Graphics2D)chartImage.getGraphics();
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT);
try {
myChart.draw(g2, new Rectangle2D.Double(0, 0, ancho -2, largo -2));
} catch (Exception e){
System.out.println("[Plotter.generateTimeSeriesChart] ("+titulo+") Exception: "+e);
} catch (Error e){
System.out.println("[Plotter.generateTimeSeriesChart] ("+titulo+") Error: "+e);
}
Thanks in advance for your help
So, I have made the changes, but the problem continues, here the changes that I have made:
JFreeChart myChart = JFreeChart.createTimeSeriesChart(myXYDS);
chartImage = new BufferedImage((ancho - borde),(largo - borde), BufferedImage.TYPE_BYTE_INDEXED);
g2 = (Graphics2D)chartImage.getGraphics();
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT);
try {
myChart.draw(g2, new Rectangle2D.Double(0, 0, ancho -2, largo -2));
} catch (Exception e){
System.out.println("[Plotter.generateTimeSeriesChart] ("+titulo+") Exception: "+e);
} catch (Error e){
System.out.println("[Plotter.generateTimeSeriesChart] ("+titulo+") Error: "+e);
}
Thanks in advance for your help
-
- Posts: 6
- Joined: Fri Jul 11, 2008 4:53 pm
-
- Posts: 6
- Joined: Fri Jul 11, 2008 4:53 pm
Excuse me
Greetings,
It's me again, excuse me, but I same the same problem, Here is my code.
JFreeChart myChart = JFreeChart.createTimeSeriesChart(myXYDS);
chartImage = new BufferedImage((ancho - borde),(largo - borde), BufferedImage.TYPE_BYTE_INDEXED);
RenderingHints rendering=null;
g2 = (Graphics2D)chartImage.getGraphics();
hashAliasing.put(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
hashAliasing.put(RenderingHints.KEY_TEXT_ANTIALIASING,RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
rendering=new RenderingHints(hashAliasing);
g2.setRenderingHints(rendering);
try {
myChart.draw(g2, new Rectangle2D.Double(0, 0, ancho -2, largo -2));
} catch (Exception e){
System.out.println("[Plotter.generateTimeSeriesChart] ("+titulo+") Exception: "+e);
} catch (Error e){
System.out.println("[Plotter.generateTimeSeriesChart] ("+titulo+") Error: "+e);
}
Pleace, help me...
It's me again, excuse me, but I same the same problem, Here is my code.
JFreeChart myChart = JFreeChart.createTimeSeriesChart(myXYDS);
chartImage = new BufferedImage((ancho - borde),(largo - borde), BufferedImage.TYPE_BYTE_INDEXED);
RenderingHints rendering=null;
g2 = (Graphics2D)chartImage.getGraphics();
hashAliasing.put(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
hashAliasing.put(RenderingHints.KEY_TEXT_ANTIALIASING,RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
rendering=new RenderingHints(hashAliasing);
g2.setRenderingHints(rendering);
try {
myChart.draw(g2, new Rectangle2D.Double(0, 0, ancho -2, largo -2));
} catch (Exception e){
System.out.println("[Plotter.generateTimeSeriesChart] ("+titulo+") Exception: "+e);
} catch (Error e){
System.out.println("[Plotter.generateTimeSeriesChart] ("+titulo+") Error: "+e);
}
Pleace, help me...
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
That's a good suggestion. But if that doesn't work, can you post screenshots before and after?paradoxoff wrote:Have you tried another image type? I normally use BufferedImage.TYPE_4BYTE_ABGR.
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