Java Reference
In-Depth Information
F Paint, Stroke, and Gradient —the plugin supports the paint, fill, and shape stroke
attributes from Illustrator to JavaFX using RGB colors. Gradients from Illustrator
map to either the LinearGradient or the RadialGradient class.
F Effects —the plugin will export Gaussian Blur, Inner Glow, Outer Glow, and Drop
Shadow and can be exported as native JavaFX effect classes. Other effects can
optionally be exported as a rasterized images.
See also
F Introduction
F Exporting Adobe Photoshop graphics to JavaFX
Exporting Scalable Vector Graphics (SVG)
to JavaFX
In previous recipes, we have seen how to use commercial designer tools as part of the JavaFX
development workflow by integrating creative content from Adobe Photoshop and Illustrator
CS3/CS4. If you are not using these Adobe tools, (or in some cases using a older version),
or maybe you are a supporter of open source, is it possible to export creative content from
other tools into JavaFX? The answer is an emphatic "yes!".
Continuing with the theme of designer integration with JavaFX in this recipe, we will look at
how to integrate scalable vector graphics (SVG) into JavaFX projects using the Production
Suite tools. This will allow you to integrate directly scalable vector graphics created in
commercial or open source packages into JavaFX.
Getting ready
To be able to convert graphics objects from an SVG file to JavaFX graphics objects, you
must first download Production Suite from , and install
it properly. Production Suite is a set of tools that are part of the JavaFX platform, intended to
let designers easily participate in the development workflow by integrating their work directly
with JavaFX.
This recipe assumes that you have a working knowledge of scalable vector graphics and have
used tools to create artistic content as SVG files. The recipe does not show how to generate
graphical content from your designer tools, but rather how to use JavaFX's Production Suite
tools to convert SVG files into the JavaFX's FXZ file format. The recipe will use an SVG file
exported from Adobe Illustrator. However, any vector graphics package, commercial or open
source, with a mature support for standard SVG rendering should work as well.
Search WWH ::

Custom Search