Class ArcToBuilder
java.lang.Object
io.github.sosuisen.jfxbuilder.graphics.ArcToBuilder
The
ArcToBuilder
class constructs instances of the ArcTo
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 ArcTo
constructor
and returns an instance of the ArcToBuilder
.
You can use method chaining to call the builder methods for configuring the ArcTo
.
Finally, invoke the build
method to generate an instance of the ArcTo
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 TypeMethodDescriptionabsolute
(boolean value) A builder method that invokes thesetAbsolute
method on the instance being constructed.Applies a function to theabsoluteProperty
of the instance being constructed.Applies a function to the ArcTo instance being constructed.build()
Builds and returns an instance of theArcTo
class.static ArcToBuilder
create()
Returns an instance of theArcToBuilder
.static ArcToBuilder
create
(double radiusX, double radiusY, double xAxisRotation, double x, double y, boolean largeArcFlag, boolean sweepFlag) Accepts the constructor arguments ofArcTo(double, double, double, double, double, boolean, boolean)
and returns an instance ofArcToBuilder
.largeArcFlag
(boolean value) A builder method that invokes thesetLargeArcFlag
method on the instance being constructed.Applies a function to thelargeArcFlagProperty
of the instance being constructed.radiusX
(double value) A builder method that invokes thesetRadiusX
method on the instance being constructed.Applies a function to theradiusXProperty
of the instance being constructed.radiusY
(double value) A builder method that invokes thesetRadiusY
method on the instance being constructed.Applies a function to theradiusYProperty
of the instance being constructed.sweepFlag
(boolean value) A builder method that invokes thesetSweepFlag
method on the instance being constructed.Applies a function to thesweepFlagProperty
of the instance being constructed.x
(double value) A builder method that invokes thesetX
method on the instance being constructed.xAxisRotation
(double value) A builder method that invokes thesetXAxisRotation
method on the instance being constructed.Applies a function to theXAxisRotationProperty
of the instance being constructed.Applies a function to thexProperty
of the instance being constructed.y
(double value) A builder method that invokes thesetY
method on the instance being constructed.Applies a function to theyProperty
of the instance being constructed.
-
Method Details
-
create
Returns an instance of theArcToBuilder
.- Returns:
- an instance of the
ArcToBuilder
.
-
create
public static ArcToBuilder create(double radiusX, double radiusY, double xAxisRotation, double x, double y, boolean largeArcFlag, boolean sweepFlag) Accepts the constructor arguments ofArcTo(double, double, double, double, double, boolean, boolean)
and returns an instance ofArcToBuilder
.- Returns:
- an instance of the
ArcToBuilder
.
-
build
Builds and returns an instance of theArcTo
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
ArcTo
class
-
apply
Applies a function to the ArcTo instance being constructed. Most operations on the instance can be performed using this method.- Returns:
- builder instance
-
absolute
A builder method that invokes thesetAbsolute
method on the instance being constructed.- Returns:
- builder instance
-
largeArcFlag
A builder method that invokes thesetLargeArcFlag
method on the instance being constructed.- Returns:
- builder instance
-
radiusX
A builder method that invokes thesetRadiusX
method on the instance being constructed.- Returns:
- builder instance
-
radiusY
A builder method that invokes thesetRadiusY
method on the instance being constructed.- Returns:
- builder instance
-
sweepFlag
A builder method that invokes thesetSweepFlag
method on the instance being constructed.- Returns:
- builder instance
-
x
A builder method that invokes thesetX
method on the instance being constructed.- Returns:
- builder instance
-
xAxisRotation
A builder method that invokes thesetXAxisRotation
method on the instance being constructed.- Returns:
- builder instance
-
y
A builder method that invokes thesetY
method on the instance being constructed.- Returns:
- builder instance
-
XAxisRotationPropertyApply
Applies a function to theXAxisRotationProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
absolutePropertyApply
Applies a function to theabsoluteProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
largeArcFlagPropertyApply
Applies a function to thelargeArcFlagProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
radiusXPropertyApply
Applies a function to theradiusXProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
radiusYPropertyApply
Applies a function to theradiusYProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
sweepFlagPropertyApply
Applies a function to thesweepFlagProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
xPropertyApply
Applies a function to thexProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
yPropertyApply
Applies a function to theyProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-