Java Reference
In-Depth Information
From this window, you have the option to show the preview of the exported
JavaFX file, choose to only export 'JFX:' layer IDs (the default) or all IDs, or
choose to embed the fonts in the exported file. To actually save the JavaFX
exported file, depress the Save button, and the plug-in creates a JavaFX archive
files with an .fxz extension. This file contains the exported graphics in an opti-
mized format. Figure 2.11 shows the JavaFX Export Options window.
Figure 2.11
JavaFX Export Options Window
Figure 2.12 shows the Save for JavaFX dialog.
We will explore this generated code in detail in Chapter 7, but for now simply
know that there is a direct correlation from the Adobe Illustrator layers and
objects created in the JavaFX exported code. For our solar eclipse example, there
will be JavaFX Objects for the Moon, Sun, SunBurst, Totality, BlueSky, and
DarkSky. These objects were exported, because we named them all with a jfx:
prefix when we created the layers in Adobe Illustrator.
Adobe Photoshop CS3
Exporting to JavaFX in Adobe Photoshop is similar to how it is done in Adobe
Illustrator. First, create the images for each layer, then export to JavaFX archive
format. Figure 2.13 shows the layers we created with Adobe Illustrator in the
 
Search WWH ::




Custom Search