Presenting Visual Objects in JavaFX
Introduction
Scene Graph Features Overview
Nodes Demo
Source Files
Tutorial Home

Scene Graph Features Overview

Introduction

Although Java Platform Standard Edition (SE) provides facilities for rendering graphics in your applications, there is no means to easily add animation or the rich visual effects required by modern graphical applications. JavaFX technology addresses this limitation by offering simple, elegant ways to create and handle visual output in your applications. With JavaFX, you can make calls to Java API and use new capacities that leverage Java.

The graphical runtime for the JavaFX Script is provided by the Scene Graph project that is being implemented as a public project on java.net.

The following figure shows how the JavaFX Script makes use of the Java API including the Scene Graph API.

JavaFX dependancies
Figure 1: JavaFX Script and Underlying Libraries

It is the scene graph that allows you to simplify creation of visual output. A scene graph provides a hierarchy of graphical objects in a scene. The scene graph underlying the JavaFX Script enables the user to transform nodes, to apply powerful effects, and to animate graphical objects and thus to create rich graphical applications. JavaFX takes advantage of the scene graph capacities and provides a new way to render a scene. You declaratively specify graphical and GUI objects, and then JavaFX renders those objects as needed. This section briefly describes the scene graph key concepts and major advantages of JavaFX Script that are available with the scenegraph functionality.

Java FX Scene Graph Key Concepts