Class DashPattern
Package com.here.sdk.mapview
Class DashPattern
- java.lang.Object
-
- com.here.sdk.mapview.DashPattern
-
public final class DashPattern extends java.lang.ObjectRepresents a dash pattern for map polyline.
-
-
Field Summary
Fields Modifier and Type Field Description doublefirstDashLengthLength of first dash in pixels.doublefirstGapLengthLength of first gap in pixels.
-
Constructor Summary
Constructors Constructor Description DashPattern(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Constructor Detail
-
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].
-
-