|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.controls.ARMap
public class ARMap
COM Class 'ARMap'. Generated 3/19/2015 1:20:50 PM from 'C:\ArcGIS\COM\esriPublisherControls.olb'
Description 'The ARMap container for the display of map data.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
Field Summary |
---|
Constructor Summary | |
---|---|
ARMap(java.lang.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(java.lang.Object vBookmarkID)
Centers the map display on the bookmark. |
boolean |
equals(java.lang.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. |
java.lang.String |
getBookmarkName(int index)
The name of the bookmark. |
java.lang.Object |
getCustomProperty()
A property to associate data with an object. |
java.lang.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. |
java.lang.Object |
getInternalObject()
The internal ArcObjects IMap object. |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Deprecated. Internal use only. |
double |
getMapScale()
The scale of the map as a representative fraction. |
int |
getMapUnits()
The geographical units of the map. |
java.lang.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. |
java.lang.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. |
void |
release()
Release a ARMap. |
IARFeatureCursor |
searchARFeatures(IARSearchDef pSearchDef)
Searches the map using a search definition and returns an ARFeatureCursor. |
void |
setCustomProperty(java.lang.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(java.lang.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 |
Constructor Detail |
---|
public ARMap(java.lang.Object obj) throws java.io.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
java.io.IOException
- if there are interop problems
ARMap theARMap = (ARMap) obj;
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void setMapScale(double mapScale) throws java.io.IOException, AutomationException
setMapScale
in interface IARMap
mapScale
- The mapScale (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMapScale() throws java.io.IOException, AutomationException
getMapScale
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refresh(boolean refreshNow) throws java.io.IOException, AutomationException
refresh
in interface IARMap
refreshNow
- The refreshNow (in, optional, pass false if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getName() throws java.io.IOException, AutomationException
getName
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getARLayerCount() throws java.io.IOException, AutomationException
getARLayerCount
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARLayer getARLayer(int index) throws java.io.IOException, AutomationException
getARLayer
in interface IARMap
index
- The index (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getDescription() throws java.io.IOException, AutomationException
getDescription
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getSpatialReferenceName() throws java.io.IOException, AutomationException
getSpatialReferenceName
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMapUnits() throws java.io.IOException, AutomationException
getMapUnits
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDistanceUnits() throws java.io.IOException, AutomationException
getDistanceUnits
in interface IARMap
java.io.IOException
- 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 java.io.IOException, AutomationException
setExtent
in interface IARMap
xMin
- The xMin (in)yMin
- The yMin (in)xMax
- The xMax (in)yMax
- The yMax (in)
java.io.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 java.io.IOException, AutomationException
getExtent
in interface IARMap
xMin
- 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)
java.io.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 java.io.IOException, AutomationException
getFullExtent
in interface IARMap
xMin
- 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)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getReferenceScale() throws java.io.IOException, AutomationException
getReferenceScale
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void zoomIn(double factor) throws java.io.IOException, AutomationException
zoomIn
in interface IARMap
factor
- The factor (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void zoomOut(double factor) throws java.io.IOException, AutomationException
zoomOut
in interface IARMap
factor
- The factor (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void pan(int direction, double screenPercentage) throws java.io.IOException, AutomationException
pan
in interface IARMap
direction
- A com.esri.arcgis.controls.esriARDirection constant (in)screenPercentage
- The screenPercentage (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void centerAt(double xCoord, double yCoord) throws java.io.IOException, AutomationException
centerAt
in interface IARMap
xCoord
- The xCoord (in)yCoord
- The yCoord (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRotation(double mapRotation) throws java.io.IOException, AutomationException
setRotation
in interface IARMap
mapRotation
- The mapRotation (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getRotation() throws java.io.IOException, AutomationException
getRotation
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARFeatureSet queryARFeatures(IARSearchDef pSearchDef) throws java.io.IOException, AutomationException
queryARFeatures
in interface IARMap
pSearchDef
- A reference to a com.esri.arcgis.controls.IARSearchDef (in)
java.io.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 java.io.IOException, AutomationException
toMapPoint
in interface IARMap
x
- 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)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanUndoExtent() throws java.io.IOException, AutomationException
isCanUndoExtent
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void undoExtent() throws java.io.IOException, AutomationException
undoExtent
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanRedoExtent() throws java.io.IOException, AutomationException
isCanRedoExtent
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void redoExtent() throws java.io.IOException, AutomationException
redoExtent
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getInternalObject() throws java.io.IOException, AutomationException
getInternalObject
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBookmarkCount() throws java.io.IOException, AutomationException
getBookmarkCount
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getBookmarkName(int index) throws java.io.IOException, AutomationException
getBookmarkName
in interface IARMap
index
- The index (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void zoomToBookmark(java.lang.Object vBookmarkID) throws java.io.IOException, AutomationException
zoomToBookmark
in interface IARMap
vBookmarkID
- A Variant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void centerAtBookmark(java.lang.Object vBookmarkID) throws java.io.IOException, AutomationException
centerAtBookmark
in interface IARMap
vBookmarkID
- A Variant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void zoomToFullExtent() throws java.io.IOException, AutomationException
zoomToFullExtent
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getCustomProperty() throws java.io.IOException, AutomationException
getCustomProperty
in interface IARMap
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomProperty(java.lang.Object pVal) throws java.io.IOException, AutomationException
setCustomProperty
in interface IARMap
pVal
- A Variant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARFeatureCursor searchARFeatures(IARSearchDef pSearchDef) throws java.io.IOException, AutomationException
searchARFeatures
in interface IARMap
pSearchDef
- A reference to a com.esri.arcgis.controls.IARSearchDef (in)
java.io.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 |