Stay organized with collections Save and categorize content based on your preferences.
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. CustomCap
can be applied to Polyline
with any stroke pattern.
clone()
boolean voidfinalize()
final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
From interface android.os.Parcelable abstract intdescribeContents()
abstract void writeToParcel(
Parcelarg0, int arg1)
Fields public final BitmapDescriptor bitmapDescriptorDescriptor of the bitmap to be overlaid at the start or end vertex.
public final float refWidthReference stroke width (in pixels) - the stroke width for which the cap bitmap at its native dimension is designed. The default reference stroke width is 10 pixels.
Public Constructors public CustomCap (BitmapDescriptor bitmapDescriptor, float refWidth)Constructs a new CustomCap
.
null
. refWidth Stroke width, in pixels, for which the cap bitmap at its native dimension is designed. Must be positive. public CustomCap (BitmapDescriptor bitmapDescriptor)
Constructs a new CustomCap
with default reference stroke width of 10 pixels (equal to the default stroke width, see PolylineOptions.width(float)
).
null
. Public Methods
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`CustomCap` allows you to customize the start/end caps of polylines on a map using bitmap images."],["It uses a bitmap image and a reference stroke width to define the cap's appearance."],["You can specify the bitmap and reference width when creating a `CustomCap` instance."],["A default reference width of 10 pixels is used if not explicitly provided during construction."]]],["`CustomCap` is a class that extends `Cap` and overlays a bitmap at the start or end of a `Polyline`. It uses `BitmapDescriptor` for the bitmap and `refWidth` to define the reference stroke width for scaling. Two constructors are available: one that sets both `bitmapDescriptor` and `refWidth`, and another with a default `refWidth` of 10 pixels. It offers a `toString` method and inherits methods like `equals`, `hashCode`, and `writeToParcel`.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4