Class Info |
|---|
public final class CustomCap extends Cap 继承Cap类,用于自定义折线端点样式。 |
Qualifier and Type | Field and Description |
|---|---|
public final BitmapDescriptor | bitmapDescriptor 用于定义覆盖在折线起始顶点和末端顶点的Bitmap图像。 |
public final float | refWidth 参考宽度,单位:像素。 |
Constructor Name |
|---|
CustomCap(@NonNull BitmapDescriptor bitmap, float bitmapRefWidth) 使用给定参数创建CustomCap对象。 |
CustomCap(@NonNull BitmapDescriptor bitmap) 使用给定参数创建CustomCap对象。 |
Constructor |
|---|
public CustomCap(@NonNull BitmapDescriptor bitmap, float bitmapRefWidth) 使用给定参数创建CustomCap对象。 |
Parameters
Name | Description |
|---|---|
bitmap | 用于定义覆盖在折线起始顶点和末端顶点的Bitmap图像。 |
bitmapRefWidth | 参考宽度,单位:像素。 |
Constructor |
|---|
public CustomCap(@NonNull BitmapDescriptor bitmap) 使用给定参数创建CustomCap对象。 |
Parameters
Name | Description |
|---|---|
bitmap | 用于定义覆盖在折线起始顶点和末端顶点的Bitmap图像。 |