Plugin page: http://artifacts.griffon-framework.org/plugin/groovyfx
Provides integration with GroovyFX. GroovyFX allows you to use the JavaFX API to write your Griffon views.
Note: If you want to create a Griffon JavaFX application, install the JavaFX plugin instead. The JavaFX plugin will automatically pull this plugin in as a dependency. This plugin should only be installed independently if you want to add JavaFX views to your existing Swing application.
This version of the plugin uses GroovyFX 0.3.1, which works with JavaFX 2.2. The JavaFX 2.2 SDK can be downloaded from javafx.com. Once the SDK is installed, the JAVAFX_HOME environment variable should be set to point to the root directory of the JavaFX SDK installation
The JavaFX 2.2 SDK is also bundled with the Java 7u13 (or later) JDK. In this case, you can just set your JAVA_HOME environment variable to point to the JDK installation and the plugin will use the bundled JavaFX SDK.
Once installed, you can use any of the nodes provided by GroovyFX in your views. GroovyFX documentation can be found here.
A simple GroovyFX/JavaFX view might look like this:
hbox(padding: 80) {
text(text: "Java", font: "80pt sanserif") {
fill linearGradient(endX: 0, stops: [[0, orange], [1, chocolate]])
}
text(text: "FX", font: "80pt sanserif") {
fill linearGradient(endX: 0, stops: [[0, cyan], [1, dodgerblue]])
effect dropShadow(color: dodgerblue, radius: 25, spread: 0.25)
}
}
This plugin allows you to use ithe GroovyFX library with the Griffon framework.
This plugin is highly experimental