Dash

  • Dash is an immutable class in the Maps SDK for Android used to define dashes in stroke patterns for Polyline, Polygon, or Circle outlines.

  • It inherits from PatternItem and is defined by a single field length representing the dash length in pixels.

  • You can construct a Dash instance by providing the desired length in pixels.

  • The length is automatically clamped to zero if a negative value is provided during construction.

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 ()