Cap

  • Cap is an immutable class used to style the start or end of a Polyline on a map.

  • It offers various predefined cap styles like ButtCap, RoundCap, SquareCap, and allows for custom bitmap overlays with CustomCap.

  • Cap inherits from AbstractSafeParcelable and implements Parcelable for object serialization.

  • Developers can use equals(), hashCode(), toString(), and writeToParcel() methods for comparison, hashing, string representation, and serialization, respectively.

  • Cap objects can be customized further by adjusting the stroke width and pattern of the associated Polyline.

public class Cap extends AbstractSafeParcelable
Known Direct Subclasses

Immutable cap that can be applied at the start or end vertex of a Polyline.

Inherited Constant Summary

Public Method Summary

boolean
equals(Object o)
int
String
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Public Methods

public boolean equals (Object o)

Parameters
o

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel out, int flags)

Parameters
out
flags