com.supermap.mapping

类 ThemeGridUnique

  • 所有已实现的接口:
    IDisposable


    public class ThemeGridUnique
    extends Theme
    栅格单值专题图
    • 构造器详细资料

      • ThemeGridUnique

        public ThemeGridUnique()
        单值默认构造函数
    • 方法详细资料

      • getCount

        public int getCount()
        获取单值数量
        返回:
        数量值
        抛出:
        IllegalStateException - 当前对象已被释放
      • getDefaultColor

        public Color getDefaultColor()
        获取默认颜色
        返回:
        颜色值
        抛出:
        IllegalStateException - 当前对象已被释放
      • 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()
        删除所有分段值
      • indexOf

        public int indexOf(double unique)
        获取单值对应的索引
        参数:
        unique - 单值
        返回:
        索引值
        抛出:
        IllegalStateException - 当前对象已被释放
      • reverseColor

        public void reverseColor()
        反转颜色序列
        抛出:
        IllegalStateException - 当前对象已被释放
      • toString

        public String toString()
        从类复制的说明: Theme
        输出专题图格式化字符串。格式化字符串提供专题图的相关设置信息,与 XML 字符串不同的是,格式化字符串不可导入显示专题图,只用于提供专题图的相关信息。
        1. 对于栅格分段专题图,其格式为{Caption=”china”, Start=10 End=20, Visible=true?false, Style={linestyle=,markerstyle=,fillstyle=} };
        2. 对于栅格单值专题图,其格式为{Caption=”china”, Unique =20, Visible=true?false, Style={linestyle=,markerstyle=,fillstyle=} };
        3. 对于标签专题图,其格式为{Caption=”China”, Start=10 End=20, Visible=true, Style={name=,width=,height=,color=()} };
        4. 对于分段专题图,其格式为{Caption=”china”, Start=10 End=20, Visible=true?false, Style={linestyle=,markerstyle=,fillstyle=};
        5. 对于单值专题图,其格式为{Caption=”china”, Unique =20, Visible=true?false, Style={linestyle=,markerstyle=,fillstyle=} }。
        指定者:
        toString 在类中 Theme
        返回:
        专题图的格式化字符串。
      • dispose

        public void dispose()
      • fromXML

        public boolean fromXML(String xml)
        从类复制的说明: Theme
        从 XML 字符串中导入专题图信息。

        在 SuperMap 中,各种专题图的风格的设置都可以导出成 XML 格式的字符串,此 XML 格式的字符串中记录了关于这种专题图的所有设置,如对于标签专题图的 XML 格式字符串会记录专题图类型,可见比例尺,标签风格的设置,是否流动显示,是否自动避让等等对该标签专题图的所有风格的设置以及用来制作标签专题图的字段或表达式。这种 XML 格式字符串可以用来导入,对专题图进行设置。

        覆盖:
        fromXML 在类中 Theme
        参数:
        xml - 包含专题图信息的 XML 字符串。
        返回:
        一个布尔值,导入成功返回 true,否则返回 false。
      • 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–2024 SuperMap. All rights reserved.