# Class: LinePlaceInfo

## LinePlaceInfo()

#### new LinePlaceInfo()

线放置样式

Source:
  - LinePlaceInfo.js, line 11

### Methods

#### (async, static) createObj() → {Promise.<LinePlaceInfo>}

构造一个新LinePlaceInfo对象

Source:
  - LinePlaceInfo.js, line 22

##### Returns:

线标注对象

Type
  Promise.<LinePlaceInfo>

#### (async, static) getInterval() → {double}

获取步长

Source:
  - LinePlaceInfo.js, line 189

##### Returns:

Type
  double

#### (async, static) getOffset() → {double}

获取标注与线的偏移距离(设备单位)

Source:
  - LinePlaceInfo.js, line 69

##### Returns:

Type
  double

#### (async, static) getRepeatType() → {int}

获取重复类型

Source:
  - LinePlaceInfo.js, line 159

##### Returns:

重复类型 例：LineRepeatType.AutoRepeat

Type
  int

#### (async, static) getRestrictType() → {int}

获取偏移约束类型

Source:
  - LinePlaceInfo.js, line 99

##### Returns:

偏移约束类型 例：LineRestrictType.OnLine

Type
  int

#### (async, static) getSpreadType() → {int}

获取分布类型

Source:
  - LinePlaceInfo.js, line 129

##### Returns:

分布类型 例：LineSpreadType.AutoSpread

Type
  int

#### (async, static) getType() → {int}

获取线标注类型

Source:
  - LinePlaceInfo.js, line 39

##### Returns:

线标注类型 例：LinePlaceType.HorizationPlace

Type
  int

#### (async, static) setInterval(interval) → {Promise.<Void>}

设置步长

##### Parameters:

Name | Type | Description
--- | --- | ---
`interval` | double | 步长

Source:
  - LinePlaceInfo.js, line 205

##### Returns:

Type
  Promise.<Void>

#### (async, static) setOffset(offset) → {Promise.<Void>}

设置标注与线的偏移距离（设备单位）

##### Parameters:

Name | Type | Description
--- | --- | ---
`offset` | double | 标注与线的偏移距离

Source:
  - LinePlaceInfo.js, line 85

##### Returns:

Type
  Promise.<Void>

#### (async, static) setRepeatType(repeatType) → {Promise.<Void>}

设置重复类型

##### Parameters:

Name | Type | Description
--- | --- | ---
`repeatType` | int | 重复类型 例：LineRepeatType.AutoRepeat

Source:
  - LinePlaceInfo.js, line 175

##### Returns:

Type
  Promise.<Void>

#### (async, static) setRestrictType(restrictType) → {Promise.<Void>}

设置偏移约束类型

##### Parameters:

Name | Type | Description
--- | --- | ---
`restrictType` | int | 偏移约束类型 例：LineRestrictType.OnLine

Source:
  - LinePlaceInfo.js, line 115

##### Returns:

Type
  Promise.<Void>

#### (async, static) setSpreadType(spreadType) → {Promise.<Void>}

设置分布类型

##### Parameters:

Name | Type | Description
--- | --- | ---
`spreadType` | int | 分布类型，例：LineSpreadType.AutoSpread

Source:
  - LinePlaceInfo.js, line 145

##### Returns:

Type
  Promise.<Void>

#### (async, static) setType(linePlaceType) → {Promise.<Void>}

设置线标注类型

##### Parameters:

Name | Type | Description
--- | --- | ---
`linePlaceType` | int | 线标注类型 例：LinePlaceType.HorizationPlace

Source:
  - LinePlaceInfo.js, line 55

##### Returns:

Type
  Promise.<Void>