Interface RectangleBuilder

All Superinterfaces:
AreaBuilder

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

    Modifier and Type
    Method
    Description
    bounds(int left, int top, int right, int bottom)
    Defines the bounds for the rectangle.
    @NotNull RectArea
    Produces a new rectangular area.
    link(@NotNull Link link)
    Sets the link maintained by the area.
  • Method Details

    • bounds

      @NotNull @NotNull RectangleBuilder bounds(int left, int top, int right, int bottom)
      Defines the bounds for the rectangle.
      Parameters:
      left - The x coordinate of the top-left corner.
      top - The y coordinate of the top-left corner.
      right - The x coordinate of the bottom-right corner.
      bottom - The y coordinate of the bottom-right corner.
      Returns:
      This builder.
      Since:
      5.2.2103
    • link

      @NotNull @NotNull RectangleBuilder 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 RectArea build()
      Produces a new rectangular area.
      Specified by:
      build in interface AreaBuilder
      Returns:
      A new rectangular area.
      Since:
      5.2.2103