com.supermap.mapping
类 ThemeGridUnique
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.mapping.Theme
-
- com.supermap.mapping.ThemeGridUnique
-
- 所有已实现的接口:
- IDisposable
public class ThemeGridUnique extends Theme
栅格单值专题图
-
-
构造器概要
构造器 构造器和说明 ThemeGridUnique()单值默认构造函数ThemeGridUnique(ThemeGridUnique themeGridUnique)单值构造函数
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 限定符和类型 方法和说明 intadd(ThemeGridUniqueItem item)添加一个分段值voidclear()删除所有分段值voiddispose()booleanfromXML(String xml)从 XML 字符串中导入专题图信息。intgetCount()获取单值数量ColorgetDefaultColor()获取默认颜色ThemeGridUniqueItemgetItem(int index)获取单值子项intGetSpecialValue()已过时。ColorgetSpecialValueColor()获取特殊值颜色doublegetThemeSpecialValue()获取特殊值intindexOf(double unique)获取单值对应的索引booleaninsert(int index, ThemeGridUniqueItem item)插入一个分段值booleanisSpecialValueTransparent()获取是否特殊值透明static ThemeGridUniquemakeDefault(DatasetGrid dataset)制作默认单值专题图static ThemeGridUniquemakeDefault(DatasetGrid dataset, ColorGradientType colorGradientType)制作默认单值专题图booleanremove(int index)根据索引删除一个分段值voidreverseColor()反转颜色序列voidsetDefaultColor(Color color)设置默认颜色voidsetSpecialValue(int nSpecialValue)已过时。voidsetSpecialValueColor(Color value)设置特殊值颜色voidsetSpecialValueTransparent(boolean bSpecialValueTransparent)设置是否特殊值透明voidsetThemeSpecialValue(double specialValue)设置特殊值StringtoString()输出专题图格式化字符串。-
从类继承的方法 com.supermap.mapping.Theme
getMemoryData, getThemeWeight, getType, setMemoryData, setThemeWeight, toXML
-
-
-
-
构造器详细资料
-
ThemeGridUnique
public ThemeGridUnique()
单值默认构造函数
-
ThemeGridUnique
public ThemeGridUnique(ThemeGridUnique themeGridUnique)
单值构造函数- 参数:
themeGridUnique-- 抛出:
IllegalArgumentException- 非法参数
-
-
方法详细资料
-
getItem
public ThemeGridUniqueItem getItem(int index)
获取单值子项- 参数:
index- 索引- 返回:
- 单值子项
- 抛出:
IllegalStateException- 当前对象已被释放
-
getCount
public int getCount()
获取单值数量- 返回:
- 数量值
- 抛出:
IllegalStateException- 当前对象已被释放
-
getDefaultColor
public Color getDefaultColor()
获取默认颜色- 返回:
- 颜色值
- 抛出:
IllegalStateException- 当前对象已被释放
-
setDefaultColor
public void setDefaultColor(Color color)
设置默认颜色- 参数:
color- 颜色值- 抛出:
IllegalStateException- 当前对象已被释放IllegalArgumentException- 参数非法
-
add
public int add(ThemeGridUniqueItem item)
添加一个分段值- 参数:
item- 分段值对象- 返回:
- 添加后的索引
-
insert
public boolean insert(int index, ThemeGridUniqueItem item)插入一个分段值- 参数:
index- 索引item- 分段值对象- 返回:
- 是否成功
-
remove
public boolean remove(int index)
根据索引删除一个分段值- 参数:
index- 索引- 返回:
- 是否成功
-
clear
public void clear()
删除所有分段值
-
makeDefault
public static ThemeGridUnique makeDefault(DatasetGrid dataset, ColorGradientType colorGradientType)
制作默认单值专题图- 参数:
dataset- 数据集colorGradientType- 颜色渐变类型- 返回:
- 专题图实例
- 抛出:
IllegalStateException- 当前对象已被释放
-
makeDefault
public static ThemeGridUnique makeDefault(DatasetGrid dataset)
制作默认单值专题图- 参数:
dataset- 数据集- 返回:
- 专题图实例
- 抛出:
IllegalArgumentException- 非法参数
-
indexOf
public int indexOf(double unique)
获取单值对应的索引- 参数:
unique- 单值- 返回:
- 索引值
- 抛出:
IllegalStateException- 当前对象已被释放
-
reverseColor
public void reverseColor()
反转颜色序列- 抛出:
IllegalStateException- 当前对象已被释放
-
toString
public String toString()
从类复制的说明:Theme输出专题图格式化字符串。格式化字符串提供专题图的相关设置信息,与 XML 字符串不同的是,格式化字符串不可导入显示专题图,只用于提供专题图的相关信息。- 对于栅格分段专题图,其格式为{Caption=”china”, Start=10 End=20, Visible=true?false, Style={linestyle=,markerstyle=,fillstyle=} };
- 对于栅格单值专题图,其格式为{Caption=”china”, Unique =20, Visible=true?false, Style={linestyle=,markerstyle=,fillstyle=} };
- 对于标签专题图,其格式为{Caption=”China”, Start=10 End=20, Visible=true, Style={name=,width=,height=,color=()} };
- 对于分段专题图,其格式为{Caption=”china”, Start=10 End=20, Visible=true?false, Style={linestyle=,markerstyle=,fillstyle=};
- 对于单值专题图,其格式为{Caption=”china”, Unique =20, Visible=true?false, Style={linestyle=,markerstyle=,fillstyle=} }。
-
dispose
public void dispose()
-
fromXML
public boolean fromXML(String xml)
从类复制的说明:Theme从 XML 字符串中导入专题图信息。在 SuperMap 中,各种专题图的风格的设置都可以导出成 XML 格式的字符串,此 XML 格式的字符串中记录了关于这种专题图的所有设置,如对于标签专题图的 XML 格式字符串会记录专题图类型,可见比例尺,标签风格的设置,是否流动显示,是否自动避让等等对该标签专题图的所有风格的设置以及用来制作标签专题图的字段或表达式。这种 XML 格式字符串可以用来导入,对专题图进行设置。
-
setSpecialValueTransparent
public void setSpecialValueTransparent(boolean bSpecialValueTransparent)
设置是否特殊值透明- 参数:
bSpecialValueTransparent- 是否透明- 抛出:
IllegalStateException- 当前对象已被释放
-
isSpecialValueTransparent
public boolean isSpecialValueTransparent()
获取是否特殊值透明- 返回:
- 是否透明
- 抛出:
IllegalStateException- 当前对象已被释放
-
setSpecialValue
@Deprecated public void setSpecialValue(int nSpecialValue)
已过时。已经废弃 参见:setThemeSpecialValue- 抛出:
IllegalStateException- 当前对象已被释放
-
GetSpecialValue
@Deprecated public int GetSpecialValue()
已过时。已经废弃 参见:getThemeSpecialValue- 返回:
- 抛出:
IllegalStateException- 当前对象已被释放
-
setThemeSpecialValue
public void setThemeSpecialValue(double specialValue)
设置特殊值- 参数:
specialValue- 特殊值- 抛出:
IllegalStateException- 当前对象已被释放
-
getThemeSpecialValue
public double getThemeSpecialValue()
获取特殊值- 返回:
- 特殊值
- 抛出:
IllegalStateException- 当前对象已被释放
-
getSpecialValueColor
public Color getSpecialValueColor()
获取特殊值颜色- 返回:
- 返回颜色值
- 抛出:
IllegalStateException- 当前对象已被释放
-
setSpecialValueColor
public void setSpecialValueColor(Color value)
设置特殊值颜色- 参数:
value- 颜色值- 抛出:
IllegalStateException- 当前对象已被释放
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.