PatternItem

  • PatternItem is an immutable class used to define patterns for strokes in Polylines, Polygons, and Circles on a map.

  • It has three known direct subclasses: Dash, Dot, and Gap, which represent different pattern elements.

  • You can create a PatternItem using its constructor, providing a type and an optional length.

  • PatternItem inherits methods from Object and Parcelable for object comparison, hashing, and data serialization.

public class PatternItem extends Object
implements Parcelable
Known Direct Subclasses

Immutable item used in the stroke pattern for a Polyline or the outline of a Polygon or Circle.

Inherited Constant Summary

Public Constructor Summary

PatternItem(int type, Float length)

Public Method Summary

boolean
equals(Object o)
int
String

Inherited Method Summary

Public Constructors

public PatternItem (int type, Float length)

Parameters
type
length

Public Methods

public boolean equals (Object o)

Parameters
o

public int hashCode ()

public String toString ()