Cap

  • Cap is an immutable object that can be applied to the start or end of a Polyline.

  • Known direct subclasses of Cap include ButtCap, CustomCap, RoundCap, and SquareCap.

  • Cap implements the Parcelable interface, meaning it can be written to and restored from a Parcel.

  • Public methods available for a Cap object include equals, hashCode, toString, and writeToParcel.

public class Cap extends Object
implements Parcelable
Known Direct Subclasses
ButtCap Cap that is squared off exactly at the start or end vertex of a Polyline with solid stroke pattern, equivalent to having no additional cap beyond the start or end vertex. 
CustomCap Bitmap overlay centered at the start or end vertex of a Polyline , orientated according to the direction of the line's first or last edge and scaled with respect to the line's stroke width. 
RoundCap Cap that is a semicircle with radius equal to half the stroke width, centered at the start or end vertex of a Polyline with solid stroke pattern. 
SquareCap Cap that is squared off after extending half the stroke width beyond the start or end vertex of a Polyline with solid stroke pattern. 

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

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)

Create a Mobile Website
View Site in Mobile | Classic
Share by: