Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with Canvas and JFreeChart 1.0.13
Problem with Canvas and JFreeChart 1.0.13 [message #1806623] Sun, 12 May 2019 06:21 Go to next message
Eclipse UserFriend
I migrate my RCP application to RAP.
My application uses a lot of JFreeChart graphs and I add some problems :

- Dotted lines are drawn as solid lines
- Graphs seem to be zoomed and owerflow the view (the picture seems blurry)
- Some fonts seem to be changed by anothers

I have attached capture screens for the second point.
  • Attachment: firefox.png
    (Size: 50.61KB, Downloaded 248 times)
  • Attachment: chrome.png
    (Size: 52.09KB, Downloaded 244 times)
  • Attachment: ie.png
    (Size: 50.75KB, Downloaded 238 times)
  • Attachment: rcp.png
    (Size: 28.68KB, Downloaded 213 times)
Re: Problem with Canvas and JFreeChart 1.0.13 [message #1806738 is a reply to message #1806623] Tue, 14 May 2019 09:59 Go to previous messageGo to next message
Eclipse UserFriend
You generate chart as image through JFreeChart. RAP does not deal with JFreeChart, only get ready images.
try use for your java app
System.setProperty("java.awt.headless", "true");
Re: Problem with Canvas and JFreeChart 1.0.13 [message #1806743 is a reply to message #1806738] Tue, 14 May 2019 11:18 Go to previous messageGo to next message
Eclipse UserFriend
Thanks but setting this property does not work.

I don't generate image. I am able to interact with the chart (zoom, save, hide/unhide graph)
It is like if the destination canvas is larger than the canvas itself.
Re: Problem with Canvas and JFreeChart 1.0.13 [message #1806760 is a reply to message #1806743] Tue, 14 May 2019 15:44 Go to previous messageGo to next message
Eclipse UserFriend
>I am able to interact with the chart (zoom, save, hide/unhide graph)
But how?
This is AWT library and use for web java script is impossible. only for native java app
Re: Problem with Canvas and JFreeChart 1.0.13 [message #1806814 is a reply to message #1806760] Wed, 15 May 2019 11:04 Go to previous messageGo to next message
Eclipse UserFriend
I think you are right.
Only mouse events are captured and the image is updated.

It seems that BasicStroke does not work.
Re: Problem with Canvas and JFreeChart 1.0.13 [message #1806826 is a reply to message #1806814] Wed, 15 May 2019 13:58 Go to previous messageGo to next message
Eclipse UserFriend
I use https://git.eclipse.org/c/rap/incubator/org.eclipse.rap.incubator.chart.git
Re: Problem with Canvas and JFreeChart 1.0.13 [message #1806828 is a reply to message #1806826] Wed, 15 May 2019 16:16 Go to previous message
Eclipse UserFriend
My source code is used for generate RCP and RAP applucation.
I have refactoring it to solve most of the issues i have.
For chart, the last issue is BasicStroke.
Previous Topic:Application freezes occasionally
Next Topic:POST method
Goto Forum:
  


Current Time: Tue May 13 11:44:00 EDT 2025

Powered by FUDForum. Page generated in 0.04493 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top