|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.schematic.INgBehaviorProxy
public class INgBehaviorProxy
Provides access to members that control the behavior.
A behavior brings together four elements:
- An event name; that is, an action by the end user: EventName
-Anobject type name: ObjectTypeName
-A metatype of objects: MetaType
A command; that is, the response from the application: Command
which reads: such event (LeftClick, RightClick ...) on such object type of such metatype will trigger such command.
| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INgBehaviorProxy()
|
|
INgBehaviorProxy(Object obj)
|
protected |
INgBehaviorProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
delete()
Deletes the behavior. |
INgCommand |
getCommand()
Command to be triggered. |
String |
getEventName()
Name of the event to be responded to. |
int |
getMetaType()
Object metatype to be impacted. |
String |
getObjectTypeName()
Identifier for the object type used to filter command triggering. |
INgProject |
getProject()
Project of the behavior. |
void |
readExternal(ObjectInput in)
|
void |
removeListener(String iidStr,
Object theListener)
|
void |
set(String evtName,
int metaType,
String objectTypeName)
Modifies the behavior so that it responds to the event named 'eventName' when such event impacts the object type named 'objectTypeName' whose metatype is 'metaType'. |
void |
setCommand(INgCommand pVal)
Command to be triggered. |
void |
setEventName(String pVal)
Name of the event to be responded to. |
void |
setMetaType(int pVal)
Object metatype to be impacted. |
void |
setObjectTypeName(String pVal)
Identifier for the object type used to filter command triggering. |
void |
writeExternal(ObjectOutput out)
|
| 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, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public INgBehaviorProxy()
public INgBehaviorProxy(Object obj)
throws IOException
IOException
protected INgBehaviorProxy(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.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public INgCommand getCommand()
throws IOException,
AutomationException
This command must be defined for the currently opened project. Schematics offers a full set of predefined commands, each with its own area of action, which means that it will apply to a given metatype only (for more details about commands, see the INgCommand interface).
getCommand in interface INgBehaviorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCommand(INgCommand pVal)
throws IOException,
AutomationException
setCommand in interface INgBehaviorpVal - A reference to a com.esri.arcgis.schematic.INgCommand (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getEventName()
throws IOException,
AutomationException
This event name can be a user event name set by the application or a predefined Schematics event name (generally a mouse click or a keyboard key being pressed). Possible predefined event names depend on the object MetaType.
List of predefined events available from schematic elements
Predefined events available for schematic elements are those available for MetaType metatype "esriNgMetaTypeElement", "esriNgMetaTypeLegendGroup", "esriNgMetaTypeLegendProperty" or "esriNgMetaTypeLegendPropertyFilter"
The predefined event names list is:
List of predefined events available from schematic views
Predefined events available for schematic views are those available for the MetaType metatype "esriNgMetaTypeView"
The predefined event names list is:
Note: For all object metatypes (esriNgMetaTypeDiagram, esriNgMetaTypeView, esriNgMetaTypeElement, esriNgMetaTypeLegendGroup, esriNgMetaTypeLegendProperty, esriNgMetaTypeLegendPropertyFilter), you can also use a "UserEventName". This event name is set by the application. It can be triggered by the application through a series of messages exchanged with ArcGIS Schematics.
getEventName in interface INgBehaviorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEventName(String pVal)
throws IOException,
AutomationException
setEventName in interface INgBehaviorpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMetaType()
throws IOException,
AutomationException
Here are the list of the MetaType values that are available
getMetaType in interface INgBehaviorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMetaType(int pVal)
throws IOException,
AutomationException
setMetaType in interface INgBehaviorpVal - A com.esri.arcgis.schematic.esriNgMetaType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getObjectTypeName()
throws IOException,
AutomationException
The object type name must be defined for the currently open project. If the command is to apply to all object types of the MetaType metatype, this identifier is not required. If the metatype is equal to esriNgMetaTypeView, the ObjectTypeName parameter is set to the name of the diagram type associated with the views. This diagram type must be defined for the currently open project.
getObjectTypeName in interface INgBehaviorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setObjectTypeName(String pVal)
throws IOException,
AutomationException
setObjectTypeName in interface INgBehaviorpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void set(String evtName,
int metaType,
String objectTypeName)
throws IOException,
AutomationException
set in interface INgBehaviorevtName - The evtName (in)metaType - A com.esri.arcgis.schematic.esriNgMetaType constant (in)objectTypeName - The objectTypeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete()
throws IOException,
AutomationException
Before deleting a behavior, check that its event name is not used by another behavior. For example, behaviors that display popup menus often trigger other behaviors.
delete in interface INgBehaviorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgProject getProject()
throws IOException,
AutomationException
getProject in interface INgBehaviorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.esri.arcgis.interop.DispatchIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.esri.arcgis.interop.DispatchIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||