DroidDiagram Programmer's Guide
DiagramListener Members
Methods
 


Defines events raised by DroidDiagram in response to users actions.

The following tables list the members exposed by the DiagramListener type.

 Public Methods

  Name Description

actionRecorded

Raised when an action is recorded in the undo buffer.

actionRecording

A validation event raised before an action is recorded in the undo buffer.

actionRedone

Raised when an action is redone.

actionUndone

Raised when an action is undone.

activeLayerChanged

Raised when the diagram's active layer has changed.

cellClicked

Called when a table cell is clicked.

cellDoubleClicked

Raised when the user double-clicks a table's cell.

cellTextEdited

Raised when the user edits the text of a table's cell.

cellTextEditing

A validation event that lets you prevent users from editing the text of a table's cell.

clicked

Raised when the user clicks the diagram at a point where no items are located.

containerChildAdded

Raised when a node is added to a ContainerNode, either programmatically or by the user.

containerChildRemoved

Raised when a node is removed from a ContainerNode, either programmatically or by the user.

containerFolded

Raised when the user folds a container by clicking the arrow-up button in the container's caption area.

containerUnfolded

Raised when the user unfolds a container by clicking the arrow-down button in the container's caption area.

deserializeControl

Lets you load the attributes of controls hosted inside ControlNode objects.

deserializeTag

Raised when the Diagram.setTag of a diagram item must be deserialized from XML format.

doubleClicked

Raised when the user double-clicks the diagram at a point where no items are located.

drawAdjustmentHandles

Raised when custom adjustment handles must be drawn.

drawAnchorPoint

Raised when an anchor point must be custom drawn.

drawBackground

Raised to let you custom draw the diagram background.

drawCell

Raised when a table's cell must be custom drawn.

drawForeground

Raised to let you custom draw the diagram foreground.

drawLink

Raised when a diagram link must be custom drawn.

drawNode

Raised when a diagram node must be custom drawn.

enterInplaceEditMode

Called when entering in-place editing mode.

expandButtonClicked

Raised when the user clicks the [+/-] button of a DiagramNode.setExpandable node.

groupDestroyed

Raised when a Group object is destroyed.

hitTestAdjustmentHandles

Raised to perform custom hit testing of item's adjustment handles.

initializeLink

Raised when the user starts drawing a new link, just after the DiagramLink instance is created.

initializeNode

Raised when the user starts drawing a new node, just after the DiagramNode instance is created.

itemAdded

Raised when an item is added to the diagram, either programmatically or interactively.

itemLoaded

Raised when an item is loaded from a file.

itemRemoved

Raised when an item is removed from the diagram, either programmatically or interactively.

leaveInplaceEditMode

Called when an in-place editing is accepted or rejected.

linkActivated

Raised when a link becomes the Diagram.setActiveItem.

linkClicked

Raised when the user clicks a link.

linkCreated

Raised when the user draws a new link.

linkCreating

A validation event raised while the user is drawing a new link.

linkDeactivated

Raised when a link is no longer the Diagram.setActiveItem.

linkDeleted

Raised when a link is deleted, either programmatically or by the user.

linkDeleting

Raised when the user tries to delete a link, this event lets you cancel the operation.

linkDeselected

Raised when a link is deselected, either programmatically or by the user.

linkDoubleClicked

Raised when the user double-clicks a link.

linkModified

Raised when the user moves any control point of a link.

linkModifying

A validation event raised while the user is modifying a link.

linkPointerEnter

Called when the pointer enters a link. Use the setTrackPointedItem method to enable this event.

linkPointerLeave

Called when the pointer leaves a link. Use the setTrackPointedItem method to enable this event.

linkRouted

Raised when a link is routed by the auto-routing algorithm.

linkSelected

Raised when a link is selected, either programmatically or by the user.

linkSelecting

Raised when the user tries to select a link, this event lets you cancel the operation.

linkSplit

Raised when the user splits a link segment interactively.

linkStartModifying

A validation event raised when the user starts modifying a link.

linkTextEdited

Raised when the user edits the text of a link.

linkTextEditing

A validation event that lets you approve or reject changes made to the text of a link.

nodeActivated

Raised when a node becomes the Diagram.setActiveItem.

nodeClicked

Raised when the user clicks a node.

nodeCreated

Raised when the user draws a new node.

nodeCreating

A validation event raised while the user is drawing a new node.

nodeDeactivated

Raised when a node is no longer the active item.

nodeDeleted

Raised when a node is deleted, either programmatically or by the user.

nodeDeleting

Raised when the user tries to delete a node, this event lets you cancel the operation.

nodeDeselected

Raised when a node is deselected, either programmatically or by the user.

nodeDoubleClicked

Raised when the user double-clicks a node.

nodeModified

Raised when the user moves or resizes a node.

nodeModifying

A validation event raised while the user is moving or resizing a node.

nodePointerEnter

Called when the pointer enters a node. Use the setTrackPointedItem method to enable this event.

nodePointerLeave

Called when the pointer leaves a node. Use the setTrackPointedItem method to enable this event.

nodeSelected

Raised when a node is selected, either programmatically or by the user.

nodeSelecting

Raised when the user tries to select a node, this event lets you cancel the operation.

nodeStartModifying

A validation event raised when the user starts modifying a node.

nodeTextEdited

Raised when the user edits the text of a node.

nodeTextEditing

A validation event that lets you approve or reject changes made to the text of a node.

repaint

Raised when the diagram views should be repainted.

requestCacheReset

Raised when an object within the diagram requests a reset of the cached bitmap.

selectionChanged

Called when an item is added to or removed from the selection.

selectionModified

Called when multiple selected items are moved or resized.

selectionModifying

Raised while the user is moving or resizing multiple selected items, this event lets you cancel the modification.

serializeControl

Lets you save the attributes of controls hosted inside ControlNode objects.

serializeTag

Raised when the tag of a diagram item must be serialized into an XML document.

tableSectionCollapsed

Called when a table section is collapsed

tableSectionExpanded

Called when a table section is expanded

treeCollapsed

Raised when a user collapses a tree branch by clicking the [-] button of a expandable node.

treeExpanded

Raised when a user expands a tree branch by clicking the [+] button of a expandable node.

treeItemTextEdited

Raised when the user edits the text of a tree item.

validateAnchorPoint

A validation event that lets you approve or reject connecting a link to an anchor point.

viewportChanged

 

viewRemoved

Raised when a DiagramView is detached from this diagram.

 See Also

DiagramListener Interface
com.mindfusion.diagramming Namespace