JavaFX 2.0
JavaFX 2.0
Do we have any sample available to use JFreeChart with JavaFX 2.0?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: JavaFX 2.0
I've not had a chance to try out JavaFX 2.0 yet (and maybe never will), so I don't know what is possible. From my reading, I understand that it is possible to embed JavaFX into Swing UIs, but not the reverse (so the approach of embedding a ChartPanel into a JavaFX scene is not going to work - it was available in JavaFX 1.0 I remember, but Sun did state that it wasn't going to be supported long-term). A couple of friends of mine are working on a general solution to that which you can read about here:
http://www.jroller.com/neugens/entry/em ... _javafx_21
I don't know if there is another approach, but it would be interesting to see:
The biggest challenge facing JavaFX (my opinion) is getting it onto mobile devices and my prediction is that Oracle and the JavaFX team won't solve that issue quickly enough for JavaFX to gain real traction before something else takes over the space (Google's Dart springs to mind).
http://www.jroller.com/neugens/entry/em ... _javafx_21
I don't know if there is another approach, but it would be interesting to see:
- if JavaFX has any support for rendering via the "old-fashioned" Graphics2D API (which is the "target" for all JFreeChart rendering); or
- how difficult it would be to create an exporter for JFreeChart that creates a scene graph for the chart content.
The biggest challenge facing JavaFX (my opinion) is getting it onto mobile devices and my prediction is that Oracle and the JavaFX team won't solve that issue quickly enough for JavaFX to gain real traction before something else takes over the space (Google's Dart springs to mind).
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
Re: JavaFX 2.0
Thanks David for your reponse and pointing me towards the Jroller article.
Yes, I did look at JavaFX chart library but the features needed for Stock market charts(say Price Volume chart or Combined domain chart) are not available out of the box. I was looking at using the JFree API and embed it in JavaFX.
Thanks once again.
Dheeraj
Yes, I did look at JavaFX chart library but the features needed for Stock market charts(say Price Volume chart or Combined domain chart) are not available out of the box. I was looking at using the JFree API and embed it in JavaFX.
Thanks once again.
Dheeraj
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: JavaFX 2.0
I finally had a chance to look at JavaFX more closely, last week, and I will add JavaFX support to JFreeChart by using a custom Graphics2D implementation that maps directly to the JavaFX Canvas. The initial code for this is available on GitHub:
https://github.com/jfree/fxgraphics2d
https://github.com/jfree/fxgraphics2d
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