Klasse ShapeBuilder<N extends Shape,NN extends ShapeBuilder<N,NN>>
java.lang.Object
com.dua3.utility.fx.controls.abstract_builders.NodeBuilder<N,NN>
com.dua3.utility.fx.controls.abstract_builders.ShapeBuilder<N,NN>
- Typparameter:
N- the type of node to be builtNN- the type of the concrete builder
- Bekannte direkte Unterklassen:
TextBuilder
public abstract class ShapeBuilder<N extends Shape,NN extends ShapeBuilder<N,NN>>
extends NodeBuilder<N,NN>
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
KonstruktorenModifiziererKonstruktorBeschreibungprotectedShapeBuilder(Supplier<? extends N> factory) 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.bindStroke(ObservableValue<com.dua3.utility.data.Color> stroke) Binds the stroke property of the node being built to the specifiedObservableValue.bindStrokeFx(ObservableValue<Paint> stroke) Binds the stroke property of the node being built to the specifiedObservableValue.build()Build the Control.fill(com.dua3.utility.data.Color fill) Sets the fill property for the shape being built.Sets the fill property for the shape being built.stroke(com.dua3.utility.data.Color stroke) Sets the stroke paint property for the shape being built.Sets the stroke paint property for the shape being built.Von Klasse geerbte Methoden com.dua3.utility.fx.controls.abstract_builders.NodeBuilder
apply, apply, bindDisabled, bindEnabled, disabled, prefHeight, prefSize, prefWidth, self
-
Konstruktordetails
-
ShapeBuilder
Constructs a new instance of the ControlBuilder class using the specified factory.- Parameter:
factory- the supplier that provides a new instance of the node type to be built
-
-
Methodendetails
-
build
Build the Control.- Setzt außer Kraft:
buildin KlasseNodeBuilder<N extends Shape,NN extends ShapeBuilder<N, NN>> - Gibt zurück:
- new Control instance
-
fill
Sets the fill property for the shape being built.- Parameter:
fill- thePaintto be used as the fill for the shape- Gibt zurück:
- this builder instance
-
fill
Sets the fill property for the shape being built.- 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.- 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.- Parameter:
fill- theObservableValuerepresenting the fill value to be bound- Gibt zurück:
- this instance of the builder
-
stroke
Sets the stroke paint property for the shape being built.- Parameter:
stroke- thePaintto be applied as the stroke for the shape- Gibt zurück:
- this builder instance
-
stroke
Sets the stroke paint property for the shape being built.- Parameter:
stroke- thePaintto be applied as the stroke for the shape- Gibt zurück:
- this builder instance
-
bindStrokeFx
Binds the stroke property of the node being built to the specifiedObservableValue. This ensures that the stroke property dynamically updates to reflect the value of the observable.- Parameter:
stroke- theObservableValueto bind to the node's stroke property- Gibt zurück:
- the current instance of the builder
-
bindStroke
Binds the stroke property of the node being built to the specifiedObservableValue. This ensures that the stroke property dynamically updates to reflect the value of the observable.- Parameter:
stroke- theObservableValueto bind to the node's stroke property- Gibt zurück:
- the current instance of the builder
-