BMFPolyline class

折线

Inheritance
Implemented types
Available Extensions

Constructors

BMFPolyline({required List<BMFCoordinate> coordinates, List<int>? indexs = const [], int? width = 5, List<Color>? colors = const [], List<String>? textures = const [], bool? dottedLine = true, BMFLineDashType? lineDashType = BMFLineDashType.LineDashTypeNone, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, BMFLineBloomMode? lineBloomMode = BMFLineBloomMode.LineBloomModeNone, double? lineBloomWidth = 0.0, double? lineBloomAlpha = 255.0, double? lineBloomGradientASPeed = 5.0, int? lineBloomBlurTimes = 0, int zIndex = 0, bool visible = true, Map? customMap})
BMFPolyline构造方法
BMFPolyline.colorline({required List<BMFCoordinate> coordinates, required Color strokerColor, int? width = 5, bool? dottedLine = true, BMFLineDashType? lineDashType = BMFLineDashType.LineDashTypeNone, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, BMFLineBloomMode? lineBloomMode = BMFLineBloomMode.LineBloomModeNone, double? lineBloomWidth = 0.0, double? lineBloomAlpha = 255.0, double? lineBloomGradientASPeed = 5.0, int? lineBloomBlurTimes = 0, int zIndex = 0, bool visible = true, Map? customMap})
单色折线构造方法
BMFPolyline.fromMap(Map map)
map => BMFPolyline
BMFPolyline.multiColorline({required List<BMFCoordinate> coordinates, required List<Color>? colors, required List<int>? indexs, int? width = 5, bool? dottedLine = true, BMFLineDashType? lineDashType = BMFLineDashType.LineDashTypeNone, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, BMFLineBloomMode? lineBloomMode = BMFLineBloomMode.LineBloomModeNone, double? lineBloomWidth = 0.0, double? lineBloomAlpha = 255.0, double? lineBloomGradientASPeed = 5.0, int? lineBloomBlurTimes = 0, int zIndex = 0, bool visible = true, Map? customMap})
多颜色折线构造方法
BMFPolyline.multiTextureline({required List<BMFCoordinate> coordinates, required List<String>? textures, required List<int>? indexs, int? width = 5, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true, Map? customMap})
多纹理折线构造方法
BMFPolyline.textureline({required List<BMFCoordinate> coordinates, required String texture, int? width = 5, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true, Map? customMap})
单纹理折线构造方法

Properties

bounds → Future<BMFCoordinateBounds?>
返回overlay外接矩形 since 3.1.0
read-onlyoverride
className ↔ String?
类名
read / writeinherited
clickable ↔ bool?
是否可点击
read / write
colors ↔ List<Color>?
颜色折线的colors 用于颜色绘制
read / write
coordinates ↔ List<BMFCoordinate>
经纬度数组
read / write
customMap ↔ Map?
开发者自定义字段
read / writeinherited
dottedLine ↔ bool?
设置折线是否虚线(Android独有)
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
Id → String
获取id
read-onlyinherited
id → String
获取id since 3.2.0
read-onlyinherited
indexs ↔ List<int>?
分段索引(多纹理,多颜色折线请赋值)
read / write
isFocus ↔ bool?
是否可以被选中,获得焦点,默认true
read / write
isKeepScale ↔ bool?
纹理宽、高是否保持原比例渲染,默认为false
read / write
isThined ↔ bool?
是否抽稀 默认ture
read / write
lineBloomAlpha ↔ double?
发光处透明度,取值范围 0 ~ 255,默认 255.0f;
read / write
lineBloomBlurTimes ↔ int?
设置模糊发光效果的模糊次数(1~10) 默认1次
read / write
lineBloomGradientASPeed ↔ double?
透明度渐变速度 取值范围 1.0f ~ 10.0f,默认值为 5.0f 注意:渐变发光模式下该属性生效
read / write
lineBloomMode BMFLineBloomMode?
发光模式,仅支持颜色实折线;
read / write
lineBloomWidth ↔ double?
发光处宽度,默认 0.0f;
read / write
lineCapType BMFLineCapType?
line头尾处理方式(不支持虚线) 默认普通头 LineCapButt,
read / write
lineDashType BMFLineDashType?
虚线绘制样式 默认实折线 BMFLineDashTypeNone
read / write
lineDirectionCross180 BMFLineDirectionCross180Type?
折线经度跨180所需字段 since 3.1.0
read / write
lineJoinType BMFLineJoinType?
line拐角处理方式(不支持虚线)默认平角衔接 LineJoinBevel,
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
textures ↔ List<String>?
纹理折线的纹理图片路径 用于纹理绘制
read / write
visible ↔ bool?
overlay是否可见
read / writeinherited
width ↔ int?
线宽
read / write
zIndex ↔ int?
元素的堆叠顺序
read / writeinherited

Methods

fromMap(Map map) → dynamic
map -> dynamic
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
model -> map
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited