Class StaticMapRectangle
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapRectangle
- All Implemented Interfaces:
StaticMapShape
Represents a rectangle shape to be rendered on a static map.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StaticMapRectangle.Builderbuilder(@NotNull Coordinate upperLeft, @NotNull Coordinate lowerRight) Creates a builder for a rectangle defined by its corners.@NotNull Stringformat()Formats the shape for Cercalia API shape parameter.@NotNull RGBAColor@NotNull Coordinate@NotNull RGBAColorint@NotNull StaticMapShapeTypegetType()@NotNull Coordinate
-
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
-
getUpperLeft
- Returns:
- Upper-left corner.
-
getLowerRight
- Returns:
- Lower-right corner.
-
format
Description copied from interface:StaticMapShapeFormats the shape for Cercalia API shape parameter.- Specified by:
formatin interfaceStaticMapShape
-
builder
@NotNull public static @NotNull StaticMapRectangle.Builder builder(@NotNull @NotNull Coordinate upperLeft, @NotNull @NotNull Coordinate lowerRight) Creates a builder for a rectangle defined by its corners.- Parameters:
upperLeft- Upper-left corner.lowerRight- Lower-right corner.- Returns:
- A new builder.
-