Class LineDataBuilder
Package com.here.sdk.mapview.datasource
Class LineDataBuilder
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.mapview.datasource.LineDataBuilder
-
public final class LineDataBuilder extends NativeBase
Builder of
LineDatainstances.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
-
Constructor Summary
Constructors Constructor Description LineDataBuilder()Creates a builder instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineDatabuild()Builds an instance ofLineDataand resets the builder instance.LineDataBuilderwithAttributes(DataAttributes attributes)Configures the builder with custom attributes for line to be created.LineDataBuilderwithGeometry(GeoPolyline geometry)Configures the builder with geometry for line to be created.
-
-
-
Method Detail
-
withGeometry
@NonNull public LineDataBuilder withGeometry(@NonNull GeoPolyline geometry)
Configures the builder with geometry for line to be created.
- Parameters:
geometry-Geometry of the polyline. Each vertex defines two line segments: one with a previous vertex and one with a next vertex. First and last vertices don't have resp. previous and next vertices and thus belong to single line segments. Altitude of polyline vertices is ignored.
- Returns:
The builder.
-
withAttributes
@NonNull public LineDataBuilder withAttributes(@NonNull DataAttributes attributes)
Configures the builder with custom attributes for line to be created.
- Parameters:
attributes-Custom data attributes to be associated with the line.
- Returns:
The builder.
-
-