Interface CircleBuilder

All Superinterfaces:
AreaBuilder

public interface CircleBuilder extends AreaBuilder
Definition of a builder for circular areas.
Since:
5.2.2103
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull CircleArea
    Produces a new circle area.
    @NotNull CircleBuilder
    center(int x, int y)
    Sets the center coordinates for the circle.
    @NotNull CircleBuilder
    link(@NotNull Link link)
    Sets the link maintained by the area.
    @NotNull CircleBuilder
    radius(int radius)
    Sets the radius for the circle.
  • Method Details

    • center

      @NotNull @NotNull CircleBuilder center(int x, int y)
      Sets the center coordinates for the circle.
      Parameters:
      x - The x coordinate.
      y - The y coordinate.
      Returns:
      This builder.
      Since:
      5.2.2103
    • radius

      @NotNull @NotNull CircleBuilder radius(int radius)
      Sets the radius for the circle.
      Parameters:
      radius - The radius.
      Returns:
      This builder.
      Since:
      5.2.2103
    • link

      @NotNull @NotNull CircleBuilder link(@NotNull @NotNull Link link)
      Sets the link maintained by the area.
      Specified by:
      link in interface AreaBuilder
      Parameters:
      link - The link to be used.
      Returns:
      This builder.
      Since:
      5.2.2103
    • build

      @NotNull @NotNull CircleArea build()
      Produces a new circle area.
      Specified by:
      build in interface AreaBuilder
      Returns:
      A new circle area.
      Since:
      5.2.2103