Game Development Reference
In-Depth Information
Scene Subpackages: The 13 Other Scene
Packages
You may be thinking, “Whew! That was a lot to cover in that javafx.scene package
overview!,” and indeed the core javafx.scene package has a lot of classes in it, covering
scene creation; scene graph organization; and scene utilities, such as lighting, cameras,
cursors, and screenshots (or should we call these sceneshots?). There is a lot more in
the javafx.scene package, in subpackages, as I call them, or packages that are below the
javafx.scene package, referenced using another dot and another package name (de-
scription). In fact, there are 13 more javafx.scene packages (see in Table 4-1 ), covering
things such as drawing, painting, charting, UI design, imaging, special effects, media
(audio and video) playback, input-output, text, shapes (2D geometry), transforms, and
web page (content created with HTML5, JavaScript and CSS3) rendering. You are go-
ing to explore these scene package classes in this section.
Table 4-1 . Thirteen Second-Level JavaFX Scene Subpackages, Their Primary Func-
tions, and a Description of Classes
Package Name
Functions
Description of Contents
javafx.scene.canvas
Drawing
Canvas class (and Canvas object); for a custom draw-
ing surface
javafx.scene.chart
Charting
Chart classes: PieChart, LineChart, XYChart,
BarChart, AreaChart, BubbleChart
javafx.scene.control
UI controls UI control classes: Button, Menu, Slider, Label,
ScrollBar, TextField
javafx.scene.effect
Special ef-
fects
Special effects classes: Glow, Blend, Bloom, Shadow,
Reflection, MotionBlur
javafx.scene.image
imaging
Digital imaging classes: Image, ImageView, Writ-
ableImageView, PixelFormat
javafx.scene.input
Input
(Events)
Classes related to getting input from the user into the
JavaFX application
javafx.scene.layout
UI layouts
UI layout container classes: TilePane, GridPane,
FlowPane, Border
javafx.scene.media
Media
player
Media playback classes: MediaPlayer, MediaView,
Track, AudioTrack, AudioClip
 
 
Search WWH ::




Custom Search