Showing posts with label javafx. Show all posts
Showing posts with label javafx. Show all posts

09 June 2009

Exploring JavaFX: creating charts for pubmed

The JavaFX SDK, a scripting language for Java, is now available for Linux. The API is said to be a new and simplier way to write a graphical interface and it have some nice data bindings to create an immediate and direct relationship between two variables. But it comes after Flash, Air, SVG , Processing, so isn't it already too late for this new language ?
However, JavaFX contains a chart API and I've generated some JavaFX code from XML/Pubmed and the following XSL stylesheet:

.
I worked with the following pubmed query: ontology[ti] “Database Management Systems”[mesh].
The XML Document was transformed into a JavaFX code with XSLT
xsltproc pubmed2fx01.xsl pubmed_result.txt > code.fx

The source code was then compiled to a java class with the javafx compiler:
javafxc code.fx

And the java code was executed with javafx:
javafx code

The exectuable creates to charts:




That's it.
Pierre

10 May 2007

JavaFX

(Via Paul's comment)

Sun introduced JavaFX at JavaOne. JAVAFX is a new scripting language based on java and it is said to be a flash/flex killer (I tested it, it still needs a java runtime environement and a basic knowledge of Swing is still needed, so I wonder how it could be compared with the light flash plugin ?)



see:
https://openjfx.dev.java.net/
https://openjfx.dev.java.net/JavaFX_Programming_Language.html
http://www.sun.com/software/javafx/


Pierre