|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGraphicsLayer
Provides access to members that control the Graphics Layer.
A graphics layer can be associated with another layer in the map; when that other layer changes visibility, the graphics layer can change visibility also. Use the IGraphicsLayer interface to manage this.
The IGraphicsLayer interface also has methods to activate and deactivate the graphics layer. When a graphics layer is active, it is the current annotation target.
//This example assumes that you already have an IMap (pMap) setIGraphicsLayer pGraLyr =new IGraphicsLayerProxy( pMap.getActiveGraphicsLayer());
IMap
Method Summary | |
---|---|
void |
activate(IScreenDisplay containerScreen)
Prepare to display graphic on screen. |
void |
deactivate()
ActiveView that graphics are displayed on is no longer visible. |
ILayer |
getAssociatedLayer()
Layer that is associated with this graphics layer. |
boolean |
isUseAssociatedLayerVisibility()
Indicates if the layer that is associated with this graphics layer controls the visibility. |
void |
setAssociatedLayerByRef(ILayer layer)
Layer that is associated with this graphics layer. |
void |
setUseAssociatedLayerVisibility(boolean useLayer)
Indicates if the layer that is associated with this graphics layer controls the visibility. |
Method Detail |
---|
void activate(IScreenDisplay containerScreen) throws IOException, AutomationException
containerScreen
- A reference to a com.esri.arcgis.display.IScreenDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deactivate() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseAssociatedLayerVisibility() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseAssociatedLayerVisibility(boolean useLayer) throws IOException, AutomationException
useLayer
- The useLayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayer getAssociatedLayer() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAssociatedLayerByRef(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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |