Class SceneBuilder

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:

 Scene scene = SceneBuilder
     .withRoot(
         HBoxBuilder
             .withChildren(
                 TextFieldBuilder.create()
                     .textPropertyApply(prop -> prop.bindBidirectional(textProp))
                     .style("""
                            -fx-font-weight: bold;
                            -fx-alignment: center;
                            """)
                     .hGrowInHBox(Priority.ALWAYS)
                     .maxWidth(Double.MAX_VALUE)
                     .build(),
                 ButtonBuilder.create()
                     .text("Send")
                     .onAction(e -> System.out.println("Sending..."))
                     .minWidth(50)
                     .build()
             )
             .padding(new Insets(10))
             .build()
     )
     .width(150) // custom setter
     .height(100) // custom setter
     .build();
Author:
Hidekazu Kubota <hidekazu.kubota@gmail.com>
  • Field Details

  • Method Details

    • withRoot

      public static SceneBuilder withRoot(Parent root)
      Performs the same processing as the create(javafx.scene.Parent) method. This alias ensures consistency with other methods, such as the withChildren method found in container classes.
      Returns:
      an instance of the SceneBuilder.
    • width

      public SceneBuilder width(double width)
      Sets the width of the scene. The default value is DEFAULT_WIDTH.
      Returns:
      builder instance
    • height

      public SceneBuilder height(double height)
      Sets the height of the scene. The default value is DEFAULT_HEIGHT.
      Returns:
      builder instance
    • depthBuffer

      public SceneBuilder depthBuffer(boolean depthBuffer)
      Sets the depthBuffer of the scene. The default value is DEFAULT_DEPTH_BUFFER.
      Returns:
      builder instance
    • antiAliasing

      public SceneBuilder antiAliasing(SceneAntialiasing antiAliasing)
      Sets the antiAliasing of the scene. The default value is DEFAULT_ANTI_ALIASING.
      Returns:
      builder instance
    • create

      public static SceneBuilder create(Parent root)
      Accepts the constructor arguments of Scene(Parent) and returns an instance of the SceneBuilder.
      Returns:
      an instance of the SceneBuilder.
    • create

      public static SceneBuilder create(Parent root, Paint fill)
      Accepts the constructor arguments of Scene(Parent, Paint) and returns an instance of the SceneBuilder.
      Returns:
      an instance of the SceneBuilder.
    • create

      public static SceneBuilder create(Parent root, double width, double height)
      Accepts the constructor arguments of Scene(Parent, double, double) and returns an instance of the SceneBuilder.
      Returns:
      an instance of the SceneBuilder.
    • create

      public static SceneBuilder create(Parent root, double width, double height, Paint fill)
      Accepts the constructor arguments of Scene(Parent, double, double Paint) and returns an instance of the SceneBuilder.
      Returns:
      an instance of the SceneBuilder.
    • create

      public static SceneBuilder create(Parent root, double width, double height, boolean depthBuffer)
      Accepts the constructor arguments of Scene(Parent, double, double, boolean) and returns an instance of the SceneBuilder.
      Returns:
      an instance of the SceneBuilder.
    • create

      public static SceneBuilder create(Parent root, double width, double height, boolean depthBuffer, SceneAntialiasing antiAliasing)
      Accepts the constructor arguments of Scene(Parent, double, double, boolean, SceneAntialiasing) and returns an instance of the SceneBuilder.
      Returns:
      an instance of the SceneBuilder.
    • build

      public Scene build()
      Builds and returns an instance of the Scene class.

      Intermediate builder methods are not evaluated until the build method is called; in other words, they are evaluated lazily.

      Returns:
      new instance of the Scene class
    • addStylesheetsText

      public SceneBuilder addStylesheetsText(String css)
      Utility setter to add CSS string for this scene's contents. For example:
      SceneBuilder builder = SceneBuilder.create()
               .addStylesheetsText(".my-label { -fx-text-fill: white; }")
               .build();
      
      Parameters:
      css - CSS string
    • apply

      public SceneBuilder apply(Consumer<Scene> func)
      Applies a function to the Scene instance being constructed. Most operations on the instance can be performed using this method.
      Returns:
      builder instance
    • camera

      public SceneBuilder camera(Camera value)
      A builder method that invokes the setCamera method on the instance being constructed.
      Returns:
      builder instance
    • cursor

      public SceneBuilder cursor(Cursor value)
      A builder method that invokes the setCursor method on the instance being constructed.
      Returns:
      builder instance
    • eventDispatcher

      public SceneBuilder eventDispatcher(EventDispatcher value)
      A builder method that invokes the setEventDispatcher method on the instance being constructed.
      Returns:
      builder instance
    • fill

      public SceneBuilder fill(Paint value)
      A builder method that invokes the setFill method on the instance being constructed.
      Returns:
      builder instance
    • nodeOrientation

      public SceneBuilder nodeOrientation(NodeOrientation orientation)
      A builder method that invokes the setNodeOrientation method on the instance being constructed.
      Returns:
      builder instance
    • onContextMenuRequested

      public SceneBuilder onContextMenuRequested(EventHandler<? super ContextMenuEvent> value)
      A builder method that invokes the setOnContextMenuRequested method on the instance being constructed.
      Returns:
      builder instance
    • onDragDetected

      public SceneBuilder onDragDetected(EventHandler<? super MouseEvent> value)
      A builder method that invokes the setOnDragDetected method on the instance being constructed.
      Returns:
      builder instance
    • onDragDone

      public SceneBuilder onDragDone(EventHandler<? super DragEvent> value)
      A builder method that invokes the setOnDragDone method on the instance being constructed.
      Returns:
      builder instance
    • onDragDropped

      public SceneBuilder onDragDropped(EventHandler<? super DragEvent> value)
      A builder method that invokes the setOnDragDropped method on the instance being constructed.
      Returns:
      builder instance
    • onDragEntered

      public SceneBuilder onDragEntered(EventHandler<? super DragEvent> value)
      A builder method that invokes the setOnDragEntered method on the instance being constructed.
      Returns:
      builder instance
    • onDragExited

      public SceneBuilder onDragExited(EventHandler<? super DragEvent> value)
      A builder method that invokes the setOnDragExited method on the instance being constructed.
      Returns:
      builder instance
    • onDragOver

      public SceneBuilder onDragOver(EventHandler<? super DragEvent> value)
      A builder method that invokes the setOnDragOver method on the instance being constructed.
      Returns:
      builder instance
    • onInputMethodTextChanged

      public SceneBuilder onInputMethodTextChanged(EventHandler<? super InputMethodEvent> value)
      A builder method that invokes the setOnInputMethodTextChanged method on the instance being constructed.
      Returns:
      builder instance
    • onKeyPressed

      public SceneBuilder onKeyPressed(EventHandler<? super KeyEvent> value)
      A builder method that invokes the setOnKeyPressed method on the instance being constructed.
      Returns:
      builder instance
    • onKeyReleased

      public SceneBuilder onKeyReleased(EventHandler<? super KeyEvent> value)
      A builder method that invokes the setOnKeyReleased method on the instance being constructed.
      Returns:
      builder instance
    • onKeyTyped

      public SceneBuilder onKeyTyped(EventHandler<? super KeyEvent> value)
      A builder method that invokes the setOnKeyTyped method on the instance being constructed.
      Returns:
      builder instance
    • onMouseClicked

      public SceneBuilder onMouseClicked(EventHandler<? super MouseEvent> value)
      A builder method that invokes the setOnMouseClicked method on the instance being constructed.
      Returns:
      builder instance
    • onMouseDragEntered

      public SceneBuilder onMouseDragEntered(EventHandler<? super MouseDragEvent> value)
      A builder method that invokes the setOnMouseDragEntered method on the instance being constructed.
      Returns:
      builder instance
    • onMouseDragExited

      public SceneBuilder onMouseDragExited(EventHandler<? super MouseDragEvent> value)
      A builder method that invokes the setOnMouseDragExited method on the instance being constructed.
      Returns:
      builder instance
    • onMouseDragOver

      public SceneBuilder onMouseDragOver(EventHandler<? super MouseDragEvent> value)
      A builder method that invokes the setOnMouseDragOver method on the instance being constructed.
      Returns:
      builder instance
    • onMouseDragReleased

      public SceneBuilder onMouseDragReleased(EventHandler<? super MouseDragEvent> value)
      A builder method that invokes the setOnMouseDragReleased method on the instance being constructed.
      Returns:
      builder instance
    • onMouseDragged

      public SceneBuilder onMouseDragged(EventHandler<? super MouseEvent> value)
      A builder method that invokes the setOnMouseDragged method on the instance being constructed.
      Returns:
      builder instance
    • onMouseEntered

      public SceneBuilder onMouseEntered(EventHandler<? super MouseEvent> value)
      A builder method that invokes the setOnMouseEntered method on the instance being constructed.
      Returns:
      builder instance
    • onMouseExited

      public SceneBuilder onMouseExited(EventHandler<? super MouseEvent> value)
      A builder method that invokes the setOnMouseExited method on the instance being constructed.
      Returns:
      builder instance
    • onMouseMoved

      public SceneBuilder onMouseMoved(EventHandler<? super MouseEvent> value)
      A builder method that invokes the setOnMouseMoved method on the instance being constructed.
      Returns:
      builder instance
    • onMousePressed

      public SceneBuilder onMousePressed(EventHandler<? super MouseEvent> value)
      A builder method that invokes the setOnMousePressed method on the instance being constructed.
      Returns:
      builder instance
    • onMouseReleased

      public SceneBuilder onMouseReleased(EventHandler<? super MouseEvent> value)
      A builder method that invokes the setOnMouseReleased method on the instance being constructed.
      Returns:
      builder instance
    • onRotate

      public SceneBuilder onRotate(EventHandler<? super RotateEvent> value)
      A builder method that invokes the setOnRotate method on the instance being constructed.
      Returns:
      builder instance
    • onRotationFinished

      public SceneBuilder onRotationFinished(EventHandler<? super RotateEvent> value)
      A builder method that invokes the setOnRotationFinished method on the instance being constructed.
      Returns:
      builder instance
    • onRotationStarted

      public SceneBuilder onRotationStarted(EventHandler<? super RotateEvent> value)
      A builder method that invokes the setOnRotationStarted method on the instance being constructed.
      Returns:
      builder instance
    • onScroll

      public SceneBuilder onScroll(EventHandler<? super ScrollEvent> value)
      A builder method that invokes the setOnScroll method on the instance being constructed.
      Returns:
      builder instance
    • onScrollFinished

      public SceneBuilder onScrollFinished(EventHandler<? super ScrollEvent> value)
      A builder method that invokes the setOnScrollFinished method on the instance being constructed.
      Returns:
      builder instance
    • onScrollStarted

      public SceneBuilder onScrollStarted(EventHandler<? super ScrollEvent> value)
      A builder method that invokes the setOnScrollStarted method on the instance being constructed.
      Returns:
      builder instance
    • onSwipeDown

      public SceneBuilder onSwipeDown(EventHandler<? super SwipeEvent> value)
      A builder method that invokes the setOnSwipeDown method on the instance being constructed.
      Returns:
      builder instance
    • onSwipeLeft

      public SceneBuilder onSwipeLeft(EventHandler<? super SwipeEvent> value)
      A builder method that invokes the setOnSwipeLeft method on the instance being constructed.
      Returns:
      builder instance
    • onSwipeRight

      public SceneBuilder onSwipeRight(EventHandler<? super SwipeEvent> value)
      A builder method that invokes the setOnSwipeRight method on the instance being constructed.
      Returns:
      builder instance
    • onSwipeUp

      public SceneBuilder onSwipeUp(EventHandler<? super SwipeEvent> value)
      A builder method that invokes the setOnSwipeUp method on the instance being constructed.
      Returns:
      builder instance
    • onTouchMoved

      public SceneBuilder onTouchMoved(EventHandler<? super TouchEvent> value)
      A builder method that invokes the setOnTouchMoved method on the instance being constructed.
      Returns:
      builder instance
    • onTouchPressed

      public SceneBuilder onTouchPressed(EventHandler<? super TouchEvent> value)
      A builder method that invokes the setOnTouchPressed method on the instance being constructed.
      Returns:
      builder instance
    • onTouchReleased

      public SceneBuilder onTouchReleased(EventHandler<? super TouchEvent> value)
      A builder method that invokes the setOnTouchReleased method on the instance being constructed.
      Returns:
      builder instance
    • onTouchStationary

      public SceneBuilder onTouchStationary(EventHandler<? super TouchEvent> value)
      A builder method that invokes the setOnTouchStationary method on the instance being constructed.
      Returns:
      builder instance
    • onZoom

      public SceneBuilder onZoom(EventHandler<? super ZoomEvent> value)
      A builder method that invokes the setOnZoom method on the instance being constructed.
      Returns:
      builder instance
    • onZoomFinished

      public SceneBuilder onZoomFinished(EventHandler<? super ZoomEvent> value)
      A builder method that invokes the setOnZoomFinished method on the instance being constructed.
      Returns:
      builder instance
    • onZoomStarted

      public SceneBuilder onZoomStarted(EventHandler<? super ZoomEvent> value)
      A builder method that invokes the setOnZoomStarted method on the instance being constructed.
      Returns:
      builder instance
    • root

      public SceneBuilder root(Parent value)
      A builder method that invokes the setRoot method on the instance being constructed.
      Returns:
      builder instance
    • userAgentStylesheet

      public SceneBuilder userAgentStylesheet(String url)
      A builder method that invokes the setUserAgentStylesheet method on the instance being constructed.
      Returns:
      builder instance
    • userData

      public SceneBuilder userData(Object value)
      A builder method that invokes the setUserData method on the instance being constructed.
      Returns:
      builder instance
    • addStylesheets

      public final SceneBuilder addStylesheets(String... elements)
      Calls the addAll method on the ObservableList returned by the Scene#getStylesheets() method.
      Returns:
      builder instance
    • addStylesheets

      public final SceneBuilder addStylesheets(Collection<? extends String> col)
      Calls the addAll method on the ObservableList returned by the Scene#getStylesheets() method.
      Returns:
      builder instance
    • cameraPropertyApply

      public SceneBuilder cameraPropertyApply(Consumer<ObjectProperty<Camera>> op)
      Applies a function to the cameraProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.cameraProperty().bind(anotherProperty))
      
      // Use shorthand form
      .cameraPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • cursorPropertyApply

      public SceneBuilder cursorPropertyApply(Consumer<ObjectProperty<Cursor>> op)
      Applies a function to the cursorProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.cursorProperty().bind(anotherProperty))
      
      // Use shorthand form
      .cursorPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • effectiveNodeOrientationPropertyApply

      public SceneBuilder effectiveNodeOrientationPropertyApply(Consumer<ReadOnlyObjectProperty<NodeOrientation>> op)
      Applies a function to the effectiveNodeOrientationProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.effectiveNodeOrientationProperty().bind(anotherProperty))
      
      // Use shorthand form
      .effectiveNodeOrientationPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • eventDispatcherPropertyApply

      public SceneBuilder eventDispatcherPropertyApply(Consumer<ObjectProperty<EventDispatcher>> op)
      Applies a function to the eventDispatcherProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.eventDispatcherProperty().bind(anotherProperty))
      
      // Use shorthand form
      .eventDispatcherPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • fillPropertyApply

      public SceneBuilder fillPropertyApply(Consumer<ObjectProperty<Paint>> op)
      Applies a function to the fillProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.fillProperty().bind(anotherProperty))
      
      // Use shorthand form
      .fillPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • focusOwnerPropertyApply

      public SceneBuilder focusOwnerPropertyApply(Consumer<ReadOnlyObjectProperty<Node>> op)
      Applies a function to the focusOwnerProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.focusOwnerProperty().bind(anotherProperty))
      
      // Use shorthand form
      .focusOwnerPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • heightPropertyApply

      public SceneBuilder heightPropertyApply(Consumer<ReadOnlyDoubleProperty> op)
      Applies a function to the heightProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.heightProperty().bind(anotherProperty))
      
      // Use shorthand form
      .heightPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • nodeOrientationPropertyApply

      public SceneBuilder nodeOrientationPropertyApply(Consumer<ObjectProperty<NodeOrientation>> op)
      Applies a function to the nodeOrientationProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.nodeOrientationProperty().bind(anotherProperty))
      
      // Use shorthand form
      .nodeOrientationPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onContextMenuRequestedPropertyApply

      public SceneBuilder onContextMenuRequestedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ContextMenuEvent>>> op)
      Applies a function to the onContextMenuRequestedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onContextMenuRequestedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onContextMenuRequestedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onDragDetectedPropertyApply

      public SceneBuilder onDragDetectedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op)
      Applies a function to the onDragDetectedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onDragDetectedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onDragDetectedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onDragDonePropertyApply

      public SceneBuilder onDragDonePropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op)
      Applies a function to the onDragDoneProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onDragDoneProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onDragDonePropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onDragDroppedPropertyApply

      public SceneBuilder onDragDroppedPropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op)
      Applies a function to the onDragDroppedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onDragDroppedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onDragDroppedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onDragEnteredPropertyApply

      public SceneBuilder onDragEnteredPropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op)
      Applies a function to the onDragEnteredProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onDragEnteredProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onDragEnteredPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onDragExitedPropertyApply

      public SceneBuilder onDragExitedPropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op)
      Applies a function to the onDragExitedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onDragExitedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onDragExitedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onDragOverPropertyApply

      public SceneBuilder onDragOverPropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op)
      Applies a function to the onDragOverProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onDragOverProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onDragOverPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onInputMethodTextChangedPropertyApply

      public SceneBuilder onInputMethodTextChangedPropertyApply(Consumer<ObjectProperty<EventHandler<? super InputMethodEvent>>> op)
      Applies a function to the onInputMethodTextChangedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onInputMethodTextChangedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onInputMethodTextChangedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onKeyPressedPropertyApply

      public SceneBuilder onKeyPressedPropertyApply(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op)
      Applies a function to the onKeyPressedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onKeyPressedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onKeyPressedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onKeyReleasedPropertyApply

      public SceneBuilder onKeyReleasedPropertyApply(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op)
      Applies a function to the onKeyReleasedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onKeyReleasedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onKeyReleasedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onKeyTypedPropertyApply

      public SceneBuilder onKeyTypedPropertyApply(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op)
      Applies a function to the onKeyTypedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onKeyTypedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onKeyTypedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseClickedPropertyApply

      public SceneBuilder onMouseClickedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op)
      Applies a function to the onMouseClickedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseClickedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseClickedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseDragEnteredPropertyApply

      public SceneBuilder onMouseDragEnteredPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op)
      Applies a function to the onMouseDragEnteredProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseDragEnteredProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseDragEnteredPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseDragExitedPropertyApply

      public SceneBuilder onMouseDragExitedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op)
      Applies a function to the onMouseDragExitedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseDragExitedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseDragExitedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseDragOverPropertyApply

      public SceneBuilder onMouseDragOverPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op)
      Applies a function to the onMouseDragOverProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseDragOverProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseDragOverPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseDragReleasedPropertyApply

      public SceneBuilder onMouseDragReleasedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op)
      Applies a function to the onMouseDragReleasedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseDragReleasedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseDragReleasedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseDraggedPropertyApply

      public SceneBuilder onMouseDraggedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op)
      Applies a function to the onMouseDraggedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseDraggedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseDraggedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseEnteredPropertyApply

      public SceneBuilder onMouseEnteredPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op)
      Applies a function to the onMouseEnteredProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseEnteredProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseEnteredPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseExitedPropertyApply

      public SceneBuilder onMouseExitedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op)
      Applies a function to the onMouseExitedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseExitedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseExitedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseMovedPropertyApply

      public SceneBuilder onMouseMovedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op)
      Applies a function to the onMouseMovedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseMovedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseMovedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMousePressedPropertyApply

      public SceneBuilder onMousePressedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op)
      Applies a function to the onMousePressedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMousePressedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMousePressedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onMouseReleasedPropertyApply

      public SceneBuilder onMouseReleasedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op)
      Applies a function to the onMouseReleasedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onMouseReleasedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onMouseReleasedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onRotatePropertyApply

      public SceneBuilder onRotatePropertyApply(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op)
      Applies a function to the onRotateProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onRotateProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onRotatePropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onRotationFinishedPropertyApply

      public SceneBuilder onRotationFinishedPropertyApply(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op)
      Applies a function to the onRotationFinishedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onRotationFinishedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onRotationFinishedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onRotationStartedPropertyApply

      public SceneBuilder onRotationStartedPropertyApply(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op)
      Applies a function to the onRotationStartedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onRotationStartedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onRotationStartedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onScrollFinishedPropertyApply

      public SceneBuilder onScrollFinishedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op)
      Applies a function to the onScrollFinishedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onScrollFinishedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onScrollFinishedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onScrollPropertyApply

      public SceneBuilder onScrollPropertyApply(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op)
      Applies a function to the onScrollProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onScrollProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onScrollPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onScrollStartedPropertyApply

      public SceneBuilder onScrollStartedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op)
      Applies a function to the onScrollStartedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onScrollStartedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onScrollStartedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onSwipeDownPropertyApply

      public SceneBuilder onSwipeDownPropertyApply(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op)
      Applies a function to the onSwipeDownProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onSwipeDownProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onSwipeDownPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onSwipeLeftPropertyApply

      public SceneBuilder onSwipeLeftPropertyApply(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op)
      Applies a function to the onSwipeLeftProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onSwipeLeftProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onSwipeLeftPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onSwipeRightPropertyApply

      public SceneBuilder onSwipeRightPropertyApply(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op)
      Applies a function to the onSwipeRightProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onSwipeRightProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onSwipeRightPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onSwipeUpPropertyApply

      public SceneBuilder onSwipeUpPropertyApply(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op)
      Applies a function to the onSwipeUpProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onSwipeUpProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onSwipeUpPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onTouchMovedPropertyApply

      public SceneBuilder onTouchMovedPropertyApply(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op)
      Applies a function to the onTouchMovedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onTouchMovedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onTouchMovedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onTouchPressedPropertyApply

      public SceneBuilder onTouchPressedPropertyApply(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op)
      Applies a function to the onTouchPressedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onTouchPressedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onTouchPressedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onTouchReleasedPropertyApply

      public SceneBuilder onTouchReleasedPropertyApply(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op)
      Applies a function to the onTouchReleasedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onTouchReleasedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onTouchReleasedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onTouchStationaryPropertyApply

      public SceneBuilder onTouchStationaryPropertyApply(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op)
      Applies a function to the onTouchStationaryProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onTouchStationaryProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onTouchStationaryPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onZoomFinishedPropertyApply

      public SceneBuilder onZoomFinishedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op)
      Applies a function to the onZoomFinishedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onZoomFinishedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onZoomFinishedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onZoomPropertyApply

      public SceneBuilder onZoomPropertyApply(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op)
      Applies a function to the onZoomProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onZoomProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onZoomPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • onZoomStartedPropertyApply

      public SceneBuilder onZoomStartedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op)
      Applies a function to the onZoomStartedProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.onZoomStartedProperty().bind(anotherProperty))
      
      // Use shorthand form
      .onZoomStartedPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • rootPropertyApply

      public SceneBuilder rootPropertyApply(Consumer<ObjectProperty<Parent>> op)
      Applies a function to the rootProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.rootProperty().bind(anotherProperty))
      
      // Use shorthand form
      .rootPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • userAgentStylesheetPropertyApply

      public SceneBuilder userAgentStylesheetPropertyApply(Consumer<ObjectProperty<String>> op)
      Applies a function to the userAgentStylesheetProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.userAgentStylesheetProperty().bind(anotherProperty))
      
      // Use shorthand form
      .userAgentStylesheetPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • widthPropertyApply

      public SceneBuilder widthPropertyApply(Consumer<ReadOnlyDoubleProperty> op)
      Applies a function to the widthProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.widthProperty().bind(anotherProperty))
      
      // Use shorthand form
      .widthPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • windowPropertyApply

      public SceneBuilder windowPropertyApply(Consumer<ReadOnlyObjectProperty<Window>> op)
      Applies a function to the windowProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.windowProperty().bind(anotherProperty))
      
      // Use shorthand form
      .windowPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • xPropertyApply

      public SceneBuilder xPropertyApply(Consumer<ReadOnlyDoubleProperty> op)
      Applies a function to the xProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.xProperty().bind(anotherProperty))
      
      // Use shorthand form
      .xPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance
    • yPropertyApply

      public SceneBuilder yPropertyApply(Consumer<ReadOnlyDoubleProperty> op)
      Applies a function to the yProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      // Use apply
      .apply(obj -> obj.yProperty().bind(anotherProperty))
      
      // Use shorthand form
      .yPropertyApply(prop -> prop.bind(anotherProperty))
      
      Returns:
      builder instance