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 theBoxBlur
class.static BoxBlurBuilder
create()
Returns an instance of theBoxBlurBuilder
.static BoxBlurBuilder
create
(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 thesetHeight
method on the instance being constructed.Applies a function to theheightProperty
of the instance being constructed.A builder method that invokes thesetInput
method on the instance being constructed.Applies a function to theinputProperty
of the instance being constructed.iterations
(int value) A builder method that invokes thesetIterations
method on the instance being constructed.Applies a function to theiterationsProperty
of the instance being constructed.width
(double value) A builder method that invokes thesetWidth
method on the instance being constructed.Applies a function to thewidthProperty
of 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
Builds and returns an instance of theBoxBlur
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
BoxBlur
class
-
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 thesetHeight
method on the instance being constructed.- Returns:
- builder instance
-
input
A builder method that invokes thesetInput
method on the instance being constructed.- Returns:
- builder instance
-
iterations
A builder method that invokes thesetIterations
method on the instance being constructed.- Returns:
- builder instance
-
width
A builder method that invokes thesetWidth
method on the instance being constructed.- Returns:
- builder instance
-
heightPropertyApply
Applies a function to theheightProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
inputPropertyApply
Applies a function to theinputProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
iterationsPropertyApply
Applies a function to theiterationsProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
widthPropertyApply
Applies a function to thewidthProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-