Dash

  • Dash represents a dash style in the stroke pattern for shapes like Polylines, Polygons, and Circles on a map.

  • It's defined by a single property: length, which specifies the dash length in pixels.

  • You can create a Dash using its constructor, providing the desired length.

  • Dash inherits methods like equals, hashCode, and toString for object comparison and representation.

public final class Dash extends PatternItem

An immutable class representing a dash used in the stroke pattern for a Polyline or the outline of a Polygon or Circle.

Inherited Constant Summary

Field Summary

public final float length Length in pixels (non-negative).

Public Constructor Summary

Dash(float length)
Constructs a Dash.

Public Method Summary

String

Inherited Method Summary

Fields

public final float length

Length in pixels (non-negative).

Public Constructors

public Dash (float length)

Constructs a Dash.

Parameters
length Length in pixels. Negative value will be clamped to zero.

Public Methods

public String toString ()