|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.cartoUI.FeatureIdentifyObject
public class FeatureIdentifyObject
Feature Identify Object.
A FeatureIdentifyObject object provides access to the identified feature and has methods that can operate on that feature.
When used on a map layer, the IIdentify::Identify method returns an array of FeatureIndentifyObject objects.
IIdentify
,
Serialized FormConstructor Summary | |
---|---|
FeatureIdentifyObject()
Constructs a FeatureIdentifyObject using ArcGIS Engine. |
|
FeatureIdentifyObject(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. FeatureIdentifyObject theFeatureIdentifyObject = (FeatureIdentifyObject) obj; |
Method Summary | |
---|---|
boolean |
canIdentify(ILayer pLayer)
Indicates if the object can identify the specified layer. |
boolean |
equals(Object o)
Compare this object with another |
void |
flash(IScreenDisplay pDisplay)
Flashes the identified object on the screen. |
static String |
getClsid()
getClsid. |
int |
getHWnd()
The window handle. |
ILayer |
getLayer()
Target layer for identification. |
String |
getName()
Name of the identify object. |
IRow |
getRow()
The row used by the identify object. |
int |
hashCode()
the hashcode for this object |
void |
popUpMenu(int x,
int y)
Displays a context sensitive popup menu at the specified location. |
void |
setBasicMapByRef(IBasicMap rhs1)
The basic map into an identify object. |
void |
setFeature(IFeature rhs1)
The feature to be identified. |
void |
setMapByRef(IMap rhs1)
The map into an identify object. |
void |
setRow(IRow row)
The row used by the identify object. |
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 FeatureIdentifyObject() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic FeatureIdentifyObject(Object obj) throws IOException
FeatureIdentifyObject theFeatureIdentifyObject = (FeatureIdentifyObject) obj;
obj
to FeatureIdentifyObject
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setFeature(IFeature rhs1) throws IOException, AutomationException
The Feature property is write-only. However, you can get a reference to the identified feature by casting to IRowIdentifyObject and then using the Row property. This could be coded as follows.
IFeatureIdentifyObj pFeatIdObj = null;
IRowIdentifyObject pRowObj = null;
IFeature pFeature = null;
// Do something that sets pFeatIdObj...
// …
// Get the feature that was identified by casting to IRowIdentifyObject
pRowObj = new IRowIdentifyObjectProxy(pFeatIdObj);
pFeature = new IFeatureProxy( pRowObj.getRow());
setFeature
in interface IFeatureIdentifyObj
rhs1
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBasicMapByRef(IBasicMap rhs1) throws IOException, AutomationException
setBasicMapByRef
in interface IBasicMapIdentifyObject
rhs1
- A reference to a com.esri.arcgis.carto.IBasicMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapByRef(IMap rhs1) throws IOException, AutomationException
setMapByRef
in interface IMapIdentifyObject
rhs1
- A reference to a com.esri.arcgis.carto.IMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canIdentify(ILayer pLayer) throws IOException, AutomationException
canIdentify
in interface IIdentifyObj
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHWnd() throws IOException, AutomationException
getHWnd
in interface IIdentifyObj
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IIdentifyObj
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer getLayer() throws IOException, AutomationException
getLayer
in interface IIdentifyObj
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void flash(IScreenDisplay pDisplay) throws IOException, AutomationException
The Flash method is not supported with ArcGIS Engine, use the IHookActions.DoActions() method with the esriHookActionsFlash for this functionality.
flash
in interface IIdentifyObj
pDisplay
- A reference to a com.esri.arcgis.display.IScreenDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void popUpMenu(int x, int y) throws IOException, AutomationException
popUpMenu
in interface IIdentifyObj
x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRow(IRow row) throws IOException, AutomationException
setRow
in interface IRowIdentifyObject
row
- A reference to a com.esri.arcgis.geodatabase.IRow (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRow getRow() throws IOException, AutomationException
getRow
in interface IRowIdentifyObject
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 |