Java Reference
In-Depth Information
Burst, and Moon, respectively. When combined on top of each other, these look
like Figure 2.7.
Figure 2.8 shows the view at totality. This includes the layers DarkSky, Sun,
Totality, and Moon.
Figure 2.8
Total Solar Eclipse View
For this entire solar eclipse animation, there are six exported layers: jfx:Moon,
jfx:Totality, jfx:SunBurst, jfx:Sun, jfx:BlueSky, and jfx:DarkSky. To implement the
animation, the backgrounds will be jfx:BlueSky and jfx:DarkSky. As the Moon starts
to cover the Sun, the BlueSky layer fades out of and the DarkSky layer fades into
view. As the Moon nears total coverage over the Sun, the Sun Burst layer becomes
visible, and then the Totality View replaces the Sun Burst view. This whole process
reverses itself as the Moon moves out of the Sun Disc. The primary objects are
the Moon and the Sun, with the Sun going through three phases. In Adobe Illus-
trator CS3, the combined screen with all layers visible is shown in Figure 2.9.
The full color view of all these layers can be seen at http://jfxbook.com.
To use these layers in JavaFX, you need to export them. By default, only layers
with the prefix jfx : (case does not matter) will be exported. This allows the
graphic designer to specifically identify those layers that should be exported for
use in JavaFX, while allowing the designer the ability to name other layers for
his/her own purposes. This default behavior can be overridden by unchecking the
Preserve “JFX:” IDs Only option when exporting.
Search WWH ::




Custom Search