|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiagramListener
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 |
---|
void initializeLink(LinkEvent e)
DiagramLink
instance is created.
void linkCreated(LinkEvent e)
void linkModified(LinkEvent e)
void linkClicked(LinkEvent e)
void linkDoubleClicked(LinkEvent e)
void linkSelected(LinkEvent e)
void linkActivated(LinkEvent e)
activeItem
.
void linkDeselected(LinkEvent e)
void linkDeactivated(LinkEvent e)
active Item
.
void linkDeleted(LinkEvent e)
void linkRouted(LinkEvent e)
void initializeNode(NodeEvent e)
DiagramNode
instance is created.
void nodeCreated(NodeEvent e)
void nodeModified(NodeEvent e)
void nodeClicked(NodeEvent e)
void nodeDoubleClicked(NodeEvent e)
void nodeSelected(NodeEvent e)
void nodeActivated(NodeEvent e)
active Item
.
void nodeDeselected(NodeEvent e)
void nodeDeactivated(NodeEvent e)
active Item
.
void nodeDeleted(NodeEvent e)
void expandButtonClicked(NodeEvent e)
expandable
node.
void treeExpanded(NodeEvent e)
expandable
node.
void treeCollapsed(NodeEvent e)
expandable
node.
void containerFolded(NodeEvent e)
void containerUnfolded(NodeEvent e)
void containerChildAdded(ContainerChildEvent e)
ContainerNode
,
either programmatically or by the user.
void containerChildRemoved(ContainerChildEvent e)
ContainerNode
,
either programmatically or by the user.
void linkCreating(LinkValidationEvent e)
void linkModifying(LinkValidationEvent e)
void linkStartModifying(LinkValidationEvent e)
void linkSelecting(LinkValidationEvent e)
void linkDeleting(LinkValidationEvent e)
void validateAnchorPoint(LinkValidationEvent e)
void linkTextEditing(LinkValidationEvent e)
void nodeCreating(NodeValidationEvent e)
void nodeModifying(NodeValidationEvent e)
void nodeStartModifying(NodeValidationEvent e)
void nodeSelecting(NodeValidationEvent e)
void nodeDeleting(NodeValidationEvent e)
void nodeTextEditing(NodeValidationEvent e)
void cellClicked(CellEvent e)
e
- A CellEvent
object providing information about the event.void cellDoubleClicked(CellEvent e)
void cellTextEditing(CellValidationEvent e)
void groupDestroyed(GroupEvent e)
Group
object is destroyed.
void tableSectionExpanded(RowEvent e)
e
- A RowEvent
object providing information about the event.void tableSectionCollapsed(RowEvent e)
e
- A RowEvent
object providing information about the event.void drawBackground(DiagramEvent e)
void drawForeground(DiagramEvent e)
void clicked(DiagramEvent e)
void doubleClicked(DiagramEvent e)
void drawLink(DrawLinkEvent e)
void drawNode(DrawNodeEvent e)
void drawCell(DrawCellEvent e)
void drawAnchorPoint(DrawAnchorPointEvent e)
void linkTextEdited(EditLinkTextEvent e)
void nodeTextEdited(EditNodeTextEvent e)
void cellTextEdited(EditCellTextEvent e)
void treeItemTextEdited(EditTreeItemTextEvent e)
void actionRecorded(UndoEvent e)
void actionUndone(UndoEvent e)
void actionRedone(UndoEvent e)
void actionRecording(UndoValidationEvent e)
void selectionMoving(ValidationEvent e)
void nodeMouseEnter(NodeEvent e)
setTrackPointedItem
method
to enable this event.
e
- A NodeEvent
object providing information about the event.void nodeMouseLeave(NodeEvent e)
setTrackPointedItem
method
to enable this event.
e
- A NodeEvent
object providing information about the event.void linkMouseEnter(LinkEvent e)
setTrackPointedItem
method
to enable this event.
e
- A LinkEvent
object providing information about the event.void linkMouseLeave(LinkEvent e)
setTrackPointedItem
method
to enable this event.
e
- A LinkEvent
object providing information about the event.void enterInplaceEditMode(InPlaceEditEvent e)
e
- An InPlaceEditEvent
object providing information about the event.void leaveInplaceEditMode(InPlaceEditEvent e)
e
- An InPlaceEditEvent
object providing information about the event.void repaint(RepaintEvent e)
void viewportChanged()
void imageLoaded(ImageLoadedEvent e)
e
- An ImageLoadedEvent
object that provides more information about the event.void selectionMoved(java.util.EventObject e)
e
- An EventObject providing information about the event.void itemAdded(ItemEvent e)
void itemRemoved(ItemEvent e)
void viewRemoved(ValidationEvent e)
DiagramView
is detached from this diagram.
void serializeTag(SerializeTagEvent e)
tag
of a diagram item must be serialized into an XML document.
void deserializeTag(SerializeTagEvent e)
tag
of a diagram item must be deserialized from XML format.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |