A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/maps/model/CustomCap below:

CustomCap | Google Play services

CustomCap

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.

Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Field Summary public final BitmapDescriptor bitmapDescriptor Descriptor of the bitmap to be overlaid at the start or end vertex. public final float refWidth Reference stroke width (in pixels) - the stroke width for which the cap bitmap at its native dimension is designed. Public Constructor Summary Public Method Summary Inherited Method Summary From class java.lang.Object Object

clone()

boolean void

finalize()

final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

From interface android.os.Parcelable abstract int

describeContents()

abstract void writeToParcel

(

Parcel

arg0, int arg1)

Fields public final BitmapDescriptor bitmapDescriptor

Descriptor of the bitmap to be overlaid at the start or end vertex.

public final float refWidth

Reference 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.

Parameters bitmapDescriptor Descriptor of the bitmap to be used. Must not be 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)).

Parameters bitmapDescriptor Descriptor of the bitmap to be used. Must not be 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