Class BoxBlurBuilder
java.lang.Object
io.github.sosuisen.jfxbuilder.graphics.BoxBlurBuilder
The
BoxBlurBuilder class constructs instances of the BoxBlur class
and offers a fluent interface for creating and configuring it.
This class includes a static create method that accepts the same arguments as the original BoxBlur constructor
and returns an instance of the BoxBlurBuilder.
You can use method chaining to call the builder methods for configuring the BoxBlur.
Finally, invoke the build method to generate an instance of the BoxBlur class.
Note that intermediate builder methods are not evaluated until the build method
is called, meaning they are evaluated lazily.
- Author:
- Hidekazu Kubota <hidekazu.kubota@gmail.com>
-
Method Summary
Modifier and TypeMethodDescriptionApplies a function to the BoxBlur instance being constructed.build()Builds and returns an instance of theBoxBlurclass.static BoxBlurBuildercreate()Returns an instance of theBoxBlurBuilder.static BoxBlurBuildercreate(double width, double height, int iterations) Accepts the constructor arguments ofBoxBlur(double, double, int)and returns an instance ofBoxBlurBuilder.height(double value) A builder method that invokes thesetHeightmethod on the instance being constructed.Applies a function to theheightPropertyof the instance being constructed.A builder method that invokes thesetInputmethod on the instance being constructed.Applies a function to theinputPropertyof the instance being constructed.iterations(int value) A builder method that invokes thesetIterationsmethod on the instance being constructed.Applies a function to theiterationsPropertyof the instance being constructed.width(double value) A builder method that invokes thesetWidthmethod on the instance being constructed.Applies a function to thewidthPropertyof the instance being constructed.
-
Method Details
-
create
Returns an instance of theBoxBlurBuilder.- Returns:
- an instance of the
BoxBlurBuilder.
-
create
Accepts the constructor arguments ofBoxBlur(double, double, int)and returns an instance ofBoxBlurBuilder.- Returns:
- an instance of the
BoxBlurBuilder.
-
build
-
apply
Applies a function to the BoxBlur instance being constructed. Most operations on the instance can be performed using this method.- Returns:
- builder instance
-
height
A builder method that invokes thesetHeightmethod on the instance being constructed.- Returns:
- builder instance
-
input
A builder method that invokes thesetInputmethod on the instance being constructed.- Returns:
- builder instance
-
iterations
A builder method that invokes thesetIterationsmethod on the instance being constructed.- Returns:
- builder instance
-
width
A builder method that invokes thesetWidthmethod on the instance being constructed.- Returns:
- builder instance
-
heightPropertyApply
Applies a function to theheightPropertyof the instance being constructed. This serves as a shorthand form of theapplymethod.Example:
// Use apply .apply(obj -> obj.heightProperty().bind(anotherProperty)) // Use shorthand form .heightPropertyApply(prop -> prop.bind(anotherProperty))- Returns:
- builder instance
-
inputPropertyApply
Applies a function to theinputPropertyof the instance being constructed. This serves as a shorthand form of theapplymethod.Example:
// Use apply .apply(obj -> obj.inputProperty().bind(anotherProperty)) // Use shorthand form .inputPropertyApply(prop -> prop.bind(anotherProperty))- Returns:
- builder instance
-
iterationsPropertyApply
Applies a function to theiterationsPropertyof the instance being constructed. This serves as a shorthand form of theapplymethod.Example:
// Use apply .apply(obj -> obj.iterationsProperty().bind(anotherProperty)) // Use shorthand form .iterationsPropertyApply(prop -> prop.bind(anotherProperty))- Returns:
- builder instance
-
widthPropertyApply
Applies a function to thewidthPropertyof the instance being constructed. This serves as a shorthand form of theapplymethod.Example:
// Use apply .apply(obj -> obj.widthProperty().bind(anotherProperty)) // Use shorthand form .widthPropertyApply(prop -> prop.bind(anotherProperty))- Returns:
- builder instance
-