|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHookActions
Provides access to actions such as flashing, panning and zooming that help in the development of commands to work with controls, custom controls and applications.
Use IHookActions to flash, label and navigate around geometry objects implementing IEnvelope, IPoint, IPolygon and IPolyline.
Method Summary | |
---|---|
void |
doAction(Object pUnknown,
int action)
Perform the action on the object. |
void |
doActionOnMultiple(IArray pArray,
int action)
Perform the action on the array of objects. |
void |
doActionWithName(Object pUnknown,
String name,
int action)
Perform the action on the object using the name. |
void |
doActionWithNameOnMultiple(IArray pArray,
IStringArray pNamesArray,
int action)
Perform the action on the array of objects using the array of names. |
boolean |
isActionSupported(Object pUnknown,
int action)
Indicates whether the specified action can be performed on the object. |
boolean |
isActionSupportedOnMultiple(IArray pArray,
int action)
Indicates whether the specified action can be performed on the array of objects. |
Method Detail |
---|
boolean isActionSupported(Object pUnknown, int action) throws IOException, AutomationException
pUnknown
- A reference to another Object (IUnknown) (in)action
- A com.esri.arcgis.controls.esriHookActions constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isActionSupportedOnMultiple(IArray pArray, int action) throws IOException, AutomationException
pArray
- A reference to a com.esri.arcgis.system.IArray (in)action
- A com.esri.arcgis.controls.esriHookActions constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doAction(Object pUnknown, int action) throws IOException, AutomationException
DoAction performs the specified Action on the specified object in the ActiveView. For example, pass esriHookActionsZoom to zoom to the extent of the specified object. Use the ActionSupported method before DoAction is ensure the specified Action is supported.
pUnknown must be an object implementing IEnvelope, IPoint, IPolygon or IPolyline and the geometry should not be empty.
When passing DoAction an object implementing IPoint and esriHookActionsZoom, if the width of the specified geometry is zero, the display will be zoomed to 1/20th of the width of the full extent of the data. If the height of the current visible extent is less than 1/20th of the height of the full extent of the data, the current visible extent is used instead.
pUnknown
- A reference to another Object (IUnknown) (in)action
- A com.esri.arcgis.controls.esriHookActions constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doActionWithName(Object pUnknown, String name, int action) throws IOException, AutomationException
DoActionWithName performs the specified Action on the specified object with the specified name string in the ActiveView. For example, pass esriHookActionsLabel to label the specified object with the specfied label. Use the ActionSupported method before DoActionWithName is ensure the specified Action is supported.
pUnknown must be an object implementing IEnvelope, IPoint, IPolygon or IPolyline and the geometry should not be empty.
Name is the string used by esriHookActionsLabel and esriHookActionsCallout actions.
When passing DoActionWithName an object implementing IPoint and esriHookActionsZoom, if the width of the specified geometry is zero, the display will be zoomed to 1/20th of the width of the full extent of the data. If the height of the current visible extent is less than 1/20th of the height of the full extent of the data, the current visible extent is used instead.
pUnknown
- A reference to another Object (IUnknown) (in)name
- The name (in)action
- A com.esri.arcgis.controls.esriHookActions constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doActionOnMultiple(IArray pArray, int action) throws IOException, AutomationException
DoActionOnMultiple performs the specified Action on the objects in the specified array in the ActiveView. For example, pass esriHookActionsZoom to zoom to the extent of the specified objects. Use the ActionSupportedOnMultiple method before DoActionOnMultiple is ensure the specified Action is supported.
pArray must contain objects implementing IEnvelope, IPoint, IPolygon or IPolyline and the geometry of each object should not be empty.
pArray
- A reference to a com.esri.arcgis.system.IArray (in)action
- A com.esri.arcgis.controls.esriHookActions constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doActionWithNameOnMultiple(IArray pArray, IStringArray pNamesArray, int action) throws IOException, AutomationException
DoActionWithNameOnMultiple performs the specified Action on the objects in the specified array in the ActiveView. For example, pass esriHookActionsLabel to label the specified objects with the specfied labels. Use the ActionSupportedOnMultiple method before DoActionWithNameOnMultiple is ensure the specified Action is supported.
pArray must contain objects implementing IEnvelope, IPoint, IPolygon or IPolyline and the geometry of each object should not be empty.
pNamesArray is an array of strings used by esriHookActionsLabel and esriHookActionsCallout actions.
Ensure pArray and pNamesArray contain the same number of elements.
pArray
- A reference to a com.esri.arcgis.system.IArray (in)pNamesArray
- A reference to a com.esri.arcgis.system.IStringArray (in)action
- A com.esri.arcgis.controls.esriHookActions constant (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 |