Class StaticMapSector
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapSector
- All Implemented Interfaces:
StaticMapShape
Represents a sector (pie slice) shape to be rendered on a static map.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StaticMapSector.Builderbuilder(@NotNull Coordinate center) Creates a builder for a sector centered at a coordinate.@NotNull Stringformat()Formats the shape for Cercalia API shape parameter.@NotNull Coordinateint@NotNull RGBAColorintint@NotNull RGBAColorintint@NotNull StaticMapShapeTypegetType()
-
Method Details
-
getType
- Specified by:
getTypein interfaceStaticMapShape
-
getOutlineColor
- Specified by:
getOutlineColorin interfaceStaticMapShape
-
getOutlineSize
public int getOutlineSize()- Specified by:
getOutlineSizein interfaceStaticMapShape
-
getFillColor
- Specified by:
getFillColorin interfaceStaticMapShape
-
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
Description copied from interface:StaticMapShapeFormats the shape for Cercalia API shape parameter.- Specified by:
formatin interfaceStaticMapShape
-
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.
-