Class StaticMapLine
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapLine
- All Implemented Interfaces:
StaticMapShape
Represents a line shape to be rendered on a static map.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StaticMapLine.Builderbuilder(@NotNull Coordinate start, @NotNull Coordinate end) Creates a builder for a line between two points.@NotNull Stringformat()Formats the shape for Cercalia API shape parameter.@NotNull CoordinategetEnd()@NotNull RGBAColor@NotNull RGBAColorint@NotNull CoordinategetStart()@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
-
getStart
- Returns:
- Start coordinate.
-
getEnd
- Returns:
- End coordinate.
-
format
Description copied from interface:StaticMapShapeFormats the shape for Cercalia API shape parameter.- Specified by:
formatin interfaceStaticMapShape
-
builder
@NotNull public static @NotNull StaticMapLine.Builder builder(@NotNull @NotNull Coordinate start, @NotNull @NotNull Coordinate end) Creates a builder for a line between two points.- Parameters:
start- Start point.end- End point.- Returns:
- A new builder.
-