|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INgBehavior
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.
| Method Summary | |
|---|---|
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 |
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. |
| Method Detail |
|---|
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).
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setCommand(INgCommand pVal)
throws IOException,
AutomationException
pVal - A reference to a com.esri.arcgis.schematic.INgCommand (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setEventName(String pVal)
throws IOException,
AutomationException
pVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getMetaType()
throws IOException,
AutomationException
Here are the list of the MetaType values that are available
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setMetaType(int pVal)
throws IOException,
AutomationException
pVal - A com.esri.arcgis.schematic.esriNgMetaType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setObjectTypeName(String pVal)
throws IOException,
AutomationException
pVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void set(String evtName,
int metaType,
String objectTypeName)
throws IOException,
AutomationException
evtName - 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.
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.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgProject getProject()
throws IOException,
AutomationException
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 | ||||||||