|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.controls.IARFeatureProxy
public class IARFeatureProxy
Provides access to members that control the ARFeature.
The IARFeature interface is a starting point for accessing the feature's field and field values, and identifying the feature on the display.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IARFeatureProxy()
|
|
IARFeatureProxy(Object obj)
|
protected |
IARFeatureProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
centerAt()
Centers the feature on the map display. |
void |
flash()
Flashes the feature on the display. |
void |
flicker()
Flickers the feature on the display. |
Object |
getCustomProperty()
A property to associate data with an object. |
String |
getFieldAliasName(int index)
The alias name of the field. |
int |
getFieldCount()
The number of fields in the field collection. |
String |
getFieldName(int index)
The name of the field. |
int |
getFieldType(int index)
The type of field. |
Object |
getInternalObject()
The internal ArcObjects IFeature object. |
Object |
getValue(Object index)
The value of the field. |
String |
getValueAsString(Object index)
A property to access the value of the specified field as a string. |
void |
highlight(boolean bHighlight,
int color)
Highlights the feature on the display. |
boolean |
isFieldAccessible(Object index)
A property that checks if the specified field is accessible. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setCustomProperty(Object pVal)
A property to associate data with an object. |
void |
zoomTo()
Zooms the map to display the feature. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IARFeatureProxy()
public IARFeatureProxy(Object obj) throws IOException
IOException
protected IARFeatureProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public Object getValue(Object index) throws IOException, AutomationException
getValue
in interface IARFeature
index
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFieldCount() throws IOException, AutomationException
The FieldCount property returns the number of fields in the ARFeature's field collection. There is always at least one field within the field collection.
getFieldCount
in interface IARFeature
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFieldName(int index) throws IOException, AutomationException
getFieldName
in interface IARFeature
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFieldAliasName(int index) throws IOException, AutomationException
getFieldAliasName
in interface IARFeature
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFieldType(int index) throws IOException, AutomationException
getFieldType
in interface IARFeature
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void zoomTo() throws IOException, AutomationException
Zooms to the ARFeature to make it visible on the display. This may change the IARMap::MapScale. By default the screen is automatically refreshed.
zoomTo
in interface IARFeature
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void centerAt() throws IOException, AutomationException
Centers the ARFeature on the display to make it visible. The extent of the ARMap will change, but the IARMap::MapScale will remain the same. By default the screen is automatically refreshed.
centerAt
in interface IARFeature
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void flash() throws IOException, AutomationException
Flashes the ARFeature once on the display. Before using the Flash method use the ZoomTo or CenterAt method to ensure that the ARFeature is visible in the ARMap display area to the user.
flash
in interface IARFeature
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void flicker() throws IOException, AutomationException
Flickers the ARFeature on the display. This is like flashing the feature four times in quick succession. Before using the Flicker method use the ZoomTo or CenterAt method to ensure that the ARFeature is visible in the ARMap display area to the user.
flicker
in interface IARFeature
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getInternalObject() throws IOException, AutomationException
Use the InternalObject property to access the underlying IFeature object. This property is always inaccessible.
Getting the InternalObject property will return an error if no license is available and if the currently loaded document was not published with permission to access InternalObjects. Use the IARControl::HasDocumentPermission method to determine this.
getInternalObject
in interface IARFeature
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getCustomProperty() throws IOException, AutomationException
Use the CustomProperty to associate any useful data with the ARFeature. This is similar to a 'Tag' property, and can be use to store strings, numbers and objects.
getCustomProperty
in interface IARFeature
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomProperty(Object pVal) throws IOException, AutomationException
setCustomProperty
in interface IARFeature
pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void highlight(boolean bHighlight, int color) throws IOException, AutomationException
Highlights the ARFeature on the display. By deafult the screen is automatically refreshed.
This method acts on an instance of an object. In order to toggle the highlighting of a feature, one must work with the same instance of the object.
The Highlight method triggers the following events:
OnBeforeScreenDraw
OnAfterScreenDraw
highlight
in interface IARFeature
bHighlight
- The bHighlight (in)color
- The color (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isFieldAccessible(Object index) throws IOException, AutomationException
isFieldAccessible
in interface IARFeature
index
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getValueAsString(Object index) throws IOException, AutomationException
getValueAsString
in interface IARFeature
index
- A Variant (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 |