Class DashPattern

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

  • public final class DashPattern
    extends java.lang.Object

    Represents a dash pattern for map polyline.

    • Field Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • firstGapLength

        public final double firstGapLength

        Length of first gap in pixels.

      • firstDashLength

        public final double firstDashLength

        Length of first dash in pixels.

    • 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].

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object