|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.controls.ARMap
public class ARMap
The ARMap container for the display of map data.
| Constructor Summary | |
|---|---|
ARMap(Object obj)
Construct a ARMap using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
centerAt(double xCoord,
double yCoord)
Moves the center of the map to the specified point. |
void |
centerAtBookmark(Object vBookmarkID)
Centers the map display on the bookmark. |
boolean |
equals(Object o)
Compare this object with another |
IARLayer |
getARLayer(int index)
The layer at the specified index. |
int |
getARLayerCount()
The number of layer in the map's layer collection. |
int |
getBookmarkCount()
The number of bookmarks in the map's bookmark collection. |
String |
getBookmarkName(int index)
The name of the bookmark. |
Object |
getCustomProperty()
A property to associate data with an object. |
String |
getDescription()
The description of the map. |
int |
getDistanceUnits()
The distance units of the map. |
void |
getExtent(double[] xMin,
double[] yMin,
double[] xMax,
double[] yMax)
The visible extent of the map. |
void |
getFullExtent(double[] xMin,
double[] yMin,
double[] xMax,
double[] yMax)
The extent of all the data within the map. |
Object |
getInternalObject()
The internal ArcObjects IMap object. |
double |
getMapScale()
The scale of the map as a representative fraction. |
int |
getMapUnits()
The geographical units of the map. |
String |
getName()
The name of the map. |
double |
getReferenceScale()
The reference scale of the map as a representative fraction. |
double |
getRotation()
The number of degrees the map display is rotated. |
String |
getSpatialReferenceName()
The name of the map's spatial reference. |
int |
hashCode()
the hashcode for this object |
boolean |
isCanRedoExtent()
Indicates if there is a map extent that can be redone. |
boolean |
isCanUndoExtent()
Indicates if there is a map extent that can be undone. |
void |
pan(int direction,
double screenPercentage)
Pans the map by a factor in a specified direction. |
IARFeatureSet |
queryARFeatures(IARSearchDef pSearchDef)
Searches the map using a search definition and returns an ARFeatureSet. |
void |
redoExtent()
Redo the next map extent in the stack. |
void |
refresh(boolean refreshNow)
Redraws the map display area. |
IARFeatureCursor |
searchARFeatures(IARSearchDef pSearchDef)
Searches the map using a search definition and returns an ARFeatureCursor. |
void |
setCustomProperty(Object pVal)
A property to associate data with an object. |
void |
setExtent(double xMin,
double yMin,
double xMax,
double yMax)
Sets the visible extent of the map. |
void |
setMapScale(double mapScale)
The scale of the map as a representative fraction. |
void |
setRotation(double mapRotation)
The number of degrees the map display is rotated. |
void |
toMapPoint(int x,
int y,
double[] xCoord,
double[] yCoord)
Converts a point in device coordinates (typically pixels) to coordinates in map units. |
void |
undoExtent()
Undo to the previous map extent in the stack. |
void |
zoomIn(double factor)
Zooms in on the map by a factor. |
void |
zoomOut(double factor)
Zooms out on the map by a factor. |
void |
zoomToBookmark(Object vBookmarkID)
Zooms the map display to the bookmark. |
void |
zoomToFullExtent()
Zoom to the full extent of all data within the map. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public ARMap(Object obj)
throws IOException
obj to ARMap. *
ARMap o = (ARMap)obj; // will not work
ARMap o = new ARMap(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
ARMap theARMap = (ARMap) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void setMapScale(double mapScale)
throws IOException,
AutomationException
setMapScale in interface IARMapmapScale - The mapScale (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getMapScale()
throws IOException,
AutomationException
getMapScale in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh(boolean refreshNow)
throws IOException,
AutomationException
refresh in interface IARMaprefreshNow - The refreshNow (in, optional, pass false if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getARLayerCount()
throws IOException,
AutomationException
getARLayerCount in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IARLayer getARLayer(int index)
throws IOException,
AutomationException
getARLayer in interface IARMapindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDescription()
throws IOException,
AutomationException
getDescription in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getSpatialReferenceName()
throws IOException,
AutomationException
getSpatialReferenceName in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMapUnits()
throws IOException,
AutomationException
getMapUnits in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDistanceUnits()
throws IOException,
AutomationException
getDistanceUnits in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setExtent(double xMin,
double yMin,
double xMax,
double yMax)
throws IOException,
AutomationException
setExtent in interface IARMapxMin - The xMin (in)yMin - The yMin (in)xMax - The xMax (in)yMax - The yMax (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getExtent(double[] xMin,
double[] yMin,
double[] xMax,
double[] yMax)
throws IOException,
AutomationException
getExtent in interface IARMapxMin - The xMin (in/out: use single element array)yMin - The yMin (in/out: use single element array)xMax - The xMax (in/out: use single element array)yMax - The yMax (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getFullExtent(double[] xMin,
double[] yMin,
double[] xMax,
double[] yMax)
throws IOException,
AutomationException
getFullExtent in interface IARMapxMin - The xMin (in/out: use single element array)yMin - The yMin (in/out: use single element array)xMax - The xMax (in/out: use single element array)yMax - The yMax (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getReferenceScale()
throws IOException,
AutomationException
getReferenceScale in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void zoomIn(double factor)
throws IOException,
AutomationException
zoomIn in interface IARMapfactor - The factor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void zoomOut(double factor)
throws IOException,
AutomationException
zoomOut in interface IARMapfactor - The factor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void pan(int direction,
double screenPercentage)
throws IOException,
AutomationException
pan in interface IARMapdirection - A com.esri.arcgis.controls.esriARDirection constant (in)screenPercentage - The screenPercentage (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void centerAt(double xCoord,
double yCoord)
throws IOException,
AutomationException
centerAt in interface IARMapxCoord - The xCoord (in)yCoord - The yCoord (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRotation(double mapRotation)
throws IOException,
AutomationException
setRotation in interface IARMapmapRotation - The mapRotation (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getRotation()
throws IOException,
AutomationException
getRotation in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IARFeatureSet queryARFeatures(IARSearchDef pSearchDef)
throws IOException,
AutomationException
queryARFeatures in interface IARMappSearchDef - A reference to a com.esri.arcgis.controls.IARSearchDef (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void toMapPoint(int x,
int y,
double[] xCoord,
double[] yCoord)
throws IOException,
AutomationException
toMapPoint in interface IARMapx - The x (in)y - The y (in)xCoord - The xCoord (in/out: use single element array)yCoord - The yCoord (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanUndoExtent()
throws IOException,
AutomationException
isCanUndoExtent in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void undoExtent()
throws IOException,
AutomationException
undoExtent in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanRedoExtent()
throws IOException,
AutomationException
isCanRedoExtent in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void redoExtent()
throws IOException,
AutomationException
redoExtent in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getInternalObject()
throws IOException,
AutomationException
getInternalObject in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBookmarkCount()
throws IOException,
AutomationException
getBookmarkCount in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getBookmarkName(int index)
throws IOException,
AutomationException
getBookmarkName in interface IARMapindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void zoomToBookmark(Object vBookmarkID)
throws IOException,
AutomationException
zoomToBookmark in interface IARMapvBookmarkID - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void centerAtBookmark(Object vBookmarkID)
throws IOException,
AutomationException
centerAtBookmark in interface IARMapvBookmarkID - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void zoomToFullExtent()
throws IOException,
AutomationException
zoomToFullExtent in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getCustomProperty()
throws IOException,
AutomationException
getCustomProperty in interface IARMapIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCustomProperty(Object pVal)
throws IOException,
AutomationException
setCustomProperty in interface IARMappVal - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IARFeatureCursor searchARFeatures(IARSearchDef pSearchDef)
throws IOException,
AutomationException
searchARFeatures in interface IARMappSearchDef - A reference to a com.esri.arcgis.controls.IARSearchDef (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 | ||||||||