Klasse TextBuilder


public class TextBuilder extends ShapeBuilder<Text,TextBuilder>
An abstract base class for building nodes, providing a fluent API for configuring and creating instances of the node type specified by the generic parameter N.
  • Konstruktordetails

    • TextBuilder

      protected TextBuilder(String text)
      Constructs a new instance of the ControlBuilder class using the specified factory.
    • TextBuilder

      protected TextBuilder(ObservableValue<String> text)
      Constructs a new instance of the ControlBuilder class using the specified factory.
  • Methodendetails

    • build

      public Text build()
      Beschreibung aus Klasse kopiert: ShapeBuilder
      Build the Control.
      Setzt außer Kraft:
      build in Klasse ShapeBuilder<Text,TextBuilder>
      Gibt zurück:
      new Control instance
    • fill

      public TextBuilder fill(Paint fill)
      Sets the fill property for the node being built.
      Setzt außer Kraft:
      fill in Klasse ShapeBuilder<Text,TextBuilder>
      Parameter:
      fill - the Paint to be used as the fill for the shape
      Gibt zurück:
      this builder instance
    • fill

      public TextBuilder fill(com.dua3.utility.data.Color fill)
      Sets the fill property for the node being built.
      Setzt außer Kraft:
      fill in Klasse ShapeBuilder<Text,TextBuilder>
      Parameter:
      fill - the Paint to be used as the fill for the shape
      Gibt zurück:
      this builder instance
    • bindFillFx

      public TextBuilder bindFillFx(ObservableValue<Paint> fill)
      Binds the given ObservableValue to the fill property of the node being built. This allows the fill property of the node to dynamically reflect the value of the provided observable.
      Setzt außer Kraft:
      bindFillFx in Klasse ShapeBuilder<Text,TextBuilder>
      Parameter:
      fill - the ObservableValue representing the fill value to be bound
      Gibt zurück:
      this instance of the builder
    • bindFill

      public TextBuilder bindFill(ObservableValue<com.dua3.utility.data.Color> fill)
      Binds the given ObservableValue to the fill property of the node being built. This allows the fill property of the node to dynamically reflect the value of the provided observable.
      Setzt außer Kraft:
      bindFill in Klasse ShapeBuilder<Text,TextBuilder>
      Parameter:
      fill - the ObservableValue representing the fill value to be bound
      Gibt zurück:
      this instance of the builder
    • font

      public TextBuilder font(Font font)
      Sets the font for the text node being built.
      Parameter:
      font - the Font to set for the text node
      Gibt zurück:
      this TextBuilder instance for fluent method chaining
    • font

      public TextBuilder font(com.dua3.utility.text.Font font)
      Sets the font for the text node being built.
      Parameter:
      font - the Font to set for the text node
      Gibt zurück:
      this TextBuilder instance for fluent method chaining
    • bindFontFx

      public TextBuilder bindFontFx(ObservableValue<Font> font)
      Binds the Font property of the Text node to the specified ObservableValue.

      This allows the font property of the node to dynamically update whenever the value in the provided observable changes.

      Parameter:
      font - the ObservableValue providing the font to bind to the node's font property
      Gibt zurück:
      this TextBuilder instance for method chaining
    • bindFont

      public TextBuilder bindFont(ObservableValue<com.dua3.utility.text.Font> font)
      Binds the Font property of the Text node to the specified ObservableValue.

      This allows the font property of the node to dynamically update whenever the value in the provided observable changes.

      Parameter:
      font - the ObservableValue providing the font to bind to the node's font property
      Gibt zurück:
      this TextBuilder instance for method chaining