|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapGrid
Provides access to members that control a map grid.
IMapGrid is the main interface for setting properties that apply to all other types of grids. There are four specific types of MapGrid that all implement the IMapGrid interface. They are: IMeasuredGrid , IGraticule , IndexGrid , and ICustomGridOverlay .
IGraticule
,
ICustomOverlayGrid
,
IMeasuredGrid
,
IIndexGrid
,
IMapGrid
Method Summary | |
---|---|
void |
draw(IDisplay display,
IMapFrame pMapFrame)
Draws the map grid for a map frame to the given display. |
void |
generateGraphics(IMapFrame pMapFrame,
IGraphicsContainer graphicsContainer)
Generates graphic elements corresponding to the grid lines and stores them in the specified graphics container. |
IMapGridBorder |
getBorder()
The map grid border. |
double |
getExteriorWidth(IDisplay pDisplay,
IMapFrame pMapFrame)
The width (in display units) of the portion of the grid that is outside of the frame. |
IGridLabel |
getLabelFormat()
The label format for map grid labels. |
ILineSymbol |
getLineSymbol()
The symbol used to draw grid lines - null will draw no lines. |
String |
getName()
The name of the map grid. |
short |
getSubTickCount()
The number of subticks to draw between the major ticks. |
double |
getSubTickLength()
The length of the subticks in points. |
ILineSymbol |
getSubTickLineSymbol()
The symbol used to draw the subtick lines. |
double |
getTickLength()
The length of the major ticks in points. |
ILineSymbol |
getTickLineSymbol()
The line symbol used to draw the major ticks. |
IMarkerSymbol |
getTickMarkSymbol()
The symbol used to draw tick marks at the grid interval intersections - null will draw no tick marks. |
boolean |
isVisible()
Indicates if the map grid is visible. |
void |
prepareForOutput(int hDC,
int dpi,
tagRECT pixelBounds,
IMapFrame pMapFrame)
Prepares the map grid for output to a device. |
void |
queryLabelVisibility(boolean[] leftVis,
boolean[] topVis,
boolean[] rightVis,
boolean[] bottomVis)
Returns the visibility of the labels along all four sides of the map grid. |
void |
querySubTickVisibility(boolean[] leftVis,
boolean[] topVis,
boolean[] rightVis,
boolean[] bottomVis)
Returns the visibility of the subticks along all four sides of the map grid. |
void |
queryTickVisibility(boolean[] leftVis,
boolean[] topVis,
boolean[] rightVis,
boolean[] bottomVis)
Returns the visibility of the ticks along all four sides of the map grid. |
void |
setBorder(IMapGridBorder gridBorder)
The map grid border. |
void |
setDefaults(IMapFrame pMapFrame)
Sets the properties of the map grid to default values. |
void |
setLabelFormat(IGridLabel format)
The label format for map grid labels. |
void |
setLabelVisibility(boolean leftVis,
boolean topVis,
boolean rightVis,
boolean bottomVis)
Sets the visibility of the labels along all four sides of the map grid. |
void |
setLineSymbol(ILineSymbol symbol)
The symbol used to draw grid lines - null will draw no lines. |
void |
setName(String gridName)
The name of the map grid. |
void |
setSubTickCount(short count)
The number of subticks to draw between the major ticks. |
void |
setSubTickLength(double lengthPoints)
The length of the subticks in points. |
void |
setSubTickLineSymbol(ILineSymbol symbol)
The symbol used to draw the subtick lines. |
void |
setSubTickVisibility(boolean leftVis,
boolean topVis,
boolean rightVis,
boolean bottomVis)
Sets the visibility of the subticks along all four sides of the map grid. |
void |
setTickLength(double lengthPoints)
The length of the major ticks in points. |
void |
setTickLineSymbol(ILineSymbol symbol)
The line symbol used to draw the major ticks. |
void |
setTickMarkSymbol(IMarkerSymbol symbol)
The symbol used to draw tick marks at the grid interval intersections - null will draw no tick marks. |
void |
setTickVisibility(boolean leftVis,
boolean topVis,
boolean rightVis,
boolean bottomVis)
Sets the visibility of the ticks along all four sides of the map grid. |
void |
setVisible(boolean visible)
Indicates if the map grid is visible. |
Method Detail |
---|
String getName() throws IOException, AutomationException
Name is the name of the grid as it appears in the dataframe properties.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String gridName) throws IOException, AutomationException
gridName
- The gridName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILineSymbol getLineSymbol() throws IOException, AutomationException
LineSymbol is the line symbol that will be used to draw the grid lines.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLineSymbol(ILineSymbol symbol) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMarkerSymbol getTickMarkSymbol() throws IOException, AutomationException
TickMarkSymbol is the marker symbol that may be drawn at the intersection of grid lines.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTickMarkSymbol(IMarkerSymbol symbol) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGridLabel getLabelFormat() throws IOException, AutomationException
LabelFormat is the label format for the grid labels. This is an IGridLabel, which is the generic interface that supports all the other specific types of grid labels, which in turn support the various number formats.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLabelFormat(IGridLabel format) throws IOException, AutomationException
format
- A reference to a com.esri.arcgis.carto.IGridLabel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILineSymbol getTickLineSymbol() throws IOException, AutomationException
TickLineSymbol is the line symbol that will be used to draw the major tick marks that are drawn just inside of or just outside of the Border.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTickLineSymbol(ILineSymbol symbol) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getTickLength() throws IOException, AutomationException
TickLength is the length of the line symbol in points (approx. 1/72 inch) that will be used to draw the major tick marks that are drawn just inside of or just outside of the Border.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTickLength(double lengthPoints) throws IOException, AutomationException
lengthPoints
- The lengthPoints (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getSubTickCount() throws IOException, AutomationException
SubTickCount is the number of subticks that will be displayed between the TickLineSymbols. Or, if you optionally use an ICalibratedMapBorder it is the number of times the fill symbol of the calibrated border changes. To use subtick marks, use an ISimpleMapBorder.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSubTickCount(short count) throws IOException, AutomationException
count
- The count (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILineSymbol getSubTickLineSymbol() throws IOException, AutomationException
SubTickLineSymbol is the line symbol used to draw subticks.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSubTickLineSymbol(ILineSymbol symbol) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getSubTickLength() throws IOException, AutomationException
SubTickLength is the length of the subtick marks in points (approx. 1/72 inch).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSubTickLength(double lengthPoints) throws IOException, AutomationException
lengthPoints
- The lengthPoints (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMapGridBorder getBorder() throws IOException, AutomationException
Border is the border that will be drawn around the map. Note that your LabelOffset will need to accomodate your border's width. There are two types of borders: ICalibratedMapBorder and ISimpleMapBorder.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBorder(IMapGridBorder gridBorder) throws IOException, AutomationException
gridBorder
- A reference to a com.esri.arcgis.carto.IMapGridBorder (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isVisible() throws IOException, AutomationException
Visible is whether the MapGrid will be drawn.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setVisible(boolean visible) throws IOException, AutomationException
visible
- The visible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryLabelVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis) throws IOException, AutomationException
QueryLabelVisibility is whether the labels on each of the sides of the map grid will be drawn.
leftVis
- The leftVis (in/out: use single element array)topVis
- The topVis (in/out: use single element array)rightVis
- The rightVis (in/out: use single element array)bottomVis
- The bottomVis (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLabelVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis) throws IOException, AutomationException
SetLabelVisibility sets whether the labels on each of the sides of the map grid will be drawn.
leftVis
- The leftVis (in)topVis
- The topVis (in)rightVis
- The rightVis (in)bottomVis
- The bottomVis (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryTickVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis) throws IOException, AutomationException
QueryTickVisibility is whether the ticks on each side of the map grid will be drawn.
leftVis
- The leftVis (in/out: use single element array)topVis
- The topVis (in/out: use single element array)rightVis
- The rightVis (in/out: use single element array)bottomVis
- The bottomVis (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTickVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis) throws IOException, AutomationException
SetTickVisibility sets whether the ticks on each side of the map grid will be drawn.
leftVis
- The leftVis (in)topVis
- The topVis (in)rightVis
- The rightVis (in)bottomVis
- The bottomVis (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void querySubTickVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis) throws IOException, AutomationException
QuerySubTickVisibility is whether the subticks on each side of the map grid will be drawn.
leftVis
- The leftVis (in/out: use single element array)topVis
- The topVis (in/out: use single element array)rightVis
- The rightVis (in/out: use single element array)bottomVis
- The bottomVis (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSubTickVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis) throws IOException, AutomationException
SetSubTickVisibility sets whether the subticks on each side of the map grid will be drawn.
leftVis
- The leftVis (in)topVis
- The topVis (in)rightVis
- The rightVis (in)bottomVis
- The bottomVis (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaults(IMapFrame pMapFrame) throws IOException, AutomationException
pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void generateGraphics(IMapFrame pMapFrame, IGraphicsContainer graphicsContainer) throws IOException, AutomationException
pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (in)graphicsContainer
- A reference to a com.esri.arcgis.carto.IGraphicsContainer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void prepareForOutput(int hDC, int dpi, tagRECT pixelBounds, IMapFrame pMapFrame) throws IOException, AutomationException
hDC
- The hDC (A COM typedef) (in)dpi
- The dpi (in)pixelBounds
- A Structure: com.esri.arcgis.system.tagRECT (in)pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void draw(IDisplay display, IMapFrame pMapFrame) throws IOException, AutomationException
display
- A reference to a com.esri.arcgis.display.IDisplay (in)pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getExteriorWidth(IDisplay pDisplay, IMapFrame pMapFrame) throws IOException, AutomationException
pDisplay
- A reference to a com.esri.arcgis.display.IDisplay (in)pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (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 |