java.lang.Object
io.github.sosuisen.jfxbuilder.graphics.SceneBuilder

public class SceneBuilder extends Object
The SceneBuilder class constructs instances of the Scene class and offers a fluent interface for creating and configuring it.

This class includes a static create method that accepts the constructor arguments of the original Scene constructor and returns an instance of the SceneBuilder.

You can use method chaining to call the builder methods for configuring the Scene. Finally, invoke the build method to generate an instance of the Scene class.

Note 1: Intermediate builder methods are not evaluated until the build method is called, meaning they are evaluated lazily.

Note 2: The Scene class does not have setters for the constructor arguments width, height, depthBuffer, and antiAliasing, but SceneBuilder provides setters for them.

Example:

Author:
Hidekazu Kubota <hidekazu.kubota@gmail.com>