com.esri.arcgis.schematic
Class SchematicAlgoRotateNodesAlongLinks

java.lang.Object
  extended by com.esri.arcgis.schematic.SchematicAlgoRotateNodesAlongLinks
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, INgProjectEvents, ISchematicAlgorithm, ISchematicAlgorithmEvents, ISchematicAlgorithmParameters, ISchematicAlgoRotateNodesAlongLinks, ISupportErrorInfo, Serializable, EventListener

public class SchematicAlgoRotateNodesAlongLinks
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISchematicAlgoRotateNodesAlongLinks, INgProjectEvents, ISchematicAlgorithm, ISchematicAlgorithmEvents, ISchematicAlgorithmParameters, ISupportErrorInfo

Rotate Nodes Along Links schematic algorithm object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
SchematicAlgoRotateNodesAlongLinks()
          Constructs a SchematicAlgoRotateNodesAlongLinks using ArcGIS Engine.
SchematicAlgoRotateNodesAlongLinks(Object obj)
          Construct a SchematicAlgoRotateNodesAlongLinks using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void afterCloseProject(INgProjectEventsAfterCloseProjectEvent theEvent)
          Fires after the project closure.
 void afterExecuteAlgorithm(ISchematicAlgorithmEventsAfterExecuteAlgorithmEvent theEvent)
          Fires after any schematic algorithm execution on any view.
 void afterOpenDiagram(INgProjectEventsAfterOpenDiagramEvent theEvent)
          Fires after any diagram opening.
 void afterOpenProject(INgProjectEventsAfterOpenProjectEvent theEvent)
          Fires after the project opening.
 void afterOpenView(INgProjectEventsAfterOpenViewEvent theEvent)
          Fires after any view opening.
 void afterSaveProject(INgProjectEventsAfterSaveProjectEvent theEvent)
          Fires after the project saving.
 void beforeCloseDiagram(INgProjectEventsBeforeCloseDiagramEvent theEvent)
          Fires before any diagram closure.
 void beforeCloseProject(INgProjectEventsBeforeCloseProjectEvent theEvent)
          Fires before the project closes.
 void beforeCloseView(INgProjectEventsBeforeCloseViewEvent theEvent)
          Fires before any view closure.
 boolean beforeExecuteAlgorithm(ISchematicAlgorithmEventsBeforeExecuteAlgorithmEvent theEvent)
          Fires before any schematic algorithm execution on any view.
 void beforeInitProject(INgProjectEventsBeforeInitProjectEvent theEvent)
          Fires before the project initializes.
 void beforeOpenDiagram(INgProjectEventsBeforeOpenDiagramEvent theEvent)
          Fires before any diagram opening.
 void beforeOpenProject(INgProjectEventsBeforeOpenProjectEvent theEvent)
          Fires before the project opens.
 void beforeOpenView(INgProjectEventsBeforeOpenViewEvent theEvent)
          Fires before any view opening.
 boolean equals(Object o)
          Compare this object with another
 void execute(INgDiagram pDiag)
          Executes the Rotate Nodes Along Links schematic algorithm in the specified graphic diagram.
 void execute(INgView view, INgCancelTracker tracker)
          Executes the schematic algorithm.
 String getAlgorithmCLSID()
          CLSID of the schematic algorithm.
static String getClsid()
          getClsid.
 String getFlowUserDataName()
          Name of the userdata that determines the flow direction for each link.
 String getLabel()
          Label for the schematic algorithm that displays in the Layout Task dropdown list.
 double getOffset()
          Rotation angle in degrees that is combined with the computed rotation angle to rotate the symbols nodes.
 INgNames getParameterNames()
          List of the names for the schematic algorithm parameters.
 Object getParameterValue(String name)
          List of the values for the schematic algorithm parameters.
 INgProject getProject()
          Project the schematic algorithm is related to.
 int hashCode()
          the hashcode for this object
 void initialize(INgProject ngProject)
          Initializes the Rotate Nodes Along Links schematic algorithm for the specified graphic project.
 void interactiveUpdate(String diagramTypeName, boolean on)
          Enables the automatical execution of the Rotate Nodes Along Links algorithm each time the graphic elements contained in any diagram implemented by the specified graphic diagram type are moved.
 void interactiveUpdateByDiagram(String diagramTypeName, String diagramName, boolean on)
          Enables the automatical execution of the Rotate Nodes Along Links algorithm each time the graphic elements contained in the specified diagram implemented by the specified graphic diagram type are moved.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 boolean isAvailable()
          Indicates if the schematic algorithm is available from the Layout Task dropdown list.
 void isDiagramOpenedByFramework(INgProjectEventsIsDiagramOpenedByFrameworkEvent theEvent)
          Fires when opening any diagram.
 void isDiagramSavedByFramework(INgProjectEventsIsDiagramSavedByFrameworkEvent theEvent)
          Fires when saving any diagram.
 void isDigitEnabled(INgProjectEventsIsDigitEnabledEvent theEvent)
          Returns TRUE if the digitizing tool is enabled or not.
 void isDigitMadeByFramework(INgProjectEventsIsDigitMadeByFrameworkEvent theEvent)
          Fires when digitizing.
 void isDigitTypeEnabled(INgProjectEventsIsDigitTypeEnabledEvent theEvent)
          Returns TRUE if the digitizing is enabled for the 'eltType' element type.
 void isElementRemoved(INgProjectEventsIsElementRemovedEvent theEvent)
          Fires when removing any element in any diagram.
 boolean isEnabled(INgView view)
          Indicates if the schematic algorithm is enabled.
 boolean isFlowDirected()
          Indicates if the rotation angle for each symbol's node must be computed regarding to the flow orientation defined for the links.
 boolean isInteractiveUpdate(String diagramTypeName)
          Indicates if the Rotate Nodes Along Links algorithm must be automatically applied each time the graphic elements contained in any diagram implemented by the specified graphic diagram type are moved.
 boolean isInteractiveUpdateByDiagram(String diagramTypeName, String diagramName)
          Indicates if the Rotate Nodes Along Links algorithm must be automatically applied each time the graphic elements contained in the specified diagram implemented by the specified graphic diagram type are moved.
 boolean isInteractiveUpdateStatus()
          Indicates if the Automatically applied option is currently checked in the Geo - Rotate Nodes Along Links algorithm properties tab.
 void isPrintMadeByFramework(INgProjectEventsIsPrintMadeByFrameworkEvent theEvent)
          Fires when printing any view.
 void isRemoveEnabledOnDiagram(INgProjectEventsIsRemoveEnabledOnDiagramEvent theEvent)
          Fires when any diagram is activate.
 void isSessionSavedByFramework(INgProjectEventsIsSessionSavedByFrameworkEvent theEvent)
          Fires when saving any schematic session.
 void isViewDestroyedByFramework(INgProjectEventsIsViewDestroyedByFrameworkEvent theEvent)
          Fires when deleting any view.
 void nameOfDigitDrawing(INgProjectEventsNameOfDigitDrawingEvent theEvent)
          Fires when users clicks the 'point' point while the drawing digitizing mode is enabled for the 'drawingType' type of drawings in the 'Diagram' diagram.
 void nameOfDigitLink(INgProjectEventsNameOfDigitLinkEvent theEvent)
          Fires when users clicks on the 'n1' and 'n2' nodes while the link digitizing mode is enabled for the 'LinkType' type of links in the 'Diagram' diagram.
 void nameOfDigitNode(INgProjectEventsNameOfDigitNodeEvent theEvent)
          Fires when users clicks the 'point' point while the node digitizing mode is enabled for the 'nodeType' type of nodes in the 'Diagram' diagram.
 void onAskForSelectFromSchematic(INgProjectEventsOnAskForSelectFromSchematicEvent theEvent)
          Fires when the user asks to select the objects related to the active schematic view's selection set in a view other than a schematic view (that is, a GIS geographic view, for instance).
 void onAskForSelectInSchematic(INgProjectEventsOnAskForSelectInSchematicEvent theEvent)
          Fires when the user asks to select in the schematic views all elements related to the selection set from a view other than a schematic view (that is, a GIS geographic view, for instance).
 void onChangeExtent(INgProjectEventsOnChangeExtentEvent theEvent)
          Fires when the extent of any view changes.
 void onClickOnElement(INgProjectEventsOnClickOnElementEvent theEvent)
          Fires when any element located at any position is clicked in any view using any type mouse click (see esriNgMouseClick).
 void onClickOnElementType(INgProjectEventsOnClickOnElementTypeEvent theEvent)
          Fires when any legend entry related to an element group is clicked in the legend window using any type mouse click (see esriNgMouseClick).
 void onClickOnFlag(INgProjectEventsOnClickOnFlagEvent theEvent)
          Fires when any flag is clicked in any view at any position using any type mouse click (see esriNgMouseClick).
 void onClickOnProperty(INgProjectEventsOnClickOnPropertyEvent theEvent)
          Fires when any legend entry related to a property is clicked in the legend window using any type mouse click (see esriNgMouseClick).
 void onClickOnPropertyFilter(INgProjectEventsOnClickOnPropertyFilterEvent theEvent)
          Fires when any legend entry related to a property filter is clicked in the legend window using any type mouse click (see esriNgMouseClick).
 void onClickOnView(INgProjectEventsOnClickOnViewEvent theEvent)
          Fires when any type mouse click (see esriNgMouseClick) occurs at any position in any view.
 void onConnectionChange(INgProjectEventsOnConnectionChangeEvent theEvent)
          Fires when the user disconnects any link in any view.
 void onDropElements(INgProjectEventsOnDropElementsEvent theEvent)
          Fires when a set of elements is drag-and-dropped in any view.
 void onKeyDownOnView(INgProjectEventsOnKeyDownOnViewEvent theEvent)
          Fires when any keyboard key is pressed on the keyboard while any view is active.
 void onMoveElements(INgProjectEventsOnMoveElementsEvent theEvent)
          Fires when the user moves a set of elements with the mouse in any view.
 void onRedraw(INgProjectEventsOnRedrawEvent theEvent)
          Fires when any view is redrawn.
 void onRefreshToolbar(INgProjectEventsOnRefreshToolbarEvent theEvent)
          Fires when toolbars refresh.
 void onSelectionChange(INgProjectEventsOnSelectionChangeEvent theEvent)
          Fires when the selection set changes in any view.
 void onStatusChange(INgProjectEventsOnStatusChangeEvent theEvent)
          Fires when any status message changes.
 void onTrace(INgProjectEventsOnTraceEvent theEvent)
          Fires for debugging purposes to trace the programme according the 'level' trace.
 void setAvailable(boolean pVal)
          Indicates if the schematic algorithm is available from the Layout Task dropdown list.
 void setFlowDirected(boolean pOriented)
          Indicates if the rotation angle for each symbol's node must be computed regarding to the flow orientation defined for the links.
 void setFlowUserDataName(String flowUserDataName)
          Name of the userdata that determines the flow direction for each link.
 void setInteractiveUpdateStatus(boolean bStatus)
          Indicates if the Automatically applied option is currently checked in the Geo - Rotate Nodes Along Links algorithm properties tab.
 void setLabel(String pVal)
          Label for the schematic algorithm that displays in the Layout Task dropdown list.
 void setOffset(double pOffset)
          Rotation angle in degrees that is combined with the computed rotation angle to rotate the symbols nodes.
 void setParameterValue(String name, Object value)
          List of the values for the schematic algorithm parameters.
 
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

SchematicAlgoRotateNodesAlongLinks

public SchematicAlgoRotateNodesAlongLinks()
                                   throws IOException,
                                          UnknownHostException
Constructs a SchematicAlgoRotateNodesAlongLinks using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

SchematicAlgoRotateNodesAlongLinks

public SchematicAlgoRotateNodesAlongLinks(Object obj)
                                   throws IOException
Construct a SchematicAlgoRotateNodesAlongLinks using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SchematicAlgoRotateNodesAlongLinks.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems SchematicAlgoRotateNodesAlongLinks theSchematicAlgoRotateNodesAlongLinks = (SchematicAlgoRotateNodesAlongLinks) obj;
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

initialize

public void initialize(INgProject ngProject)
                throws IOException,
                       AutomationException
Initializes the Rotate Nodes Along Links schematic algorithm for the specified graphic project.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
initialize in interface ISchematicAlgorithm
Specified by:
initialize in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
ngProject - A reference to a com.esri.arcgis.schematic.INgProject (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

execute

public void execute(INgDiagram pDiag)
             throws IOException,
                    AutomationException
Executes the Rotate Nodes Along Links schematic algorithm in the specified graphic diagram.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
execute in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
pDiag - A reference to a com.esri.arcgis.schematic.INgDiagram (in, optional, pass 0 if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interactiveUpdate

public void interactiveUpdate(String diagramTypeName,
                              boolean on)
                       throws IOException,
                              AutomationException
Enables the automatical execution of the Rotate Nodes Along Links algorithm each time the graphic elements contained in any diagram implemented by the specified graphic diagram type are moved.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
interactiveUpdate in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
diagramTypeName - The diagramTypeName (in, optional, pass if not required)
on - The on (in, optional, pass true if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgoRotateNodesAlongLinks.isInteractiveUpdate(String)

interactiveUpdateByDiagram

public void interactiveUpdateByDiagram(String diagramTypeName,
                                       String diagramName,
                                       boolean on)
                                throws IOException,
                                       AutomationException
Enables the automatical execution of the Rotate Nodes Along Links algorithm each time the graphic elements contained in the specified diagram implemented by the specified graphic diagram type are moved.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
interactiveUpdateByDiagram in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
diagramTypeName - The diagramTypeName (in)
diagramName - The diagramName (in)
on - The on (in, optional, pass true if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgoRotateNodesAlongLinks.isInteractiveUpdateByDiagram(String, String)

isInteractiveUpdate

public boolean isInteractiveUpdate(String diagramTypeName)
                            throws IOException,
                                   AutomationException
Indicates if the Rotate Nodes Along Links algorithm must be automatically applied each time the graphic elements contained in any diagram implemented by the specified graphic diagram type are moved.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isInteractiveUpdate in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
diagramTypeName - The diagramTypeName (in)
Returns:
The on
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgoRotateNodesAlongLinks.interactiveUpdate(String, boolean)

isInteractiveUpdateByDiagram

public boolean isInteractiveUpdateByDiagram(String diagramTypeName,
                                            String diagramName)
                                     throws IOException,
                                            AutomationException
Indicates if the Rotate Nodes Along Links algorithm must be automatically applied each time the graphic elements contained in the specified diagram implemented by the specified graphic diagram type are moved.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isInteractiveUpdateByDiagram in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
diagramTypeName - The diagramTypeName (in)
diagramName - The diagramName (in)
Returns:
The on
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgoRotateNodesAlongLinks.interactiveUpdateByDiagram(String, String, boolean)

setFlowDirected

public void setFlowDirected(boolean pOriented)
                     throws IOException,
                            AutomationException
Indicates if the rotation angle for each symbol's node must be computed regarding to the flow orientation defined for the links.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setFlowDirected in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
pOriented - The pOriented (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgoRotateNodesAlongLinks.setFlowUserDataName(String)

isFlowDirected

public boolean isFlowDirected()
                       throws IOException,
                              AutomationException
Indicates if the rotation angle for each symbol's node must be computed regarding to the flow orientation defined for the links.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isFlowDirected in interface ISchematicAlgoRotateNodesAlongLinks
Returns:
The pOriented
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOffset

public void setOffset(double pOffset)
               throws IOException,
                      AutomationException
Rotation angle in degrees that is combined with the computed rotation angle to rotate the symbols nodes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setOffset in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
pOffset - The pOffset (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOffset

public double getOffset()
                 throws IOException,
                        AutomationException
Rotation angle in degrees that is combined with the computed rotation angle to rotate the symbols nodes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getOffset in interface ISchematicAlgoRotateNodesAlongLinks
Returns:
The pOffset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setInteractiveUpdateStatus

public void setInteractiveUpdateStatus(boolean bStatus)
                                throws IOException,
                                       AutomationException
Indicates if the Automatically applied option is currently checked in the Geo - Rotate Nodes Along Links algorithm properties tab.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setInteractiveUpdateStatus in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
bStatus - The bStatus (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isInteractiveUpdateStatus

public boolean isInteractiveUpdateStatus()
                                  throws IOException,
                                         AutomationException
Indicates if the Automatically applied option is currently checked in the Geo - Rotate Nodes Along Links algorithm properties tab.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isInteractiveUpdateStatus in interface ISchematicAlgoRotateNodesAlongLinks
Returns:
The bStatus
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgoRotateNodesAlongLinks.isInteractiveUpdate(String)

setFlowUserDataName

public void setFlowUserDataName(String flowUserDataName)
                         throws IOException,
                                AutomationException
Name of the userdata that determines the flow direction for each link.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setFlowUserDataName in interface ISchematicAlgoRotateNodesAlongLinks
Parameters:
flowUserDataName - The flowUserDataName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFlowUserDataName

public String getFlowUserDataName()
                           throws IOException,
                                  AutomationException
Name of the userdata that determines the flow direction for each link.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getFlowUserDataName in interface ISchematicAlgoRotateNodesAlongLinks
Returns:
The flowUserDataName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgoRotateNodesAlongLinks.setFlowDirected(boolean)

onKeyDownOnView

public void onKeyDownOnView(INgProjectEventsOnKeyDownOnViewEvent theEvent)
                     throws IOException,
                            AutomationException
Fires when any keyboard key is pressed on the keyboard while any view is active.

Description

If an event impacting a view is declared in the project parameters file, this event is triggered before the OnKeyDownOnView event.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onKeyDownOnView in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onClickOnView(com.esri.arcgis.schematic.INgProjectEventsOnClickOnViewEvent)

onClickOnView

public void onClickOnView(INgProjectEventsOnClickOnViewEvent theEvent)
                   throws IOException,
                          AutomationException
Fires when any type mouse click (see esriNgMouseClick) occurs at any position in any view.

Description

If an event impacting a view is declared in the project parameters file, this event is triggered before the OnClickOnView event.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onClickOnView in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onKeyDownOnView(com.esri.arcgis.schematic.INgProjectEventsOnKeyDownOnViewEvent)

onClickOnElement

public void onClickOnElement(INgProjectEventsOnClickOnElementEvent theEvent)
                      throws IOException,
                             AutomationException
Fires when any element located at any position is clicked in any view using any type mouse click (see esriNgMouseClick).

Description

If an event impacting an element is declared in the project parameters file, this event is triggered before the OnClickOnElement event.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onClickOnElement in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onMoveElements(com.esri.arcgis.schematic.INgProjectEventsOnMoveElementsEvent), INgProjectEvents.onClickOnFlag(com.esri.arcgis.schematic.INgProjectEventsOnClickOnFlagEvent)

onClickOnElementType

public void onClickOnElementType(INgProjectEventsOnClickOnElementTypeEvent theEvent)
                          throws IOException,
                                 AutomationException
Fires when any legend entry related to an element group is clicked in the legend window using any type mouse click (see esriNgMouseClick).

Description

If an event impacting an element type is declared in the project parameters file, this event is triggered before the OnClickOnElementType event.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onClickOnElementType in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onClickOnProperty(com.esri.arcgis.schematic.INgProjectEventsOnClickOnPropertyEvent)

onClickOnProperty

public void onClickOnProperty(INgProjectEventsOnClickOnPropertyEvent theEvent)
                       throws IOException,
                              AutomationException
Fires when any legend entry related to a property is clicked in the legend window using any type mouse click (see esriNgMouseClick).

Description

If an event impacting any legend entry related to a property is declared in the project parameters file, this event is triggered before the OnClickOnProperty event.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onClickOnProperty in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onClickOnPropertyFilter(com.esri.arcgis.schematic.INgProjectEventsOnClickOnPropertyFilterEvent)

onClickOnPropertyFilter

public void onClickOnPropertyFilter(INgProjectEventsOnClickOnPropertyFilterEvent theEvent)
                             throws IOException,
                                    AutomationException
Fires when any legend entry related to a property filter is clicked in the legend window using any type mouse click (see esriNgMouseClick).

Description

If an event impacting any legend entry related to a property filter is declared in the project parameters file, this event is triggered before the OnClickOnPropertyFilter event.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onClickOnPropertyFilter in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onClickOnProperty(com.esri.arcgis.schematic.INgProjectEventsOnClickOnPropertyEvent)

onClickOnFlag

public void onClickOnFlag(INgProjectEventsOnClickOnFlagEvent theEvent)
                   throws IOException,
                          AutomationException
Fires when any flag is clicked in any view at any position using any type mouse click (see esriNgMouseClick).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onClickOnFlag in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onClickOnElement(com.esri.arcgis.schematic.INgProjectEventsOnClickOnElementEvent)

onSelectionChange

public void onSelectionChange(INgProjectEventsOnSelectionChangeEvent theEvent)
                       throws IOException,
                              AutomationException
Fires when the selection set changes in any view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onSelectionChange in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onMoveElements

public void onMoveElements(INgProjectEventsOnMoveElementsEvent theEvent)
                    throws IOException,
                           AutomationException
Fires when the user moves a set of elements with the mouse in any view.

Description

The event procedure returns the deltaX and deltaY parameter values that specify the horizontal and vertical translation distance applied to the moved elements (as calculated in user coordinates).

Remarks

When elements are moved by programming using any "Move" method, the custom code specified on this event will be not fired. The OnMoveElements event is only triggered when schematic elements are moved using the GUI tools; that is when end-users move schematic elements using the mouse or the keyboard arrows. So if there are schematic relations as containers between schematics objects contained in a schematic diagram and you develop custom code that use any "Move" method, programming the relations redraw on the INgProjectEvents::OnMoveElements will be completely unuseful. In this case, you must force the relations redraw at the end of the move operations sequence in your custom procedure or customize the SchematicAlgorithmEvents::AfterExecuteAlgorithm event (when the "Move" methods are called during a custom algorithm).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onMoveElements in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onDropElements(com.esri.arcgis.schematic.INgProjectEventsOnDropElementsEvent)

onDropElements

public void onDropElements(INgProjectEventsOnDropElementsEvent theEvent)
                    throws IOException,
                           AutomationException
Fires when a set of elements is drag-and-dropped in any view.

Description

The event procedure returns the deltaX and deltaY parameter values that specify the horizontal and vertical translation distance applied to the moved elements (as calculated in user coordinates), and the targetX and targetY parameter values that provide the final X and Y coordinates for these moved elements.

Remarks

This callack is fired only when elements are moved when the Drag-an-Drop mode is enabled.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onDropElements in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onConnectionChange

public void onConnectionChange(INgProjectEventsOnConnectionChangeEvent theEvent)
                        throws IOException,
                               AutomationException
Fires when the user disconnects any link in any view.

Description

The event procedure indicates that the connections of the link ‘link’ in the view ‘view’ have been modified.

When this event is fired, the link which is being disconnected to its initial origin and/or extremity node can:

- have its FromNode and/or ToNode property set to NULL (case of a link which has just been disconnected without being reconnected to other existing nodes)

- have not NULL FromNode and ToNode properties: In the same user operation, the link has been disconnected and reconnected to an existing origin or extremity node.

By default, for disconnecting any link, you must enable the Edit/Move mode and maintain the Ctrl keyboard key pressed. In this case, any link's connection clicked and moved will be graphically modified.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onConnectionChange in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onAskForSelectInSchematic

public void onAskForSelectInSchematic(INgProjectEventsOnAskForSelectInSchematicEvent theEvent)
                               throws IOException,
                                      AutomationException
Fires when the user asks to select in the schematic views all elements related to the selection set from a view other than a schematic view (that is, a GIS geographic view, for instance).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onAskForSelectInSchematic in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onAskForSelectFromSchematic(com.esri.arcgis.schematic.INgProjectEventsOnAskForSelectFromSchematicEvent)

onAskForSelectFromSchematic

public void onAskForSelectFromSchematic(INgProjectEventsOnAskForSelectFromSchematicEvent theEvent)
                                 throws IOException,
                                        AutomationException
Fires when the user asks to select the objects related to the active schematic view's selection set in a view other than a schematic view (that is, a GIS geographic view, for instance).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onAskForSelectFromSchematic in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.onAskForSelectInSchematic(com.esri.arcgis.schematic.INgProjectEventsOnAskForSelectInSchematicEvent)

onTrace

public void onTrace(INgProjectEventsOnTraceEvent theEvent)
             throws IOException,
                    AutomationException
Fires for debugging purposes to trace the programme according the 'level' trace.

Description

Three trace levels are available:

- Schematic traces the program by returning errors only (esriNgErrorLevel).

- Schematic traces the program by returning errors and warning messages (esriNgWarningLevel)

- Schematic traces the program by returning errors, warning messages and information messages during the program execution (esriNgInformationLevel).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onTrace in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject.setTraceLevel(int)

onStatusChange

public void onStatusChange(INgProjectEventsOnStatusChangeEvent theEvent)
                    throws IOException,
                           AutomationException
Fires when any status message changes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onStatusChange in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onRefreshToolbar

public void onRefreshToolbar(INgProjectEventsOnRefreshToolbarEvent theEvent)
                      throws IOException,
                             AutomationException
Fires when toolbars refresh.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onRefreshToolbar in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject.refreshToolbars()

beforeInitProject

public void beforeInitProject(INgProjectEventsBeforeInitProjectEvent theEvent)
                       throws IOException,
                              AutomationException
Fires before the project initializes.

Description

This event is automatically triggered when the project is opened. For more details on the Schematics events' chaining during the project opening, please see the Remarks section available from the INgProject Open method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
beforeInitProject in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.beforeOpenProject(com.esri.arcgis.schematic.INgProjectEventsBeforeOpenProjectEvent)

beforeOpenProject

public void beforeOpenProject(INgProjectEventsBeforeOpenProjectEvent theEvent)
                       throws IOException,
                              AutomationException
Fires before the project opens.

Description

This event is automatically fired when the project is opened. For more details on the Schematics events' chaining during the project opening, please see the Remarks section available from the INgProject Open method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
beforeOpenProject in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.beforeInitProject(com.esri.arcgis.schematic.INgProjectEventsBeforeInitProjectEvent)

afterOpenProject

public void afterOpenProject(INgProjectEventsAfterOpenProjectEvent theEvent)
                      throws IOException,
                             AutomationException
Fires after the project opening.

Description

This event is automatically fired during the project opening process. For more details on the Schematics events' chaining during the project opening, please see the Remarks section available from the INgProject Open method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
afterOpenProject in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.beforeOpenProject(com.esri.arcgis.schematic.INgProjectEventsBeforeOpenProjectEvent), INgProjectEvents.afterOpenDiagram(com.esri.arcgis.schematic.INgProjectEventsAfterOpenDiagramEvent), INgProject.open(boolean, boolean)

afterSaveProject

public void afterSaveProject(INgProjectEventsAfterSaveProjectEvent theEvent)
                      throws IOException,
                             AutomationException
Fires after the project saving.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
afterSaveProject in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

beforeCloseProject

public void beforeCloseProject(INgProjectEventsBeforeCloseProjectEvent theEvent)
                        throws IOException,
                               AutomationException
Fires before the project closes.

Description

This event is automatically fired when the project is closing. For more details on the Schematics events' chaining during project closure, please see the Remarks section available from the INgProject Close method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
beforeCloseProject in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject.close(), INgProjectEvents.beforeCloseDiagram(com.esri.arcgis.schematic.INgProjectEventsBeforeCloseDiagramEvent)

afterCloseProject

public void afterCloseProject(INgProjectEventsAfterCloseProjectEvent theEvent)
                       throws IOException,
                              AutomationException
Fires after the project closure.

Description

This event is automatically fired when the project is closing. For more details on the Schematics events' chaining during project closure, please see the Remarks section available from the INgProject Close method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
afterCloseProject in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject.close(), INgProjectEvents.beforeCloseProject(com.esri.arcgis.schematic.INgProjectEventsBeforeCloseProjectEvent)

beforeOpenDiagram

public void beforeOpenDiagram(INgProjectEventsBeforeOpenDiagramEvent theEvent)
                       throws IOException,
                              AutomationException
Fires before any diagram opening.

Description

This event is automatically triggered when a diagram is opened. For more details on the Schematics events' chaining during any diagram opening, please see the Remarks section available from the INgDiagram Open method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
beforeOpenDiagram in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.afterOpenDiagram(com.esri.arcgis.schematic.INgProjectEventsAfterOpenDiagramEvent), INgDiagram.open()

afterOpenDiagram

public void afterOpenDiagram(INgProjectEventsAfterOpenDiagramEvent theEvent)
                      throws IOException,
                             AutomationException
Fires after any diagram opening.

Description

This event is automatically fired when a diagram is opened. For more details on the Schematics events' chaining during any diagram opening, please see the Remarks section available from the INgDiagram Open method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
afterOpenDiagram in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.beforeOpenDiagram(com.esri.arcgis.schematic.INgProjectEventsBeforeOpenDiagramEvent), INgDiagram.open()

beforeCloseDiagram

public void beforeCloseDiagram(INgProjectEventsBeforeCloseDiagramEvent theEvent)
                        throws IOException,
                               AutomationException
Fires before any diagram closure. Returns TRUE to abort the close process.

Description

The event tells that the diagram ‘diagram’ is being closed, and indicates that:

- The INgDiagram Close method has been called; that is the fromAPI parameter returns TRUE,

- The diagram has been closed by clicking the little cross button in the window upper right-hand corner; that is the fromAPI parameter returns FALSE.

Remarks

For more details on the Schematics events' chaining during the diagram closure, please see the Remarks section available from the INgDiagram Close method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
beforeCloseDiagram in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgDiagram.close(), INgProjectEvents.beforeCloseView(com.esri.arcgis.schematic.INgProjectEventsBeforeCloseViewEvent)

afterOpenView

public void afterOpenView(INgProjectEventsAfterOpenViewEvent theEvent)
                   throws IOException,
                          AutomationException
Fires after any view opening.

Description

This event is automatically triggered when a diagram is opened. For more details on the Schematics events' chaining during any diagram opening, please see the Remarks section available from the INgDiagram Open method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
afterOpenView in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.afterOpenDiagram(com.esri.arcgis.schematic.INgProjectEventsAfterOpenDiagramEvent)

beforeCloseView

public void beforeCloseView(INgProjectEventsBeforeCloseViewEvent theEvent)
                     throws IOException,
                            AutomationException
Fires before any view closure.

Description

The event tells that the view ‘view’ is being closed, and indicates that:

- The INgView Close method has been called; that is the fromAPI parameter returns TRUE,

- The view has been closed by clicking the little cross button in the window upper right-hand corner; that is the fromAPI parameter returns FALSE.

Remarks

For more details on the Schematics events' chaining during the diagram closure, please see the Remarks section available from the INgDiagram Close method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
beforeCloseView in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.close(), INgProjectEvents.beforeCloseDiagram(com.esri.arcgis.schematic.INgProjectEventsBeforeCloseDiagramEvent)

beforeOpenView

public void beforeOpenView(INgProjectEventsBeforeOpenViewEvent theEvent)
                    throws IOException,
                           AutomationException
Fires before any view opening. Returns the handle and the parent handle for the view.

Description

This event is automatically fired before a diagram is opened. By default, if windows are created by Schematics, the view handle number is 0, and the event does not need to be implemented. For more details on the Schematics events' chaining during any diagram opening, please see the Remarks section available from the INgDiagram Open method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
beforeOpenView in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.beforeOpenDiagram(com.esri.arcgis.schematic.INgProjectEventsBeforeOpenDiagramEvent)

isSessionSavedByFramework

public void isSessionSavedByFramework(INgProjectEventsIsSessionSavedByFrameworkEvent theEvent)
                               throws IOException,
                                      AutomationException
Fires when saving any schematic session. Returns TRUE if the session is saved by the framework, and FALSE if this is handled by the application.

Description

By default, when the schematic session is closed, Schematics asks user whether he wants to save the changes or not before closing it. If the IsSessionSavedByFramework event is set to return FALSE, Schematics will not ask anything

Note that if the session's SaveMode property is set, priority is given to this property: thus, if the IsSessionSavedByFramework event is set to return FALSE and if the SaveMode property is set to esriNgSaveByFramework, when the session is closed, user will be asked whether he wants to save the changes or not.

Remarks

For more details on the Schematics events' chaining during project closure, please see the Remarks section available from the INgProject Close method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isSessionSavedByFramework in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject, INgProjectViews.saveSession(String)

isDiagramSavedByFramework

public void isDiagramSavedByFramework(INgProjectEventsIsDiagramSavedByFrameworkEvent theEvent)
                               throws IOException,
                                      AutomationException
Fires when saving any diagram. Returns TRUE if the diagram is saved by the framework, and FALSE if this is handled by the application.

Description

By default, when a diagram is being closed, Schematics asks user if he wants to save the changes before closing it. If the IsDiagramSavedByFramework event is set to return FALSE for all diagrams, Schematics will not ask whether he wants to save them or not.

Note that if your diagram's SaveMode property is set, priority is given to this property: thus, if the IsDiagramSavedByFramework event is set to return FALSE for all diagrams and if, for a given diagram, the SaveMode property is set to esriNgSaveByFramework, when this diagram is being closed, user will be asked whether he wants to save his changes or not.

Remarks

For more details on the Schematics events' chaining during the diagram closure, please see the Remarks section available from the INgDiagram Close method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isDiagramSavedByFramework in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isSessionSavedByFramework(com.esri.arcgis.schematic.INgProjectEventsIsSessionSavedByFrameworkEvent), INgDiagram.save()

isViewDestroyedByFramework

public void isViewDestroyedByFramework(INgProjectEventsIsViewDestroyedByFrameworkEvent theEvent)
                                throws IOException,
                                       AutomationException
Fires when deleting any view. Returns TRUE if the view destruction is managed by the framework, and FALSE if this is handled by the application.

Description

The event tells that the view ‘view’ is being destroyed, and indicates that:

- The INgView Close method has been called; that is the fromAPI parameter returns TRUE,

- The view has been closed by clicking the little cross button in the window upper right-hand corner; that is the fromAPI parameter returns FALSE.

By default, if schematic windows are created by Schematics, this event does'nt need to be implemented.

Remarks

For more details on the Schematics events' chaining during the diagram closure, please see the Remarks section available from the INgDiagram Close method help-page.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isViewDestroyedByFramework in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isPrintMadeByFramework

public void isPrintMadeByFramework(INgProjectEventsIsPrintMadeByFrameworkEvent theEvent)
                            throws IOException,
                                   AutomationException
Fires when printing any view. Returns TRUE if the view printing is managed by the framework, and FALSE if this is handled by the application.

Description

By default, if the IsPrintMadeByFramework event is not implemented (or if it returns TRUE), Schematics brings up the default printing dialog box.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isPrintMadeByFramework in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.printView(String, boolean), INgView.printWithTitleBlock(int, com.esri.arcgis.schematic.INgDrawing, String, boolean)

isDiagramOpenedByFramework

public void isDiagramOpenedByFramework(INgProjectEventsIsDiagramOpenedByFrameworkEvent theEvent)
                                throws IOException,
                                       AutomationException
Fires when opening any diagram. Returns TRUE if the diagram opening is managed by the framework (that is, the predefined Schematics 'Select diagram to open' dialog box opens), and FALSE if this is handled by the application.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isDiagramOpenedByFramework in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject.openDiagramForm()

isDigitMadeByFramework

public void isDigitMadeByFramework(INgProjectEventsIsDigitMadeByFrameworkEvent theEvent)
                            throws IOException,
                                   AutomationException
Fires when digitizing. Returns TRUE if the digitizing is managed by the framework (that is, the predefined Schematics 'Select element type to create' dialog box opens), and FALSE if this is handled by the application.

Description

Generally, the schematic elements digitizing mode is activated by using the INgProject SetInteractor method, but you can also trigger the predefined CommandSetDigitMode command to activate this mode. In this case, the CommandSetDigitMode triggering automatically opens the predefined 'Select element type to create' dialog box. If you do not want this predefined dialog box to be opened and if you want to open your own applicative dialog box, you need to customize the IsDigitMadeByFramework event.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isDigitMadeByFramework in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isDigitEnabled(com.esri.arcgis.schematic.INgProjectEventsIsDigitEnabledEvent)

isElementRemoved

public void isElementRemoved(INgProjectEventsIsElementRemovedEvent theEvent)
                      throws IOException,
                             AutomationException
Fires when removing any element in any diagram. Returns TRUE if the element can be removed.

Description

Generally, Schematics applications use this event to remove an element in the database before Schematics graphically removes the related element in the diagrams where it appears (in the case the value returned by the event is TRUE).

Note that an element can be graphically removed without being removed in the database. In this case, updating the diagram at a later stage causes the element to re-appear.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isElementRemoved in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isRemoveEnabledOnDiagram(com.esri.arcgis.schematic.INgProjectEventsIsRemoveEnabledOnDiagramEvent)

isRemoveEnabledOnDiagram

public void isRemoveEnabledOnDiagram(INgProjectEventsIsRemoveEnabledOnDiagramEvent theEvent)
                              throws IOException,
                                     AutomationException
Fires when any diagram is activate. Returns TRUE if the removal is authorized in the active diagram.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isRemoveEnabledOnDiagram in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isElementRemoved(com.esri.arcgis.schematic.INgProjectEventsIsElementRemovedEvent)

isDigitEnabled

public void isDigitEnabled(INgProjectEventsIsDigitEnabledEvent theEvent)
                    throws IOException,
                           AutomationException
Returns TRUE if the digitizing tool is enabled or not.

Description

By default, the element digitizing is enabled. Schematics automatically calls this function when the esriNgModeDigit interactor is activated. If you want to lock digitizing, the IsDigitEnabled event must return FALSE.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isDigitEnabled in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isDigitMadeByFramework(com.esri.arcgis.schematic.INgProjectEventsIsDigitMadeByFrameworkEvent), INgProjectEvents.isDigitTypeEnabled(com.esri.arcgis.schematic.INgProjectEventsIsDigitTypeEnabledEvent)

isDigitTypeEnabled

public void isDigitTypeEnabled(INgProjectEventsIsDigitTypeEnabledEvent theEvent)
                        throws IOException,
                               AutomationException
Returns TRUE if the digitizing is enabled for the 'eltType' element type.

Description

By default when the predefined CommandSetDigitMode command is triggered and when the digitizing is handled by Schematics, the predefined 'Select element to create' dialog box contains the list of all the element types defined for the currently opened project. The IsDigitTypeEnabled event can be customized to keep some given element type from being digitized.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isDigitTypeEnabled in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isDigitEnabled(com.esri.arcgis.schematic.INgProjectEventsIsDigitEnabledEvent), INgProjectEvents.isDigitMadeByFramework(com.esri.arcgis.schematic.INgProjectEventsIsDigitMadeByFrameworkEvent)

nameOfDigitNode

public void nameOfDigitNode(INgProjectEventsNameOfDigitNodeEvent theEvent)
                     throws IOException,
                            AutomationException
Fires when users clicks the 'point' point while the node digitizing mode is enabled for the 'nodeType' type of nodes in the 'Diagram' diagram. Returns the name of the newly digitized node.

Description

This event procedure must be used to specify the name of the 'nodeType' node element type which is being created in the diagram 'diagram' at the 'point' position.

Because of Schematics data-driven philosophy, it is better to create the associated element in the database during the event procedure execution. If you do not create them, your new elements will not be displayed after having updated the diagram or the next time this diagram is opened again.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
nameOfDigitNode in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isDigitMadeByFramework(com.esri.arcgis.schematic.INgProjectEventsIsDigitMadeByFrameworkEvent), INgProjectEvents.isDigitTypeEnabled(com.esri.arcgis.schematic.INgProjectEventsIsDigitTypeEnabledEvent), INgDiagram.createNode(com.esri.arcgis.schematic.INgElementType, String, double, double, boolean)

nameOfDigitLink

public void nameOfDigitLink(INgProjectEventsNameOfDigitLinkEvent theEvent)
                     throws IOException,
                            AutomationException
Fires when users clicks on the 'n1' and 'n2' nodes while the link digitizing mode is enabled for the 'LinkType' type of links in the 'Diagram' diagram. Returns the name of the newly digitized link.

Description

This event must be used to specify the name of the 'linkType' link element type which is being created in the diagram 'diagram' between the node ‘n1’ and ‘n2’. The newly created link is attached to the ‘n1’ node via the ‘port1’ link port, and to the ‘n2’ node via the ‘port2’ link port. The ‘pts’ list of points returns the list of intermediate points defined during the digitizing (that is, the list of points defined each time the user has clicked in the background view between the moment the ‘n1’ origin node has been clicked and the moment the ‘n2’ extremity node has been clicked).

As is the case with a digitized node, it is better to create the associated element in the database during the event procedure execution. If you do not create them, your new elements will not be displayed after having updated the diagram or the next time this diagram is opened again.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
nameOfDigitLink in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isDigitMadeByFramework(com.esri.arcgis.schematic.INgProjectEventsIsDigitMadeByFrameworkEvent), INgProjectEvents.isDigitTypeEnabled(com.esri.arcgis.schematic.INgProjectEventsIsDigitTypeEnabledEvent), INgDiagram.createLink(com.esri.arcgis.schematic.INgElementType, String, com.esri.arcgis.schematic.INgNode, com.esri.arcgis.schematic.INgNode, int, int, boolean)

nameOfDigitDrawing

public void nameOfDigitDrawing(INgProjectEventsNameOfDigitDrawingEvent theEvent)
                        throws IOException,
                               AutomationException
Fires when users clicks the 'point' point while the drawing digitizing mode is enabled for the 'drawingType' type of drawings in the 'Diagram' diagram. Returns the name of the newly digitized drawing.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
nameOfDigitDrawing in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isDigitTypeEnabled(com.esri.arcgis.schematic.INgProjectEventsIsDigitTypeEnabledEvent), INgDiagram.createDrawing(com.esri.arcgis.schematic.INgElementType, String, double, double, boolean)

onRedraw

public void onRedraw(INgProjectEventsOnRedrawEvent theEvent)
              throws IOException,
                     AutomationException
Fires when any view is redrawn.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onRedraw in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.redraw(int)

onChangeExtent

public void onChangeExtent(INgProjectEventsOnChangeExtentEvent theEvent)
                    throws IOException,
                           AutomationException
Fires when the extent of any view changes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
onChangeExtent in interface INgProjectEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

execute

public void execute(INgView view,
                    INgCancelTracker tracker)
             throws IOException,
                    AutomationException
Executes the schematic algorithm.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
execute in interface ISchematicAlgorithm
Parameters:
view - A reference to a com.esri.arcgis.schematic.INgView (in, optional, pass 0 if not required)
tracker - A reference to a com.esri.arcgis.schematic.INgCancelTracker (in, optional, pass 0 if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEnabled

public boolean isEnabled(INgView view)
                  throws IOException,
                         AutomationException
Indicates if the schematic algorithm is enabled. That is, if the Apply button is available.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isEnabled in interface ISchematicAlgorithm
Parameters:
view - A reference to a com.esri.arcgis.schematic.INgView (in, optional, pass 0 if not required)
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isAvailable

public boolean isAvailable()
                    throws IOException,
                           AutomationException
Indicates if the schematic algorithm is available from the Layout Task dropdown list.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isAvailable in interface ISchematicAlgorithm
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAvailable

public void setAvailable(boolean pVal)
                  throws IOException,
                         AutomationException
Indicates if the schematic algorithm is available from the Layout Task dropdown list.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setAvailable in interface ISchematicAlgorithm
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLabel

public String getLabel()
                throws IOException,
                       AutomationException
Label for the schematic algorithm that displays in the Layout Task dropdown list.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getLabel in interface ISchematicAlgorithm
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLabel

public void setLabel(String pVal)
              throws IOException,
                     AutomationException
Label for the schematic algorithm that displays in the Layout Task dropdown list.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setLabel in interface ISchematicAlgorithm
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAlgorithmCLSID

public String getAlgorithmCLSID()
                         throws IOException,
                                AutomationException
CLSID of the schematic algorithm.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getAlgorithmCLSID in interface ISchematicAlgorithm
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getProject

public INgProject getProject()
                      throws IOException,
                             AutomationException
Project the schematic algorithm is related to.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getProject in interface ISchematicAlgorithm
Returns:
A reference to a com.esri.arcgis.schematic.INgProject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

beforeExecuteAlgorithm

public boolean beforeExecuteAlgorithm(ISchematicAlgorithmEventsBeforeExecuteAlgorithmEvent theEvent)
                               throws IOException,
                                      AutomationException
Fires before any schematic algorithm execution on any view. Returns TRUE if the schematic algorithm must be interrupted.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
beforeExecuteAlgorithm in interface ISchematicAlgorithmEvents
Parameters:
theEvent - The event
Returns:
The pCancel
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgorithmEvents.afterExecuteAlgorithm(com.esri.arcgis.schematic.ISchematicAlgorithmEventsAfterExecuteAlgorithmEvent)

afterExecuteAlgorithm

public void afterExecuteAlgorithm(ISchematicAlgorithmEventsAfterExecuteAlgorithmEvent theEvent)
                           throws IOException,
                                  AutomationException
Fires after any schematic algorithm execution on any view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
afterExecuteAlgorithm in interface ISchematicAlgorithmEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgorithmEvents.beforeExecuteAlgorithm(com.esri.arcgis.schematic.ISchematicAlgorithmEventsBeforeExecuteAlgorithmEvent)

getParameterNames

public INgNames getParameterNames()
                           throws IOException,
                                  AutomationException
List of the names for the schematic algorithm parameters.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getParameterNames in interface ISchematicAlgorithmParameters
Returns:
A reference to a com.esri.arcgis.schematic.INgNames
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
ISchematicAlgorithmParameters.setParameterValue(String, java.lang.Object)

setParameterValue

public void setParameterValue(String name,
                              Object value)
                       throws IOException,
                              AutomationException
List of the values for the schematic algorithm parameters.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setParameterValue in interface ISchematicAlgorithmParameters
Parameters:
name - The name (in)
value - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getParameterValue

public Object getParameterValue(String name)
                         throws IOException,
                                AutomationException
List of the values for the schematic algorithm parameters.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getParameterValue in interface ISchematicAlgorithmParameters
Parameters:
name - The name (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Description

Indicates whether the interface supports IErrorInfo.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.