Class StaticMapSector

java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapSector
All Implemented Interfaces:
StaticMapShape

public final class StaticMapSector extends Object implements StaticMapShape
Represents a sector (pie slice) shape to be rendered on a static map.
  • Method Details

    • getType

      @NotNull public @NotNull StaticMapShapeType getType()
      Specified by:
      getType in interface StaticMapShape
    • getOutlineColor

      @NotNull public @NotNull RGBAColor getOutlineColor()
      Specified by:
      getOutlineColor in interface StaticMapShape
    • getOutlineSize

      public int getOutlineSize()
      Specified by:
      getOutlineSize in interface StaticMapShape
    • getFillColor

      @NotNull public @NotNull RGBAColor getFillColor()
      Specified by:
      getFillColor in interface StaticMapShape
    • getCenter

      @NotNull public @NotNull Coordinate getCenter()
      Returns:
      Center coordinate.
    • getInnerRadius

      public int getInnerRadius()
      Returns:
      Inner radius in meters.
    • getOuterRadius

      public int getOuterRadius()
      Returns:
      Outer radius in meters.
    • getStartAngle

      public int getStartAngle()
      Returns:
      Start angle in degrees.
    • getEndAngle

      public int getEndAngle()
      Returns:
      End angle in degrees.
    • format

      @NotNull public @NotNull String format()
      Description copied from interface: StaticMapShape
      Formats the shape for Cercalia API shape parameter.
      Specified by:
      format in interface StaticMapShape
    • builder

      @NotNull public static @NotNull StaticMapSector.Builder builder(@NotNull @NotNull Coordinate center)
      Creates a builder for a sector centered at a coordinate.
      Parameters:
      center - Center location.
      Returns:
      A new builder.