com.supermap.mapping

类 LayerExtensionBase

    • 构造器详细资料

      • LayerExtensionBase

        public LayerExtensionBase(long handle)
        构建拓展图层
        参数:
        handle - 拓展图层对象的句柄
    • 方法详细资料

      • OnDraw

        public void OnDraw(MapPainter painter)
      • FromXML

        public void FromXML(String xml)
      • setBounds

        public void setBounds(Rectangle2D bounds)
        设置拓展图层的范围
        参数:
        bounds - 拓展图层的范围
        抛出:
        IllegalStateException - 当前对象已被释放
      • getExtensionType

        public int getExtensionType()
        获取拓展类型
        返回:
        拓展类型
        抛出:
        IllegalStateException - 当前对象已被释放
      • setExtensionType

        public void setExtensionType(int type)
        设置拓展类型
        参数:
        type - 拓展类型
        抛出:
        IllegalStateException - 当前对象已被释放
      • dispose

        public void dispose()
        销毁当前拓展图层对象
        指定者:
        dispose 在接口中 IDisposable
      • addLayerExtensionBaseCreatedListener

        public static void addLayerExtensionBaseCreatedListener(LayerExtensionBaseCreatedListener l)
        添加拓展图层创建后监听器
        参数:
        l - 创建后监听器
      • removeLayerExtensionBaseCreatedListener

        public static void removeLayerExtensionBaseCreatedListener(LayerExtensionBaseCreatedListener l)
        移除拓展图层创建后监听器
        参数:
        l - 创建后监听器
      • hitTest

        public boolean hitTest(Point2D pt,
                               double tolerance,
                               String resultExpression,
                               ArrayList<GeoText> testResult)
        从类复制的说明: Layer
        返回选中的专题元素。若指定的点与专题元素上最近点的距离是在指定的容限范围,则该专题元素被选中。目前只支持标签专题图,
        覆盖:
        hitTest 在类中 Layer
        参数:
        pt - 要测试的点。
        tolerance - 指定的容限。
        resultExpression - 指定的字段表达式,设置该字段表达式之后可以,可以从结果中取到特定的专题元素对应的几何对象的相关数据。
        testResult - 用于存储该方法得到的专题图元素,在没有得到满足条件的对象时,该参数对象的长度为 0,该参数不能为 null。
        返回:
        返回是否得到了专题图元素,true 表示通过该方法得到了专题元素。

Copyright © 2021–2024 SuperMap. All rights reserved.