目录

CustomCap

Class Info

public final class CustomCap extends Cap

继承Cap类,用于自定义折线端点样式。

Public Field Summary

Qualifier and Type

Field and Description

public final BitmapDescriptor

bitmapDescriptor

用于定义覆盖在折线起始顶点和末端顶点的Bitmap图像。

public final float

refWidth

参考宽度,单位:像素。

Public Constructor Summary

Constructor Name

CustomCap(@NonNull BitmapDescriptor bitmap, float bitmapRefWidth)

使用给定参数创建CustomCap对象。

CustomCap(@NonNull BitmapDescriptor bitmap)

使用给定参数创建CustomCap对象。

Public Method Summary

Qualifier and Type

Method Name and Description

String

toString()

返回该对象的字符串表示。

Public Constructors

[h2]CustomCap(@NonNull BitmapDescriptor bitmap, float bitmapRefWidth)

Constructor

public CustomCap(@NonNull BitmapDescriptor bitmap, float bitmapRefWidth)

使用给定参数创建CustomCap对象。

Parameters

Name

Description

bitmap

用于定义覆盖在折线起始顶点和末端顶点的Bitmap图像。

bitmapRefWidth

参考宽度,单位:像素。

[h2]CustomCap(@NonNull BitmapDescriptor bitmap)

Constructor

public CustomCap(@NonNull BitmapDescriptor bitmap)

使用给定参数创建CustomCap对象。

Parameters

Name

Description

bitmap

用于定义覆盖在折线起始顶点和末端顶点的Bitmap图像。