Class DashPattern

java.lang.Object
com.here.sdk.mapview.DashPattern

public final class DashPattern extends Object

Represents a dash pattern for map polyline.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    Length of first dash in pixels.
    final double
    Length 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

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • firstGapLength

      public final double firstGapLength

      Length of first gap in pixels.

    • firstDashLength

      public final double firstDashLength

      Length 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