From the course: Learning JavaFX GUI Development
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
The JavaFX scene graph
From the course: Learning JavaFX GUI Development
The JavaFX scene graph
- [Voiceover] The JavaFX Scene Graph depicts a hierarchical tree of nodes that represent all of the visual elements of the application's user interface. Each element in a Scene Graph is called a node. This is a sample depiction of a Scene Graph with six nodes. Each node has an ID, style class, and bounding volume. The root node is the base node and it cannot have any parent nodes. All other nodes, in a Scene Graph, have a single parent and zero or more children nodes. The benefit of using the Scene Graph is that each node can also have effects, such as blurs and shadows, varying opacity, transforms, event handlers, and application-specific states. The JavaFX Scene API Nodes where API stands for application programming interface, includes many features. Each node can be used for adding shapes, both 2D and 3D; images, media, embedded web browsers, text, UI controls, charts, groups, and containers. Here is a sample rendering of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.