|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGroupLayer
Provides access to members that control a collection of layers that behaves like a single layer.
The IGroupLayer interface provides methods for managing the contents of GroupLayers. Use the ILayer interface to set properties for the GroupLayer, or use the appropriate interface to adjust properties of the constituent layers.
A group layer is a special case of a composite layer. Custom layer implementations of IGroupLayer are rarely needed, but when done it is importat to implement ICompositeLayer as well.
IGroupLayer
,
ICompositeLayer
,
GroupLayer
Method Summary | |
---|---|
void |
add(ILayer layer)
Adds a layer to the end of the group. |
void |
clear()
Removes all layers from the group. |
void |
delete(ILayer layer)
Removes the specified layer from the group. |
boolean |
isExpanded()
Indicates if the group's entry is expanded in the TOC. |
void |
setExpanded(boolean expanded)
Indicates if the group's entry is expanded in the TOC. |
Methods inherited from interface com.esri.arcgis.carto.ILayer |
---|
draw, getAreaOfInterest, getMaximumScale, getMinimumScale, getName, getSupportedDrawPhases, getTipText, isCached, isShowTips, isValid, isVisible, setCached, setMaximumScale, setMinimumScale, setName, setShowTips, setSpatialReferenceByRef, setVisible |
Method Detail |
---|
void add(ILayer layer) throws IOException, AutomationException
Adds the specified layer to the GroupLayer.
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 delete(ILayer layer) throws IOException, AutomationException
Removes the specified Layer from the GroupLayer.
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 clear() throws IOException, AutomationException
Removes all constituent layers from the GroupLayer.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isExpanded() throws IOException, AutomationException
Sets whether the GroupLayer is to be shown in expanded or collapsed view in the TOC.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExpanded(boolean expanded) throws IOException, AutomationException
Sets whether the GroupLayer is to be shown in expanded or collapsed view in the TOC.
expanded
- The expanded (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 |