com.mindfusion.diagramming
Interface DiagramListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
DiagramAdapter, DiagramApplet

public interface DiagramListener
extends java.util.EventListener

Defines events raised by JDiagram in response to users actions.


Method Summary
 void actionRecorded(UndoEvent e)
          Raised when an action is recorded in the undo buffer.
 void actionRecording(UndoValidationEvent e)
          A validation event raised before an action is recorded in the undo buffer.
 void actionRedone(UndoEvent e)
          Raised when an action is redone.
 void actionUndone(UndoEvent e)
          Raised when an action is undone.
 void cellClicked(CellEvent e)
          Called when a table cell is clicked.
 void cellDoubleClicked(CellEvent e)
          Raised when the user double-clicks a table's cell.
 void cellTextEdited(EditCellTextEvent e)
          Raised when the user edits the text of a table's cell.
 void cellTextEditing(CellValidationEvent e)
          A validation event that lets you prevent users from editing the text of a table's cell.
 void clicked(DiagramEvent e)
          Raised when the user clicks the diagram at a point where no items are located.
 void containerChildAdded(ContainerChildEvent e)
          Raised when a node is added to a ContainerNode, either programmatically or by the user.
 void containerChildRemoved(ContainerChildEvent e)
          Raised when a node is removed from a ContainerNode, either programmatically or by the user.
 void containerFolded(NodeEvent e)
          Raised when the user folds a container by clicking the arrow-up button in the container's caption area.
 void containerUnfolded(NodeEvent e)
          Raised when the user unfolds a container by clicking the arrow-down button in the container's caption area.
 void deserializeTag(SerializeTagEvent e)
          Raised when the tag of a diagram item must be deserialized from XML format.
 void doubleClicked(DiagramEvent e)
          Raised when the user double-clicks the diagram at a point where no items are located.
 void drawAnchorPoint(DrawAnchorPointEvent e)
          Raised when an anchor point must be custom drawn.
 void drawBackground(DiagramEvent e)
          Raised to let you custom draw the diagram background.
 void drawCell(DrawCellEvent e)
          Raised when a table's cell must be custom drawn.
 void drawForeground(DiagramEvent e)
          Raised to let you custom draw the diagram foreground.
 void drawLink(DrawLinkEvent e)
          Raised when a diagram link must be custom drawn.
 void drawNode(DrawNodeEvent e)
          Raised when a diagram node must be custom drawn.
 void enterInplaceEditMode(InPlaceEditEvent e)
          Called when entering inplace-edit mode.
 void expandButtonClicked(NodeEvent e)
          Raised when the user clicks the [±] button of a expandable node.
 void groupDestroyed(GroupEvent e)
          Raised when a Group object is destroyed.
 void imageLoaded(ImageLoadedEvent e)
          Called when image download initiated with Diagram.setImageUrl completes
 void initializeLink(LinkEvent e)
          Raised when the user starts drawing a new link, just after the DiagramLink instance is created.
 void initializeNode(NodeEvent e)
          Raised when the user starts drawing a new node, just after the DiagramNode instance is created.
 void itemAdded(ItemEvent e)
          Raised when an item is added to the diagram, either programmatically or interactively.
 void itemRemoved(ItemEvent e)
          Raised when an item is removed from the diagram, either programmatically or interactively.
 void leaveInplaceEditMode(InPlaceEditEvent e)
          Called when an inplace edit is accepted or rejected
 void linkActivated(LinkEvent e)
          Raised when a link becomes the activeItem.
 void linkClicked(LinkEvent e)
          Raised when the user clicks a link.
 void linkCreated(LinkEvent e)
          Raised when the user draws a new link.
 void linkCreating(LinkValidationEvent e)
          A validation event raised while the user is drawing a new link.
 void linkDeactivated(LinkEvent e)
          Raised when a link is no longer the active Item.
 void linkDeleted(LinkEvent e)
          Raised when a link is deleted, either programmatically or by the user.
 void linkDeleting(LinkValidationEvent e)
          Raised when the user tries to delete a link, this event lets you cancel the operation.
 void linkDeselected(LinkEvent e)
          Raised when a link is deselected, either programmatically or by the user.
 void linkDoubleClicked(LinkEvent e)
          Raised when the user double-clicks a link.
 void linkModified(LinkEvent e)
          Raised when the user moves any control point of a link.
 void linkModifying(LinkValidationEvent e)
          A validation event raised while the user is modifying a link.
 void linkMouseEnter(LinkEvent e)
          Called when the mouse pointer enters a link.
 void linkMouseLeave(LinkEvent e)
          Called when the mouse pointer leaves a link.
 void linkRouted(LinkEvent e)
          Raised when a link is routed by the auto-routing algorithm.
 void linkSelected(LinkEvent e)
          Raised when a link is selected, either programmatically or by the user.
 void linkSelecting(LinkValidationEvent e)
          Raised when the user tries to select a link, this event lets you cancel the operation.
 void linkStartModifying(LinkValidationEvent e)
          A validation event raised when the user starts modifying a link.
 void linkTextEdited(EditLinkTextEvent e)
          Raised when the user edits the text of a link.
 void linkTextEditing(LinkValidationEvent e)
          A validation event that lets you approve or reject changes made to the text of a link.
 void nodeActivated(NodeEvent e)
          Raised when a node becomes the active Item.
 void nodeClicked(NodeEvent e)
          Raised when the user clicks a node.
 void nodeCreated(NodeEvent e)
          Raised when the user draws a new node.
 void nodeCreating(NodeValidationEvent e)
          A validation event raised while the user is drawing a new node.
 void nodeDeactivated(NodeEvent e)
          Raised when a node is no longer the active Item.
 void nodeDeleted(NodeEvent e)
          Raised when a node is deleted, either programmatically or by the user.
 void nodeDeleting(NodeValidationEvent e)
          Raised when the user tries to delete a node, this event lets you cancel the operation.
 void nodeDeselected(NodeEvent e)
          Raised when a node is deselected, either programmatically or by the user.
 void nodeDoubleClicked(NodeEvent e)
          Raised when the user double-clicks a node.
 void nodeModified(NodeEvent e)
          Raised when the user moves or resizes a node.
 void nodeModifying(NodeValidationEvent e)
          A validation event raised while the user is moving or resizing a node.
 void nodeMouseEnter(NodeEvent e)
          Called when the mouse pointer enters a node.
 void nodeMouseLeave(NodeEvent e)
          Called when the mouse pointer leaves a node.
 void nodeSelected(NodeEvent e)
          Raised when a node is selected, either programmatically or by the user.
 void nodeSelecting(NodeValidationEvent e)
          Raised when the user tries to select a node, this event lets you cancel the operation.
 void nodeStartModifying(NodeValidationEvent e)
          A validation event raised when the user starts modifying a node.
 void nodeTextEdited(EditNodeTextEvent e)
          Raised when the user edits the text of a node.
 void nodeTextEditing(NodeValidationEvent e)
          A validation event that lets you approve or reject changes made to the text of a node.
 void repaint(RepaintEvent e)
          Raised when the diagram views should be repainted.
 void selectionMoved(java.util.EventObject e)
          Called when multiple selected items are moved.
 void selectionMoving(ValidationEvent e)
          Raised while the user is moving multiple selected items, this event lets you cancel the modification.
 void serializeTag(SerializeTagEvent e)
          Raised when the tag of a diagram item must be serialized into an XML document.
 void tableSectionCollapsed(RowEvent e)
          Called when a table section is collapsed
 void tableSectionExpanded(RowEvent e)
          Called when a table section is expanded
 void treeCollapsed(NodeEvent e)
          Raised when a user collapses a tree branch by clicking the [-] button of a expandable node.
 void treeExpanded(NodeEvent e)
          Raised when a user expands a tree branch by clicking the [+] button of a expandable node.
 void treeItemTextEdited(EditTreeItemTextEvent e)
           
 void validateAnchorPoint(LinkValidationEvent e)
          A validation event that lets you approve or reject connecting a link to an anchor point.
 void viewportChanged()
           
 void viewRemoved(ValidationEvent e)
          Raised when a DiagramView is detached from this diagram.
 

Method Detail

initializeLink

void initializeLink(LinkEvent e)
Raised when the user starts drawing a new link, just after the DiagramLink instance is created.


linkCreated

void linkCreated(LinkEvent e)
Raised when the user draws a new link.


linkModified

void linkModified(LinkEvent e)
Raised when the user moves any control point of a link.


linkClicked

void linkClicked(LinkEvent e)
Raised when the user clicks a link.


linkDoubleClicked

void linkDoubleClicked(LinkEvent e)
Raised when the user double-clicks a link.


linkSelected

void linkSelected(LinkEvent e)
Raised when a link is selected, either programmatically or by the user.


linkActivated

void linkActivated(LinkEvent e)
Raised when a link becomes the activeItem.


linkDeselected

void linkDeselected(LinkEvent e)
Raised when a link is deselected, either programmatically or by the user.


linkDeactivated

void linkDeactivated(LinkEvent e)
Raised when a link is no longer the active Item.


linkDeleted

void linkDeleted(LinkEvent e)
Raised when a link is deleted, either programmatically or by the user.


linkRouted

void linkRouted(LinkEvent e)
Raised when a link is routed by the auto-routing algorithm.


initializeNode

void initializeNode(NodeEvent e)
Raised when the user starts drawing a new node, just after the DiagramNode instance is created.


nodeCreated

void nodeCreated(NodeEvent e)
Raised when the user draws a new node.


nodeModified

void nodeModified(NodeEvent e)
Raised when the user moves or resizes a node.


nodeClicked

void nodeClicked(NodeEvent e)
Raised when the user clicks a node.


nodeDoubleClicked

void nodeDoubleClicked(NodeEvent e)
Raised when the user double-clicks a node.


nodeSelected

void nodeSelected(NodeEvent e)
Raised when a node is selected, either programmatically or by the user.


nodeActivated

void nodeActivated(NodeEvent e)
Raised when a node becomes the active Item.


nodeDeselected

void nodeDeselected(NodeEvent e)
Raised when a node is deselected, either programmatically or by the user.


nodeDeactivated

void nodeDeactivated(NodeEvent e)
Raised when a node is no longer the active Item.


nodeDeleted

void nodeDeleted(NodeEvent e)
Raised when a node is deleted, either programmatically or by the user.


expandButtonClicked

void expandButtonClicked(NodeEvent e)
Raised when the user clicks the [±] button of a expandable node.


treeExpanded

void treeExpanded(NodeEvent e)
Raised when a user expands a tree branch by clicking the [+] button of a expandable node.


treeCollapsed

void treeCollapsed(NodeEvent e)
Raised when a user collapses a tree branch by clicking the [-] button of a expandable node.


containerFolded

void containerFolded(NodeEvent e)
Raised when the user folds a container by clicking the arrow-up button in the container's caption area.


containerUnfolded

void containerUnfolded(NodeEvent e)
Raised when the user unfolds a container by clicking the arrow-down button in the container's caption area.


containerChildAdded

void containerChildAdded(ContainerChildEvent e)
Raised when a node is added to a ContainerNode, either programmatically or by the user.


containerChildRemoved

void containerChildRemoved(ContainerChildEvent e)
Raised when a node is removed from a ContainerNode, either programmatically or by the user.


linkCreating

void linkCreating(LinkValidationEvent e)
A validation event raised while the user is drawing a new link.


linkModifying

void linkModifying(LinkValidationEvent e)
A validation event raised while the user is modifying a link.


linkStartModifying

void linkStartModifying(LinkValidationEvent e)
A validation event raised when the user starts modifying a link.


linkSelecting

void linkSelecting(LinkValidationEvent e)
Raised when the user tries to select a link, this event lets you cancel the operation.


linkDeleting

void linkDeleting(LinkValidationEvent e)
Raised when the user tries to delete a link, this event lets you cancel the operation.


validateAnchorPoint

void validateAnchorPoint(LinkValidationEvent e)
A validation event that lets you approve or reject connecting a link to an anchor point.


linkTextEditing

void linkTextEditing(LinkValidationEvent e)
A validation event that lets you approve or reject changes made to the text of a link.


nodeCreating

void nodeCreating(NodeValidationEvent e)
A validation event raised while the user is drawing a new node.


nodeModifying

void nodeModifying(NodeValidationEvent e)
A validation event raised while the user is moving or resizing a node.


nodeStartModifying

void nodeStartModifying(NodeValidationEvent e)
A validation event raised when the user starts modifying a node.


nodeSelecting

void nodeSelecting(NodeValidationEvent e)
Raised when the user tries to select a node, this event lets you cancel the operation.


nodeDeleting

void nodeDeleting(NodeValidationEvent e)
Raised when the user tries to delete a node, this event lets you cancel the operation.


nodeTextEditing

void nodeTextEditing(NodeValidationEvent e)
A validation event that lets you approve or reject changes made to the text of a node.


cellClicked

void cellClicked(CellEvent e)
Called when a table cell is clicked.

Parameters:
e - A CellEvent object providing information about the event.

cellDoubleClicked

void cellDoubleClicked(CellEvent e)
Raised when the user double-clicks a table's cell.


cellTextEditing

void cellTextEditing(CellValidationEvent e)
A validation event that lets you prevent users from editing the text of a table's cell.


groupDestroyed

void groupDestroyed(GroupEvent e)
Raised when a Group object is destroyed.


tableSectionExpanded

void tableSectionExpanded(RowEvent e)
Called when a table section is expanded

Parameters:
e - A RowEvent object providing information about the event.

tableSectionCollapsed

void tableSectionCollapsed(RowEvent e)
Called when a table section is collapsed

Parameters:
e - A RowEvent object providing information about the event.

drawBackground

void drawBackground(DiagramEvent e)
Raised to let you custom draw the diagram background.


drawForeground

void drawForeground(DiagramEvent e)
Raised to let you custom draw the diagram foreground.


clicked

void clicked(DiagramEvent e)
Raised when the user clicks the diagram at a point where no items are located.


doubleClicked

void doubleClicked(DiagramEvent e)
Raised when the user double-clicks the diagram at a point where no items are located.


drawLink

void drawLink(DrawLinkEvent e)
Raised when a diagram link must be custom drawn.


drawNode

void drawNode(DrawNodeEvent e)
Raised when a diagram node must be custom drawn.


drawCell

void drawCell(DrawCellEvent e)
Raised when a table's cell must be custom drawn.


drawAnchorPoint

void drawAnchorPoint(DrawAnchorPointEvent e)
Raised when an anchor point must be custom drawn.


linkTextEdited

void linkTextEdited(EditLinkTextEvent e)
Raised when the user edits the text of a link.


nodeTextEdited

void nodeTextEdited(EditNodeTextEvent e)
Raised when the user edits the text of a node.


cellTextEdited

void cellTextEdited(EditCellTextEvent e)
Raised when the user edits the text of a table's cell.


treeItemTextEdited

void treeItemTextEdited(EditTreeItemTextEvent e)

actionRecorded

void actionRecorded(UndoEvent e)
Raised when an action is recorded in the undo buffer.


actionUndone

void actionUndone(UndoEvent e)
Raised when an action is undone.


actionRedone

void actionRedone(UndoEvent e)
Raised when an action is redone.


actionRecording

void actionRecording(UndoValidationEvent e)
A validation event raised before an action is recorded in the undo buffer.


selectionMoving

void selectionMoving(ValidationEvent e)
Raised while the user is moving multiple selected items, this event lets you cancel the modification.


nodeMouseEnter

void nodeMouseEnter(NodeEvent e)
Called when the mouse pointer enters a node. Use the setTrackPointedItem method to enable this event.

Parameters:
e - A NodeEvent object providing information about the event.

nodeMouseLeave

void nodeMouseLeave(NodeEvent e)
Called when the mouse pointer leaves a node. Use the setTrackPointedItem method to enable this event.

Parameters:
e - A NodeEvent object providing information about the event.

linkMouseEnter

void linkMouseEnter(LinkEvent e)
Called when the mouse pointer enters a link. Use the setTrackPointedItem method to enable this event.

Parameters:
e - A LinkEvent object providing information about the event.

linkMouseLeave

void linkMouseLeave(LinkEvent e)
Called when the mouse pointer leaves a link. Use the setTrackPointedItem method to enable this event.

Parameters:
e - A LinkEvent object providing information about the event.

enterInplaceEditMode

void enterInplaceEditMode(InPlaceEditEvent e)
Called when entering inplace-edit mode.

Parameters:
e - An InPlaceEditEvent object providing information about the event.

leaveInplaceEditMode

void leaveInplaceEditMode(InPlaceEditEvent e)
Called when an inplace edit is accepted or rejected

Parameters:
e - An InPlaceEditEvent object providing information about the event.

repaint

void repaint(RepaintEvent e)
Raised when the diagram views should be repainted.


viewportChanged

void viewportChanged()

imageLoaded

void imageLoaded(ImageLoadedEvent e)
Called when image download initiated with Diagram.setImageUrl completes

Parameters:
e - An ImageLoadedEvent object that provides more information about the event.

selectionMoved

void selectionMoved(java.util.EventObject e)
Called when multiple selected items are moved.

Parameters:
e - An EventObject providing information about the event.

itemAdded

void itemAdded(ItemEvent e)
Raised when an item is added to the diagram, either programmatically or interactively.


itemRemoved

void itemRemoved(ItemEvent e)
Raised when an item is removed from the diagram, either programmatically or interactively.


viewRemoved

void viewRemoved(ValidationEvent e)
Raised when a DiagramView is detached from this diagram.


serializeTag

void serializeTag(SerializeTagEvent e)
Raised when the tag of a diagram item must be serialized into an XML document.


deserializeTag

void deserializeTag(SerializeTagEvent e)
Raised when the tag of a diagram item must be deserialized from XML format.