public static final class PolylineOptions.Text.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(java.util.List<PolylineOptions.SegmentText> segmentTexts) |
Builder(PolylineOptions.SegmentText segmentText) |
Modifier and Type | Method and Description |
---|---|
PolylineOptions.Text.Builder |
addAllSegmentText(java.util.List<PolylineOptions.SegmentText> segmentTexts)
添加多个文字段
|
PolylineOptions.Text.Builder |
addSegmentText(PolylineOptions.SegmentText segmentText)
添加一个文字段
|
PolylineOptions.Text |
build()
构建 Text
|
PolylineOptions.Text.Builder |
color(int color)
设置文字颜色
|
PolylineOptions.Text.Builder |
priority(PolylineOptions.TextPriority priority)
文字展示的优先级
|
PolylineOptions.Text.Builder |
size(int size)
文字尺寸
|
PolylineOptions.Text.Builder |
strokeColor(int color)
设置文字描边颜色
|
public Builder(PolylineOptions.SegmentText segmentText)
public Builder(java.util.List<PolylineOptions.SegmentText> segmentTexts)
public PolylineOptions.Text.Builder addSegmentText(PolylineOptions.SegmentText segmentText)
segmentText
- public PolylineOptions.Text.Builder addAllSegmentText(java.util.List<PolylineOptions.SegmentText> segmentTexts)
segmentTexts
- public PolylineOptions.Text.Builder color(int color)
color
- int 表示的 ARGB 32 位颜色public PolylineOptions.Text.Builder strokeColor(int color)
color
- int 表示的 ARGB 32 位颜色public PolylineOptions.Text.Builder size(int size)
size
- public PolylineOptions.Text.Builder priority(PolylineOptions.TextPriority priority)
priority
- 优先级 PolylineOptions.TextPriority.NORMAL
or PolylineOptions.TextPriority.HIGH
如果只有一条线上的文字优先级为 PolylineOptions.TextPriority.HIGH
,
则可以保证这条线上的文字全部展示出来public PolylineOptions.Text build()