Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:21 Go to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 82
Registered: December 2011
Member
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 216 times)
  • Attachment: chrome.png
    (Size: 52.09KB, Downloaded 219 times)
  • Attachment: ie.png
    (Size: 50.75KB, Downloaded 216 times)
  • Attachment: rcp.png
    (Size: 28.68KB, Downloaded 200 times)
Re: Problem with Canvas and JFreeChart 1.0.13 [message #1806738 is a reply to message #1806623] Tue, 14 May 2019 13:59 Go to previous messageGo to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 195
Registered: February 2013
Senior Member
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 15:18 Go to previous messageGo to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 82
Registered: December 2011
Member
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 19:44 Go to previous messageGo to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 195
Registered: February 2013
Senior Member
>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 15:04 Go to previous messageGo to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 82
Registered: December 2011
Member
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 17:58 Go to previous messageGo to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 195
Registered: February 2013
Senior Member
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 20:16 Go to previous message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 82
Registered: December 2011
Member
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 Dec 10 03:12:32 GMT 2024

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

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

Back to the top