Class StaticMapLabel
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapLabel
- All Implemented Interfaces:
StaticMapShape
Represents a text label to be rendered on a static map.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StaticMapLabel.Builderbuilder(@NotNull Coordinate center, @NotNull String text) Creates a builder for a label at a coordinate with text.@NotNull Stringformat()Formats the shape for Cercalia API shape parameter.@NotNull Coordinate@NotNull RGBAColor@NotNull RGBAColorint@NotNull StringgetText()@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:
- Placement coordinate.
-
getText
- Returns:
- Label text.
-
format
Description copied from interface:StaticMapShapeFormats the shape for Cercalia API shape parameter.- Specified by:
formatin interfaceStaticMapShape
-
builder
@NotNull public static @NotNull StaticMapLabel.Builder builder(@NotNull @NotNull Coordinate center, @NotNull @NotNull String text) Creates a builder for a label at a coordinate with text.- Parameters:
center- Placement coordinate.text- Content of the label.- Returns:
- A new builder.
-