Class InnerShadowBuilder
java.lang.Object
io.github.sosuisen.jfxbuilder.graphics.InnerShadowBuilder
The
InnerShadowBuilder
class constructs instances of the InnerShadow
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 InnerShadow
constructor
and returns an instance of the InnerShadowBuilder
.
You can use method chaining to call the builder methods for configuring the InnerShadow
.
Finally, invoke the build
method to generate an instance of the InnerShadow
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 TypeMethodDescriptionapply
(Consumer<InnerShadow> func) Applies a function to the InnerShadow instance being constructed.A builder method that invokes thesetBlurType
method on the instance being constructed.Applies a function to theblurTypeProperty
of the instance being constructed.build()
Builds and returns an instance of theInnerShadow
class.choke
(double value) A builder method that invokes thesetChoke
method on the instance being constructed.Applies a function to thechokeProperty
of the instance being constructed.A builder method that invokes thesetColor
method on the instance being constructed.Applies a function to thecolorProperty
of the instance being constructed.static InnerShadowBuilder
create()
Returns an instance of theInnerShadowBuilder
.static InnerShadowBuilder
Accepts the constructor arguments ofInnerShadow(double, double, double, Color)
and returns an instance ofInnerShadowBuilder
.static InnerShadowBuilder
Accepts the constructor arguments ofInnerShadow(double, Color)
and returns an instance ofInnerShadowBuilder
.static InnerShadowBuilder
Accepts the constructor arguments ofInnerShadow(BlurType, Color, double, double, double, double)
and returns an instance ofInnerShadowBuilder
.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.offsetX
(double value) A builder method that invokes thesetOffsetX
method on the instance being constructed.Applies a function to theoffsetXProperty
of the instance being constructed.offsetY
(double value) A builder method that invokes thesetOffsetY
method on the instance being constructed.Applies a function to theoffsetYProperty
of the instance being constructed.radius
(double value) A builder method that invokes thesetRadius
method on the instance being constructed.Applies a function to theradiusProperty
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 theInnerShadowBuilder
.- Returns:
- an instance of the
InnerShadowBuilder
.
-
create
Accepts the constructor arguments ofInnerShadow(double, double, double, Color)
and returns an instance ofInnerShadowBuilder
.- Returns:
- an instance of the
InnerShadowBuilder
.
-
create
Accepts the constructor arguments ofInnerShadow(double, Color)
and returns an instance ofInnerShadowBuilder
.- Returns:
- an instance of the
InnerShadowBuilder
.
-
create
public static InnerShadowBuilder create(BlurType blurType, Color color, double radius, double choke, double offsetX, double offsetY) Accepts the constructor arguments ofInnerShadow(BlurType, Color, double, double, double, double)
and returns an instance ofInnerShadowBuilder
.- Returns:
- an instance of the
InnerShadowBuilder
.
-
build
Builds and returns an instance of theInnerShadow
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
InnerShadow
class
-
apply
Applies a function to the InnerShadow instance being constructed. Most operations on the instance can be performed using this method.- Returns:
- builder instance
-
blurType
A builder method that invokes thesetBlurType
method on the instance being constructed.- Returns:
- builder instance
-
choke
A builder method that invokes thesetChoke
method on the instance being constructed.- Returns:
- builder instance
-
color
A builder method that invokes thesetColor
method on the instance being constructed.- 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
-
offsetX
A builder method that invokes thesetOffsetX
method on the instance being constructed.- Returns:
- builder instance
-
offsetY
A builder method that invokes thesetOffsetY
method on the instance being constructed.- Returns:
- builder instance
-
radius
A builder method that invokes thesetRadius
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
-
blurTypePropertyApply
Applies a function to theblurTypeProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
chokePropertyApply
Applies a function to thechokeProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
colorPropertyApply
Applies a function to thecolorProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- 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
-
offsetXPropertyApply
Applies a function to theoffsetXProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
offsetYPropertyApply
Applies a function to theoffsetYProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
radiusPropertyApply
Applies a function to theradiusProperty
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
-