# Class: RangeTheme

## RangeTheme()

#### new RangeTheme()

范围专题图

Source:
  - RangeTheme.js, line 14

### Methods

#### (async, static) append(rangeThemeInfo) → {int}

添加项

##### Parameters:

Name | Type | Description
--- | --- | ---
`rangeThemeInfo` | Object | 范围专题图项信息

Source:
  - RangeTheme.js, line 171

##### Returns:

成功返回项索引

Type
  int

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

清空所有的项

Source:
  - RangeTheme.js, line 221

##### Returns:

true-成功 ；false-失败

Type
  boolean

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

创建一个新的RangeTheme对象

Source:
  - RangeTheme.js, line 37

##### Returns:

Type
  Promise.<RangeTheme>

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

获取专题图类型

Source:
  - RangeTheme.js, line 135

##### Returns:

返回专题图类型，例：AllOtherDataItemInfoSource.DefaultThemeInfo

Type
  int

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

获取项数目

Source:
  - RangeTheme.js, line 120

##### Returns:

Type
  int

#### (async, static) getDefaultInfo() → {Promise.<ThemeInfo>}

获取缺省专题绘制信息

Source:
  - RangeTheme.js, line 54

##### Returns:

缺省专题绘制信息

Type
  Promise.<ThemeInfo>

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

获取字段表达式

Source:
  - RangeTheme.js, line 90

##### Returns:

Type
  String

#### (async, static) getItem(index) → {Promise.<RangeThemeInfo>}

获取项信息

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | Number | 范围专题图项索引（int类型的Number）

Source:
  - RangeTheme.js, line 258

##### Returns:

成功返回项的信息

Type
  Promise.<RangeThemeInfo>

#### (async, static) indexOf(value) → {int}

寻找值为value的项索引

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | String | 属性值

Source:
  - RangeTheme.js, line 206

##### Returns:

成功返回包含此值的项索引

Type
  int

#### (async, static) remove(index) → {boolean}

删除项（删除之后的语义是图元用未分类字段的颜色）

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | int | 范围专题图项索引

Source:
  - RangeTheme.js, line 190

##### Returns:

true-成功 ；false-失败

Type
  boolean

#### (async, static) setAllOtherDataItemInfoSource(allOtherDataItemInfoSource) → {Promise.<Void>}

设置专题图类型

##### Parameters:

Name | Type | Description
--- | --- | ---
`allOtherDataItemInfoSource` | int | 专题图类型 例：AllOtherDataItemInfoSource.DefaultThemeInfo

Source:
  - RangeTheme.js, line 153

##### Returns:

Type
  Promise.<Void>

#### (async, static) setDefaultInfo(themeInfo) → {Promise.<Void>}

设置缺省专题绘制信息

##### Parameters:

Name | Type | Description
--- | --- | ---
`themeInfo` | Object | 专题绘制信息

Source:
  - RangeTheme.js, line 76

##### Returns:

Type
  Promise.<Void>

#### (async, static) setExpression(expression) → {Promise.<Void>}

设置字段表达式

##### Parameters:

Name | Type | Description
--- | --- | ---
`expression` | String | 字段表达式

Source:
  - RangeTheme.js, line 106

##### Returns:

Type
  Promise.<Void>

#### (async, static) setItem(index, {Object)) → {boolean}

设置项信息

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | Number | 范围专题图项索引（int类型的Number）
`{Object)` |  | rangeThemeInfo 范围专题图项信息

Source:
  - RangeTheme.js, line 238

##### Returns:

true-成功 ；false-失败

Type
  boolean