PatternItem

  • PatternItem is an immutable class used to define stroke patterns for shapes like Polyline, Polygon, and Circle on a map.

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

  • PatternItem implements the Parcelable interface, enabling its serialization and deserialization for data transfer.

  • Developers can use PatternItem and its subclasses to customize the appearance of lines and outlines on Google Maps.

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 Method Summary

boolean
int
String
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Public Methods

public boolean equals (Object o)

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel out, int flags)