|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapLayers
Provides access to layers.
IMapLayers provides access to a collection of properties and methods dealing with layers in a map. This includes special methods including those dealing with group layers.
Method Summary | |
---|---|
void |
addLayer(ILayer layer)
Adds a layer to the map. |
void |
addLayers(IEnumLayer layers,
boolean autoArrange)
Adds multiple layers to the map, arranging them nicely if specified. |
void |
clearLayers()
Removes all layers from the map. |
void |
deleteLayer(ILayer layer)
Deletes a layer from the map. |
ILayer |
getLayer(int index)
The layer at the given index. |
int |
getLayerCount()
Number of layers in the map. |
IEnumLayer |
getLayers(IUID uid,
boolean recursive)
The layers in the map of the type specified in the uid. |
void |
insertLayer(ILayer pLayer,
boolean autoArrange,
int position)
Inserts a layer at the given position. |
void |
insertLayerInGroup(IGroupLayer pGroup,
ILayer pLayer,
boolean autoArrange,
int position)
Inserts a layer at a given index of the map's group layer. |
void |
insertLayers(IEnumLayer pLayers,
boolean autoArrange,
int position)
Inserts layers at the given position. |
void |
insertLayersInGroup(IGroupLayer pGroup,
IEnumLayer pLayer,
boolean autoArrange,
int position)
Inserts layers at a given index of the map's group layer. |
boolean |
isLayerVisible(ILayer layer)
Check if layer is visible. |
void |
moveLayer(ILayer layer,
int toIndex)
Moves a layer to another position. |
void |
moveLayerEx(IGroupLayer pFromGroup,
IGroupLayer pToGroup,
ILayer pLayer,
int newPosition)
Moves the layer with in the map. |
Method Detail |
---|
int getLayerCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayer getLayer(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumLayer getLayers(IUID uid, boolean recursive) throws IOException, AutomationException
uid
- A reference to a com.esri.arcgis.system.IUID (in, optional, pass 0 if not required)recursive
- The recursive (in, optional, pass true if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addLayer(ILayer layer) throws IOException, AutomationException
Adds the layer to the map.
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addLayers(IEnumLayer layers, boolean autoArrange) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the layers are added in the proper position as by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the sequence of layers is by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.
layers
- A reference to a com.esri.arcgis.carto.IEnumLayer (in)autoArrange
- The autoArrange (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deleteLayer(ILayer layer) throws IOException, AutomationException
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void moveLayer(ILayer layer, int toIndex) throws IOException, AutomationException
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)toIndex
- The toIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clearLayers() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLayerVisible(ILayer layer) throws IOException, AutomationException
This method determines if a layer is actually visible in a map. It does this by checking to see if the layer is not drawn due to scale ranges and also by validating whether or not the layer is in a composite layer or group layer that is not visible.
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void insertLayer(ILayer pLayer, boolean autoArrange, int position) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the layer is added in the proper position as by its weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers. If autoArrange is true for this method, the position passed in is ignored as the position is determined by the auto arrange logic.
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)autoArrange
- The autoArrange (in)position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void insertLayers(IEnumLayer pLayers, boolean autoArrange, int position) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the layers are added in the proper position as by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers. If autoArrange is true for this method, the position passed in is ignored as the position is determined by the auto arrange logic.
pLayers
- A reference to a com.esri.arcgis.carto.IEnumLayer (in)autoArrange
- The autoArrange (in)position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void insertLayerInGroup(IGroupLayer pGroup, ILayer pLayer, boolean autoArrange, int position) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the sequence of layers is by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.
pGroup
- A reference to a com.esri.arcgis.carto.IGroupLayer (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)autoArrange
- The autoArrange (in)position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void insertLayersInGroup(IGroupLayer pGroup, IEnumLayer pLayer, boolean autoArrange, int position) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the sequence of layers is by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.
pGroup
- A reference to a com.esri.arcgis.carto.IGroupLayer (in)pLayer
- A reference to a com.esri.arcgis.carto.IEnumLayer (in)autoArrange
- The autoArrange (in)position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void moveLayerEx(IGroupLayer pFromGroup, IGroupLayer pToGroup, ILayer pLayer, int newPosition) throws IOException, AutomationException
pFromGroup
- A reference to a com.esri.arcgis.carto.IGroupLayer (in)pToGroup
- A reference to a com.esri.arcgis.carto.IGroupLayer (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)newPosition
- The newPosition (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |