|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapGrids
Provides access to members that control the map grids in a data frame.
IMapGrids is implemented only by the MapFrame object, but it is not the default interface for that object (IMapFrame is the default). Use this interface when you want to retrieve or set the grids (sometimes known as graticules) displayed with a particular MapFrame. The Grids are used to provide reference information for the map.
Method Summary | |
---|---|
void |
addMapGrid(IMapGrid mapGrid)
Adds a map grid to the map frame. |
void |
clearMapGrids()
Clears all map grids from the map frame. |
void |
deleteMapGrid(IMapGrid mapGrid)
Deletes a map grid from the map frame. |
IMapGrid |
getMapGrid(int index)
The map grid at the specified index. |
int |
getMapGridCount()
The number of map grids associated with the map frame. |
void |
setMapGrid(int index,
IMapGrid mapGrid)
The map grid at the specified index. |
Method Detail |
---|
int getMapGridCount() throws IOException, AutomationException
MapGridCount will return then number of grids (graticules) attached to the MapFrame.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMapGrid getMapGrid(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMapGrid(int index, IMapGrid mapGrid) throws IOException, AutomationException
index
- The index (in)mapGrid
- A reference to a com.esri.arcgis.carto.IMapGrid (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addMapGrid(IMapGrid mapGrid) throws IOException, AutomationException
AddMapGrid will add a new MapGrid to the MapFrame. Use this interface when you have a valid IMapGrid object that you want to associate a MapFrame object.
mapGrid
- A reference to a com.esri.arcgis.carto.IMapGrid (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deleteMapGrid(IMapGrid mapGrid) throws IOException, AutomationException
DeleteMapGrid is used to remove the specified IMapGrid from the MapFrame. After executing the method, you still have a valid IMapGrid that could then be added to a different MapFrame.
mapGrid
- A reference to a com.esri.arcgis.carto.IMapGrid (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clearMapGrids() throws IOException, AutomationException
ClearMapGrids will remove all associated grids (graticules) from the MapFrame. Use this method when you want to programmatically remove all associated MapGrids from the MapFrame.
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 |