com.supermap.mobjects.situation
类 ChildPlotLayers
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.mobjects.situation.ChildPlotLayers
-
- 所有已实现的接口:
- IDisposable
public class ChildPlotLayers extends com.supermap.data.InternalHandleDisposable
子图层集合类。该类对一个图元层对象中的所有子图层进行管理。该类中提供了子图层的添加、删除以及移动等的方法。
-
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 void
add(ChildPlotLayer childPlotLayer, boolean bAddToHead)
添加一个子图层对象到此子图层集合中。ChildPlotLayer
add(String strName, boolean bAddToHead)
添加一个子图层对象到此子图层集合中。void
clear()
清空此子图层集合。void
dispose()
释放对象。ChildPlotLayer
get(int index)
返回此子图层集合中指定索引位置的子图层对象。ChildPlotLayer
getChildParent()
返回此子图层集合所在的父子图层对象。int
getCount()
返回此子图层集合中子图层对象的总数。PlotLayer
getParent()
返回此子图层集合所在的图元层对象。PlotLayer
getPlotLayer()
返回此子图层集合所在的图元层对象。int
indexOf(ChildPlotLayer childPlotLayer)
返回子图层对象在此子图层集合中的索引。void
insert(int index, ChildPlotLayer childPlotLayer)
在指定的索引位置添加一个子图层对象到此子图层集合中。ChildPlotLayer
insert(int index, String strName)
boolean
moveDown(int index)
将此子图层集合中指定索引的子图层往下移动一层。boolean
moveTo(int srcIndex, int desIndex)
将此子图层集合中指定索引的子图层往目标图层集指定位置。boolean
moveToBottom(int index)
将此子图层集合中指定索引的子图层移动到最底层。boolean
moveToTop(int index)
将此子图层集合中指定索引的子图层移动到最顶层。boolean
moveUp(int index)
将此子图层集合中指定索引的子图层往上移动一层。void
remove(int index)
移除此子图层集合中指定索引位置的子图层对象。
-
-
-
方法详细资料
-
getCount
public int getCount()
返回此子图层集合中子图层对象的总数。- 返回:
- 此子图层集合中子图层对象的总数。
- 默认值:
- 默认值为 0,即子图层集合中没有子图层对象。
-
get
public ChildPlotLayer get(int index)
返回此子图层集合中指定索引位置的子图层对象。- 参数:
index
- 要返回的子图层的索引位置。- 返回:
- 此子图层集合中指定索引位置的子图层对象。
-
clear
public void clear()
清空此子图层集合。
-
remove
public void remove(int index)
移除此子图层集合中指定索引位置的子图层对象。- 参数:
index
- 要移除的子图层的索引位置。
-
add
public void add(ChildPlotLayer childPlotLayer, boolean bAddToHead)
添加一个子图层对象到此子图层集合中。- 参数:
childPlotLayer
- 添加的子图层。bAddToHead
- 指定新创建子图层是否放在子图层集合的最上面一层。当设置为 false 时,则将此新创建子图层放在最底层。
-
add
public ChildPlotLayer add(String strName, boolean bAddToHead)
添加一个子图层对象到此子图层集合中。- 参数:
strName
- 添加的子图层的名称。bAddToHead
- 指定新创建子图层是否放在子图层集合的最上面一层。当设置为 false 时,则将此新创建子图层放在最底层。- 返回:
- 新添加的子图层对象。
-
insert
public ChildPlotLayer insert(int index, String strName)
-
insert
public void insert(int index, ChildPlotLayer childPlotLayer)
在指定的索引位置添加一个子图层对象到此子图层集合中。- 参数:
index
- 指定要添加子图层对象的索引位置strName
- 添加的子图层的名称。
-
indexOf
public int indexOf(ChildPlotLayer childPlotLayer)
返回子图层对象在此子图层集合中的索引。- 参数:
childPlotLayer
- 要查找的子图层对象。- 返回:
- 找到指定子图层则返回子图层索引,否则返回-1。
-
moveTo
public boolean moveTo(int srcIndex, int desIndex)
将此子图层集合中指定索引的子图层往目标图层集指定位置。- 参数:
srcIndex
- 要移动的子图层的索引。desIndex
- 目标索引。- 返回:
- 移动成功返回 true,否则返回 false。
-
moveDown
public boolean moveDown(int index)
将此子图层集合中指定索引的子图层往下移动一层。- 参数:
index
- 要移动的子图层的索引。- 返回:
- 移动成功返回 true,否则返回 false。
-
moveUp
public boolean moveUp(int index)
将此子图层集合中指定索引的子图层往上移动一层。- 参数:
index
- 要移动的子图层的索引。- 返回:
- 移动成功返回 true,否则返回 false。
-
moveToBottom
public boolean moveToBottom(int index)
将此子图层集合中指定索引的子图层移动到最底层。- 参数:
index
- 要移动到最底层的子图层的索引。- 返回:
- 移动成功返回 true,否则返回 false。
-
moveToTop
public boolean moveToTop(int index)
将此子图层集合中指定索引的子图层移动到最顶层。- 参数:
index
- 要移动到最顶层的子图层的索引。- 返回:
- 移动成功返回 true,否则返回 false。
-
getChildParent
public ChildPlotLayer getChildParent()
返回此子图层集合所在的父子图层对象。- 返回:
- 此子图层集合所在的父子图层对象。
-
getParent
public PlotLayer getParent()
返回此子图层集合所在的图元层对象。- 返回:
- 此子图层所在的图元层对象。
-
getPlotLayer
public PlotLayer getPlotLayer()
返回此子图层集合所在的图元层对象。- 返回:
- 此子图层集合所在的图元层对象。
-
dispose
public void dispose()
释放对象。
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.