java.lang.Object
io.github.sosuisen.jfxbuilder.graphics.ArcToBuilder

public class ArcToBuilder extends Object
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 Details

    • create

      public static ArcToBuilder create()
      Returns an instance of the ArcToBuilder.
      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 of ArcTo(double, double, double, double, double, boolean, boolean) and returns an instance of ArcToBuilder.
      Returns:
      an instance of the ArcToBuilder.
    • build

      public ArcTo build()
      Builds and returns an instance of the ArcTo 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

      public ArcToBuilder apply(Consumer<ArcTo> func)
      Applies a function to the ArcTo instance being constructed. Most operations on the instance can be performed using this method.
      Returns:
      builder instance
    • absolute

      public ArcToBuilder absolute(boolean value)
      A builder method that invokes the setAbsolute method on the instance being constructed.
      Returns:
      builder instance
    • largeArcFlag

      public ArcToBuilder largeArcFlag(boolean value)
      A builder method that invokes the setLargeArcFlag method on the instance being constructed.
      Returns:
      builder instance
    • radiusX

      public ArcToBuilder radiusX(double value)
      A builder method that invokes the setRadiusX method on the instance being constructed.
      Returns:
      builder instance
    • radiusY

      public ArcToBuilder radiusY(double value)
      A builder method that invokes the setRadiusY method on the instance being constructed.
      Returns:
      builder instance
    • sweepFlag

      public ArcToBuilder sweepFlag(boolean value)
      A builder method that invokes the setSweepFlag method on the instance being constructed.
      Returns:
      builder instance
    • x

      public ArcToBuilder x(double value)
      A builder method that invokes the setX method on the instance being constructed.
      Returns:
      builder instance
    • xAxisRotation

      public ArcToBuilder xAxisRotation(double value)
      A builder method that invokes the setXAxisRotation method on the instance being constructed.
      Returns:
      builder instance
    • y

      public ArcToBuilder y(double value)
      A builder method that invokes the setY method on the instance being constructed.
      Returns:
      builder instance
    • XAxisRotationPropertyApply

      public ArcToBuilder XAxisRotationPropertyApply(Consumer<DoubleProperty> op)
      Applies a function to the XAxisRotationProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      Returns:
      builder instance
    • absolutePropertyApply

      public ArcToBuilder absolutePropertyApply(Consumer<BooleanProperty> op)
      Applies a function to the absoluteProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      Returns:
      builder instance
    • largeArcFlagPropertyApply

      public ArcToBuilder largeArcFlagPropertyApply(Consumer<BooleanProperty> op)
      Applies a function to the largeArcFlagProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      Returns:
      builder instance
    • radiusXPropertyApply

      public ArcToBuilder radiusXPropertyApply(Consumer<DoubleProperty> op)
      Applies a function to the radiusXProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      Returns:
      builder instance
    • radiusYPropertyApply

      public ArcToBuilder radiusYPropertyApply(Consumer<DoubleProperty> op)
      Applies a function to the radiusYProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      Returns:
      builder instance
    • sweepFlagPropertyApply

      public ArcToBuilder sweepFlagPropertyApply(Consumer<BooleanProperty> op)
      Applies a function to the sweepFlagProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      Returns:
      builder instance
    • xPropertyApply

      public ArcToBuilder xPropertyApply(Consumer<DoubleProperty> op)
      Applies a function to the xProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      Returns:
      builder instance
    • yPropertyApply

      public ArcToBuilder yPropertyApply(Consumer<DoubleProperty> op)
      Applies a function to the yProperty of the instance being constructed. This serves as a shorthand form of the apply method.

      Example:

      Returns:
      builder instance