From the course: Learning JavaFX GUI Development

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The JavaFX scene graph

The JavaFX scene graph

From the course: Learning JavaFX GUI Development

Start my 1-month free trial

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 a Scene Graph. As you can see, the Root node is the parent…

Contents