DashPattern (API Reference)
Package com.here.sdk.mapview
Class DashPattern
java.lang.Object
com.here.sdk.mapview.DashPattern
Represents a dash pattern for map polyline.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleLength of first dash in pixels.final doubleLength of first gap in pixels. -
Constructor Summary
ConstructorsConstructorDescriptionDashPattern(double dashLength) Creates a uniform dash pattern in which the length of a gap is the same as the length of a dash.DashPattern(double gapLength, double dashLength) Creates a simple dash pattern in which the lengths of a dash and gap can be different. -
Method Summary
-
Field Details
-
firstGapLength
public final double firstGapLengthLength of first gap in pixels.
-
firstDashLength
public final double firstDashLengthLength of first dash in pixels.
-
-
Constructor Details
-
DashPattern
public DashPattern(double dashLength) Creates a uniform dash pattern in which the length of a gap is the same as the length of a dash. This allows for patterns like
' — — — —'or' ——— ——— ———'.- Parameters:
dashLength-The length of a dash in pixels. The gap will have the same length. Clamped to the range of [1, 500].
-
DashPattern
public DashPattern(double gapLength, double dashLength) Creates a simple dash pattern in which the lengths of a dash and gap can be different. This allows for patterns like
' — — — —'or' ——— ——— ———'.- Parameters:
gapLength-The length of a gap in pixels. Clamped to the range of [1, 500].
dashLength-The length of a dash in pixels. Clamped to the range of [1, 500].
-
-
Method Details