java.lang.Object
com.dua3.utility.fx.controls.abstract_builders.NodeBuilder<Text,TextBuilder>
com.dua3.utility.fx.controls.abstract_builders.ShapeBuilder<Text,TextBuilder>
com.dua3.utility.fx.controls.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.-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedTextBuilder(String text) Constructs a new instance of the ControlBuilder class using the specified factory.protectedTextBuilder(ObservableValue<String> text) Constructs a new instance of the ControlBuilder class using the specified factory. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbindFill(ObservableValue<com.dua3.utility.data.Color> fill) Binds the givenObservableValueto the fill property of the node being built.bindFillFx(ObservableValue<Paint> fill) Binds the givenObservableValueto the fill property of the node being built.bindFont(ObservableValue<com.dua3.utility.text.Font> font) bindFontFx(ObservableValue<Font> font) build()Build the Control.fill(com.dua3.utility.data.Color fill) Sets the fill property for the node being built.Sets the fill property for the node being built.font(com.dua3.utility.text.Font font) Sets the font for the text node being built.Sets the font for the text node being built.Von Klasse geerbte Methoden com.dua3.utility.fx.controls.abstract_builders.ShapeBuilder
bindStroke, bindStrokeFx, stroke, strokeVon Klasse geerbte Methoden com.dua3.utility.fx.controls.abstract_builders.NodeBuilder
apply, apply, bindDisabled, bindEnabled, disabled, prefHeight, prefSize, prefWidth, self
-
Konstruktordetails
-
TextBuilder
Constructs a new instance of the ControlBuilder class using the specified factory. -
TextBuilder
Constructs a new instance of the ControlBuilder class using the specified factory.
-
-
Methodendetails
-
build
Beschreibung aus Klasse kopiert:ShapeBuilderBuild the Control.- Setzt außer Kraft:
buildin KlasseShapeBuilder<Text,TextBuilder> - Gibt zurück:
- new Control instance
-
fill
Sets the fill property for the node being built.- Setzt außer Kraft:
fillin KlasseShapeBuilder<Text,TextBuilder> - Parameter:
fill- thePaintto be used as the fill for the shape- Gibt zurück:
- this builder instance
-
fill
Sets the fill property for the node being built.- Setzt außer Kraft:
fillin KlasseShapeBuilder<Text,TextBuilder> - Parameter:
fill- thePaintto be used as the fill for the shape- Gibt zurück:
- this builder instance
-
bindFillFx
Binds the givenObservableValueto 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:
bindFillFxin KlasseShapeBuilder<Text,TextBuilder> - Parameter:
fill- theObservableValuerepresenting the fill value to be bound- Gibt zurück:
- this instance of the builder
-
bindFill
Binds the givenObservableValueto 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:
bindFillin KlasseShapeBuilder<Text,TextBuilder> - Parameter:
fill- theObservableValuerepresenting the fill value to be bound- Gibt zurück:
- this instance of the builder
-
font
Sets the font for the text node being built.- Parameter:
font- theFontto set for the text node- Gibt zurück:
- this TextBuilder instance for fluent method chaining
-
font
Sets the font for the text node being built.- Parameter:
font- theFontto set for the text node- Gibt zurück:
- this TextBuilder instance for fluent method chaining
-
bindFontFx
Binds theFontproperty of theTextnode to the specifiedObservableValue.This allows the font property of the node to dynamically update whenever the value in the provided observable changes.
- Parameter:
font- theObservableValueproviding the font to bind to the node's font property- Gibt zurück:
- this
TextBuilderinstance for method chaining
-
bindFont
Binds theFontproperty of theTextnode to the specifiedObservableValue.This allows the font property of the node to dynamically update whenever the value in the provided observable changes.
- Parameter:
font- theObservableValueproviding the font to bind to the node's font property- Gibt zurück:
- this
TextBuilderinstance for method chaining
-