Class StaticMapCircle
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapCircle
- All Implemented Interfaces:
StaticMapShape
Represents a circle shape to be rendered on a static map.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StaticMapCircle.Builderbuilder(@NotNull Coordinate center, int radius) Creates a builder for a circle with specified center and radius.@NotNull Stringformat()Formats the shape for Cercalia API shape parameter.@NotNull Coordinate@NotNull RGBAColor@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.
-
getRadius
public int getRadius()- Returns:
- Radius in meters.
-
format
Description copied from interface:StaticMapShapeFormats the shape for Cercalia API shape parameter.- Specified by:
formatin interfaceStaticMapShape
-
builder
@NotNull public static @NotNull StaticMapCircle.Builder builder(@NotNull @NotNull Coordinate center, int radius) Creates a builder for a circle with specified center and radius.- Parameters:
center- Center location.radius- Radius in meters.- Returns:
- A new builder.
-