|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgBehavior
public class NgBehavior
Behavior object.
| Constructor Summary | |
|---|---|
NgBehavior(Object obj)
Construct a NgBehavior using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
delete()
Deletes the behavior. |
boolean |
equals(Object o)
Compare this object with another |
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. |
int |
hashCode()
the hashcode for this object |
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. |
| 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 NgBehavior(Object obj)
throws IOException
obj to NgBehavior. *
NgBehavior o = (NgBehavior)obj; // will not work
NgBehavior o = new NgBehavior(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgBehavior theNgBehavior = (NgBehavior) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||