new GraphicStippleLine()
- Source:
Methods
(async, static) createObj(startPoint, endPoint) → {Promise.<GraphicStippleLine>}
构造一个新的 GraphicStippleLine 对象。
Parameters:
| Name | Type | Description |
|---|---|---|
startPoint |
Dot | 起点 |
endPoint |
Dot | 终点 |
- Source:
Returns:
- Type
- Promise.<GraphicStippleLine>
(async, static) getEndPoint() → {Promise.<Dot>}
获取终点的坐标点
- Source:
Returns:
终点的坐标点
- Type
- Promise.<Dot>
(async, static) getIntervalLength() → {Number}
获取虚线间隔长度
- Source:
Returns:
虚线间隔长度 (int类型的number)
- Type
- Number
(async, static) getLength() → {Number}
获取线长度
- Source:
Returns:
线长度 (Double类型的number)
- Type
- Number
(async, static) getLineWidth() → {Number}
获取线的宽度
- Source:
Returns:
线的宽度 (Double类型的number)
- Type
- Number
(async, static) getSegLength() → {Number}
获取虚线长度
- Source:
Returns:
虚线长度 (int类型的number)
- Type
- Number
(async, static) getStartPoint() → {Promise.<Dot>}
获取起点的坐标点
- Source:
Returns:
起点的坐标点
- Type
- Promise.<Dot>
(async, static) setEndPoint(point) → {Promise.<void>}
设置终点
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Dot | 终点 |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setIntervalLength(len) → {Promise.<void>}
设置虚线间隔长度
Parameters:
| Name | Type | Description |
|---|---|---|
len |
Number | 虚线间隔长度 (int类型的Number) |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setLineWidth(width) → {Promise.<void>}
设置线宽
Parameters:
| Name | Type | Description |
|---|---|---|
width |
Number | 线宽 (Double类型的number) |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setSegLength(len) → {Promise.<void>}
设置虚线段长度
Parameters:
| Name | Type | Description |
|---|---|---|
len |
Number | 虚线段长度 (int类型的Number) |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setStartPoint(point) → {Promise.<void>}
设置起点
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Dot | 起点 |
- Source:
Returns:
- Type
- Promise.<void>