# Class: Label

## Label()

#### new Label()

标注

Source:
  - Label.js, line 11

### Methods

#### (async, static) getName() → {String}

获取名称

Source:
  - Label.js, line 67

##### Returns:

Type
  String

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

获取标注类型

Source:
  - Label.js, line 22

##### Returns:

标注类型（int范围的Number；例：256-LabelType.SimpleLabel）

Type
  Number

#### (async, static) getVisible() → {boolean}

获取可见性

Source:
  - Label.js, line 37

##### Returns:

Type
  boolean

#### (async, static) setName(name) → {Promise.<Void>}

设置标注名称

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | String | 名称

Source:
  - Label.js, line 82

##### Returns:

Type
  Promise.<Void>

#### (async, static) setVisible(visible) → {Promise.<Void>}

设置可见性

##### Parameters:

Name | Type | Description
--- | --- | ---
`visible` | boolean | 可见性

Source:
  - Label.js, line 53

##### Returns:

Type
  Promise.<Void>