|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMeasuredGrid
Provides access to the members that control the lines that make up the map grid.
The IMeasuredGrid interface is implemented by the MeasuredGrid and Graticule coclasses. It exposes information on the origins, intervals, and units of the grid.
If you set FixedOrigin to False, the origin is computed from the data frame instead of from the XOrigin and YOrigin properties. Defining these properties will shift the grid. For instance you can create a grid with a 10° interval showing on meridians 5°, 15°, 25°, etc. by shifting the grid 5° in X.
Units need not be populated for a graticule. For a measured grid they can be set to any esriUnits constant, if this is not specified the map units will be used.
The XIntervalSize and YIntervalSize properties define the spacing of the meridians and parallels of the grid.
IGraticule
,
ICustomOverlayGrid
,
IMeasuredGrid
,
IIndexGrid
,
IMapGrid
Method Summary | |
---|---|
int |
getUnits()
The units for the intervals and origin. |
double |
getXIntervalSize()
The interval between grid lines along the X axis. |
double |
getXOrigin()
The origin of the grid on the X axis. |
double |
getYIntervalSize()
The interval between grid lines along the Y axis. |
double |
getYOrigin()
The origin of the grid on the Y axis. |
boolean |
isFixedOrigin()
Indicates if the origin is read from the XOrigin and YOrigin properties (true) or if it is computed dynamically from the data frame (false). |
void |
setFixedOrigin(boolean fixed)
Indicates if the origin is read from the XOrigin and YOrigin properties (true) or if it is computed dynamically from the data frame (false). |
void |
setUnits(int unitsCode)
The units for the intervals and origin. |
void |
setXIntervalSize(double interval)
The interval between grid lines along the X axis. |
void |
setXOrigin(double origin)
The origin of the grid on the X axis. |
void |
setYIntervalSize(double interval)
The interval between grid lines along the Y axis. |
void |
setYOrigin(double origin)
The origin of the grid on the Y axis. |
Method Detail |
---|
double getXOrigin() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setXOrigin(double origin) throws IOException, AutomationException
origin
- The origin (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getXIntervalSize() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setXIntervalSize(double interval) throws IOException, AutomationException
interval
- The interval (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getYOrigin() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setYOrigin(double origin) throws IOException, AutomationException
origin
- The origin (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getYIntervalSize() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setYIntervalSize(double interval) throws IOException, AutomationException
interval
- The interval (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUnits(int unitsCode) throws IOException, AutomationException
unitsCode
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isFixedOrigin() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFixedOrigin(boolean fixed) throws IOException, AutomationException
fixed
- The fixed (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 |