public class GeoEntityNode
extends com.supermap.data.InternalHandleDisposable
构造器和说明 |
---|
GeoEntityNode(String strName,
boolean bGroup)
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
void |
cancelGroup()
// 取消本分组,本分组的子节点添加到本分组的父节点下边。
|
GeoEntityNode |
createChildGroup(String strName)
// 如果本节点是分组节点,则给本组创建子组,并返回创建好的组。
|
void |
dispose()
释放对象
|
GeoEntityNode |
findNode(String strUUID)
// 根据UUID循环遍历查找对应节点
|
void |
fromXML(String strXML,
GeoEntityNode pRootNode)
// 从xml中读取。
|
ArrayList<GeoEntityNode> |
getChildNodes()
// 获取子节点数组
|
int |
getIndex(String strUUID)
// 在子组中找对应UUID对象的索引,找不到返回-1。
|
String |
getName()
// 获取组名
|
GeoEntityNode |
getParentNode()
// 获取父节点,根节点时返回值为NULL
|
String |
getUuid()
// 获取节点唯一标识,如果节点是地理实体,则唯一标示为实体的Uuid。
|
boolean |
isGroup()
// 获取是否是分组
|
boolean |
isRootNode()
// 是否是根组,返回true表示根组
|
void |
moveTo(String strUUID,
int nIndex)
// 把指定UUID的对象添加到当前分组的第几个位置。
|
void |
setName(String strName)
// 设置组名
|
String |
toXML()
// 将对象保存到xml。
|
public GeoEntityNode(String strName, boolean bGroup)
public void dispose()
public boolean isRootNode()
public boolean isGroup()
public String getUuid()
public String getName()
public void setName(String strName)
strName
- 组名public GeoEntityNode createChildGroup(String strName)
public void cancelGroup()
public GeoEntityNode getParentNode()
public ArrayList<GeoEntityNode> getChildNodes()
public GeoEntityNode findNode(String strUUID)
public int getIndex(String strUUID)
public void moveTo(String strUUID, int nIndex)
public void fromXML(String strXML, GeoEntityNode pRootNode)
public String toXML()
Copyright © 2021–2024 SuperMap. All rights reserved.