AI-generated Key Takeaways
-
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.
| 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 | hashCode
()
|
| String | toString
()
|
| void |

