public class LayerGroup extends Layer
限定符和类型 | 方法和说明 |
---|---|
void |
add(Layer layer)
向当前分组图层中添加新的图层。
|
LayerGroup |
addGroup(String groupName)
向当前分组图层中添加一个新的分组图层,即嵌套一个分组图层。
|
void |
addLayerAddedListener(LayerAddedListener l)
添加一个用于接收向分组图层添加图层结束事件(
LayerAddedEvent )的监听器。 |
void |
addLayerRemovedListener(LayerRemovedListener l)
添加一个用于接收从分组图层移除图层结束事件(
LayerRemovedEvent )的监听器。 |
Layer |
findLayer(String layerName)
返回指定图层名称的图层对象。
|
Layer |
get(int index)
根据指定的索引值返回对应的图层。
|
String |
getAvailableCaption(String layerCaption)
获取可用的别名,如果别名已被占用,则在别名尾部增加数值
|
int |
getCount()
返回当前分组图层中所管理的图层个数。
|
int |
indexOf(Layer layer)
返回指定图层在当前分组图层下的索引值。
|
void |
insert(int index,
Layer layer)
向当前分组图层中的指定位置插入新的图层。
|
LayerGroup |
insertGroup(int index,
String groupName)
向当前分组图层中的指定索引位置添加一个新的分组图层,即嵌套一个分组图层。
|
Layer |
insertLayer(int index,
String layerXml)
插入图层到对应位置
|
boolean |
remove(Layer layer)
从分组图层中移除指定的图层。
|
boolean |
removeGroup(LayerGroup group)
从当前分组图层中移除指定的分组图层。
|
void |
removeLayerAddedListener(LayerAddedListener l)
移除一个用于接收向分组图层添加图层结束事件(
LayerAddedEvent )的监听器。 |
void |
removeLayerRemovedListener(LayerRemovedListener l)
移除一个用于接收从分组图层移除图层结束事件(
LayerRemovedEvent )的监听器。 |
boolean |
ungroup()
取消当前分组图层的分组管理,取消后,当前分组图层下的所有内容将移到当前分组图层的上一级进行管理。
|
addCaptionChangedListener, addEditableChangedListener, addElementDrawingListener, addGridFunction, addSelectableChangedListener, addSnapableChangedListener, addVisibleChangedListener, checkLayerSubType, clearThemeElementPositions, fromXML, getAdditionalSetting, getBlendMode, getBounds, getCaption, getClipRegion, getDataset, getDeduplicateThreshold, getDeduplicateTolerance, getDescription, getDisplayControledLayer, getDisplayFilter, getDisplayFilterStr, getExtensionPlugin, getExtensionUserInfo, getExternalInfo, getFieldValuesDisplayFilter, getFillMarkerOrder, getGridFunctionArgs, getGridFunctionType, getGridFunctonCount, getLayerWeight, getMap, getMaxVisibleScale, getMinVisibleGeometrySize, getMinVisibleScale, getName, getOpaqueRate, getOverlapGeometryPixel, getOverlapGeometryThreshold, getParentGroup, getParentSnapshot, getRepresentationField, getSelection, getSource, getSubLayerType, getSubType, getSymbolScale, getTheme, getThemeElementPosition, getTimeEndField, getTimeFilterEnding, getTimeFilterStarting, getTimeStartField, getTimeStepInterval, getValueExpressions, hitTest, hitTest, hitTest, hitTestGeoCompound, isAntialias, isClipRegionEnabled, isCompleteLineSymbolDisplayed, isCrossroadOptimized, isDeduplicateEnabled, isDiposed, isDisposed, isEditable, isFullLabelEnabled, isInteroperable, isLayerCacheEnabled, isModified, isOverlapDisplayed, isOverlapGeometryEnabled, isRepresentationEnabled, isSelectable, isSnapable, isSuperAndSubScript, isSwipeEnabled, isSymbolScalable, IsTimeFilterEnable, isVisible, isVisibleScale, removeCaptionChangedListener, removeEditableChangedListener, removeElementDrawingListener, removeGridFunction, removeSelectableChangedListener, removeSnapableChangedListener, removeThemeElementPosition, removeVisibleChangedListener, setAdditionalSetting, setAntialias, setBlendMode, setCaption, setClipRegion, setClipRegionEnabled, setCompleteLineSymbolDisplayed, setCrossroadOptimized, setDataset, setDeduplicateEnabled, setDeduplicateThreshold, setDeduplicateTolerance, setDescription, setDisplayControledLayer, setDisplayFilter, setDisplayFilterStr, setEditable, setExtensionUserInfo, setExternalInfo, setFillMarkerOrder, setFullLabelEnabled, setInteroperable, SetLayerCacheEnabled, SetLayerCacheRefresh, setLayerWeight, setMaxVisibleScale, setMinVisibleGeometrySize, setMinVisibleScale, setModified, setOpaqueRate, setOverlapDisplayed, setOverlapGeometryEnabled, setOverlapGeometryPixel, setOverlapGeometryThreshold, setRepresentationEnabled, setRepresentationField, setSelectable, setSelection, setSnapable, setSource, setSource, setSuperAndSubScript, setSwipeEnabled, setSymbolScalable, setSymbolScale, setThemeElementPosition, setTimeEndField, setTimeFilterEnable, setTimeFilterEnding, setTimeFilterStarting, setTimeStartField, setTimeStepInterval, setValueExpressions, setVisible, themeSymbolsToGeometries, themeSymbolsToGeometrys, themeToDatasetVector, toXML
public int getCount()
public Layer get(int index)
index
- 指定的索引值。public int indexOf(Layer layer)
layer
- 指定的要获取索引值的图层。public void add(Layer layer)
layer
- 指定的要添加到当前分组图层中的图层。public void insert(int index, Layer layer)
index
- 指定的索引值,新图层将插入到该位置。layer
- 指定的要插入的新图层。public Layer insertLayer(int index, String layerXml)
index
- 所要插入的位置索引layerXml
- 所要插入的图层xmlIllegalStateException
- 当前对象已被释放IllegalArgumentException
- 参数异常public boolean remove(Layer layer)
layer
- 要移除的图层。public LayerGroup addGroup(String groupName)
groupName
- 新的分组图层的名称。public LayerGroup insertGroup(int index, String groupName)
index
- 指定的索引值。groupName
- 新的分组图层的名称。public boolean removeGroup(LayerGroup group)
group
- 指定的要移除的分组图层。public boolean ungroup()
public void addLayerAddedListener(LayerAddedListener l)
LayerAddedEvent
)的监听器。l
- 一个用于接收向分组图层添加图层结束事件的监听器。public void removeLayerAddedListener(LayerAddedListener l)
LayerAddedEvent
)的监听器。l
- 一个用于接收从分组图层移除图层结束事件的监听器。public void addLayerRemovedListener(LayerRemovedListener l)
LayerRemovedEvent
)的监听器。l
- 一个用于接收从分组图层移除图层结束事件的监听器。public void removeLayerRemovedListener(LayerRemovedListener l)
LayerRemovedEvent
)的监听器。l
- 一个用于接收从分组图层移除图层结束事件的监听器。public String getAvailableCaption(String layerCaption)
layerCaption
- 所要查询的别名IllegalStateException
- 当前对象已被释放IllegalArgumentException
- 参数为空Copyright © 2021–2024 SuperMap. All rights reserved.