Methods
(async, static) append(rangeThemeInfo) → {int}
添加项
Parameters:
| Name | Type | Description |
|---|---|---|
rangeThemeInfo |
Object | 范围专题图项信息 |
- Source:
Returns:
成功返回项索引
- Type
- int
(async, static) clear() → {boolean}
清空所有的项
- Source:
Returns:
true-成功 ;false-失败
- Type
- boolean
(async, static) createObj() → {Promise.<RangeTheme>}
创建一个新的RangeTheme对象
- Source:
Returns:
- Type
- Promise.<RangeTheme>
(async, static) getAllOtherDataItemInfoSource() → {int}
获取专题图类型
- Source:
Returns:
返回专题图类型,例:AllOtherDataItemInfoSource.DefaultThemeInfo
- Type
- int
(async, static) getCount() → {int}
获取项数目
- Source:
Returns:
- Type
- int
(async, static) getDefaultInfo() → {Promise.<ThemeInfo>}
获取缺省专题绘制信息
- Source:
Returns:
缺省专题绘制信息
- Type
- Promise.<ThemeInfo>
(async, static) getExpression() → {String}
获取字段表达式
- Source:
Returns:
- Type
- String
(async, static) getItem(index) → {Promise.<RangeThemeInfo>}
获取项信息
Parameters:
| Name | Type | Description |
|---|---|---|
index |
Number | 范围专题图项索引(int类型的Number) |
- Source:
Returns:
成功返回项的信息
- Type
- Promise.<RangeThemeInfo>
(async, static) indexOf(value) → {int}
寻找值为value的项索引
Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | 属性值 |
- Source:
Returns:
成功返回包含此值的项索引
- Type
- int
(async, static) remove(index) → {boolean}
删除项(删除之后的语义是图元用未分类字段的颜色)
Parameters:
| Name | Type | Description |
|---|---|---|
index |
int | 范围专题图项索引 |
- Source:
Returns:
true-成功 ;false-失败
- Type
- boolean
(async, static) setAllOtherDataItemInfoSource(allOtherDataItemInfoSource) → {Promise.<Void>}
设置专题图类型
Parameters:
| Name | Type | Description |
|---|---|---|
allOtherDataItemInfoSource |
int | 专题图类型 例:AllOtherDataItemInfoSource.DefaultThemeInfo |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setDefaultInfo(themeInfo) → {Promise.<Void>}
设置缺省专题绘制信息
Parameters:
| Name | Type | Description |
|---|---|---|
themeInfo |
Object | 专题绘制信息 |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setExpression(expression) → {Promise.<Void>}
设置字段表达式
Parameters:
| Name | Type | Description |
|---|---|---|
expression |
String | 字段表达式 |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setItem(index, {Object)) → {boolean}
设置项信息
Parameters:
| Name | Type | Description |
|---|---|---|
index |
Number | 范围专题图项索引(int类型的Number) |
{Object) |
rangeThemeInfo 范围专题图项信息 |
- Source:
Returns:
true-成功 ;false-失败
- Type
- boolean