BMFPolyline class
折线
- Inheritance
- Object
- BMFOverlay
- BMFPolyline
Constructors
-
BMFPolyline({@required List<
BMFCoordinate> coordinates, @required List<int> indexs, 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, bool isThined: true, bool clickable: true, bool isKeepScale: false, bool isFocus: true, int zIndex: 0, bool visible: true}) - BMFPolyline构造方法
- BMFPolyline.fromMap(Map map)
- map => BMFPolyline
Properties
- clickable ↔ bool
-
是否可点击 [...]
read / write
-
colors
↔ List<
Color> -
颜色折线的colors 用于颜色绘制 [...]
read / write
-
coordinates
↔ List<
BMFCoordinate> -
经纬度数组
read / write
- dottedLine ↔ bool
-
设置折线是否虚线(Android独有) [...]
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- Id → String
-
获取id
read-only, inherited
-
indexs
↔ List<
int> -
分段索引(多纹理,多颜色折线请赋值)
read / write
- isFocus ↔ bool
-
是否可以被选中,获得焦点,默认true [...]
read / write
- isKeepScale ↔ bool
-
纹理宽、高是否保持原比例渲染,默认为false [...]
read / write
- isThined ↔ bool
-
是否抽稀 默认ture
read / write
- lineCapType ↔ BMFLineCapType
-
line头尾处理方式(不支持虚线) 默认普通头 LineCapButt, [...]
read / write
- lineDashType ↔ BMFLineDashType
-
虚线绘制样式 默认实折线 BMFLineDashTypeNone [...]
read / write
- lineJoinType ↔ BMFLineJoinType
-
line拐角处理方式(不支持虚线)默认平角衔接 LineJoinBevel, [...]
read / write
- methodChannel ↔ MethodChannel
-
获取channdel
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
textures
↔ List<
String> -
纹理折线的纹理图片路径 用于纹理绘制 [...]
read / write
- visible ↔ bool
-
overlay是否可见 [...]
read / write, inherited
- width ↔ int
-
线宽
read / write
- zIndex ↔ int
-
元素的堆叠顺序 [...]
read / write, inherited
Methods
-
fromMap(
Map map) → dynamic -
map -> dynamic
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toMap(
) → Map< String, Object> -
model -> map
override
-
toString(
) → String -
Returns a string representation of this object.
inherited
-
updateClickable(
bool clickable) → Future< bool> - 更新polyLine是否可点击 [...]
-
updateColors(
List< Color> colors, {List<int> indexs}) → Future<bool> - 更新colors [...]
-
updateCoordinates(
List< BMFCoordinate> coordinates, {List<int> indexs}) → Future<bool> - 更新经纬度数组 [...]
-
updateDottedLine(
bool dottedLine) → Future< bool> - 更新是否设置虚线 [...]
-
updateIndexs(
List< int> indexs) → Future<bool> - 更新索引 [...]
-
updateIsFocus(
bool isFocus) → Future< bool> - 更新是否可以被选中,获得焦点 [...]
-
updateIsKeepScale(
bool isKeepScale) → Future< bool> - 更新纹理宽、高是否保持原比例渲染 [...]
-
updateLineCapType(
BMFLineCapType lineCapType) → Future< bool> - 更新折线头尾处理方式 [...]
-
updateLineDashType(
BMFLineDashType lineDashType) → Future< bool> - 更新折线绘制样式 [...]
-
updateLineJoinType(
BMFLineJoinType lineJoinType) → Future< bool> - 更新折线拐角处理方式 [...]
-
updateTextures(
List< String> textures) → Future<bool> - 更新纹理textures (ios暂不支持)
-
updateThined(
bool isThined) → Future< bool> - 更新polyline是否抽稀
-
updateVisible(
bool visible) → Future< bool> - 更新polyline是否显示 [...]
-
updateWidth(
int width) → Future< bool> - 更新线宽
-
updateZIndex(
int zIndex) → Future< bool> - 更新z轴方向上的堆叠顺序 [...]
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited