public interface DiagramListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
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 |
activeLayerChanged(java.util.EventObject e) |
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 |
deserializeControl(ControlNodeEvent e)
Lets you load the attributes of controls hosted inside
ControlNode objects. |
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 |
drawAdjustmentHandles(DrawItemEvent e)
Raised when custom adjustment handles must be drawn.
|
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 |
hitTestAdjustmentHandles(HitTestEvent e)
Raised to perform custom hit testing of item's adjustment handles.
|
void |
imageLoaded(ImageLoadedEvent e)
Called when image download initiated with Diagram.setImageUrl completes
|
void |
initializeLasso(SelectionEvent e)
Raised when the user starts drawing a selection lasso, before it is rendered on screen.
|
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 |
itemLoaded(ItemEvent e)
Raised when an item is loaded from a file.
|
void |
itemRemoved(ItemEvent e)
Raised when an item is removed from the diagram, either
programmatically or interactively.
|
void |
jsonDeserializeTag(JsonSerializeTagEventArgs e)
Raised when the
tag of a diagram item must be deserialized from JSON format. |
void |
jsonSerializeTag(JsonSerializeTagEventArgs e)
Raised when the
tag of a diagram item must be serialized into an JSON document. |
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 |
linkPointerEnter(LinkEvent e)
Called when the mouse pointer enters a link.
|
void |
linkPointerLeave(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 |
linkSplit(LinkEvent e)
Raised when the user splits a link segment interactively.
|
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 |
nodePointerEnter(NodeEvent e)
Called when the mouse pointer enters a node.
|
void |
nodePointerLeave(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 |
requestCacheReset(java.util.EventObject e)
Raised when an object within the diagram requests a reset of the cached bitmap.
|
void |
selectionChanged(java.util.EventObject e)
Called when an item is added to or removed from the selection.
|
void |
selectionModified(SelectionEvent e)
Called when multiple selected items are moved or resized.
|
void |
selectionModifying(SelectionValidationEvent e)
Raised while the user is moving or resizing multiple selected items,
this event lets you cancel the modification.
|
void |
serializeControl(ControlNodeEvent e)
Lets you save the attributes of controls hosted inside
ControlNode objects. |
void |
serializeTag(SerializeTagEvent e)
Raised when the
tag of a diagram item must be serialized into an XML document. |
void |
setSelfLoopShape(LinkShapeEvent e)
Raised when a link becomes a self-loop, giving you a chance to override the default look shape.
|
void |
tableColumnResized(CellEvent e)
Raised when the user finishes resizing a column in a table.
|
void |
tableColumnResizing(CellValidationEvent e)
Raised when the user resizes a column in a table interactively.
|
void |
tableRowResized(CellEvent e)
Raised when the user finishes resizing a row in a table.
|
void |
tableRowResizing(CellValidationEvent e)
Raised when the user resizes a row in a table interactively.
|
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)
Raised when the user edits the text of a
TreeViewItem . |
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. |
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 linkSplit(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 tableRowResizing(CellValidationEvent e)
e
- A CellValidationEvent
object providing information about this event.void tableRowResized(CellEvent e)
e
- A CellEvent
object providing information about this event.void tableColumnResizing(CellValidationEvent e)
e
- A CellValidationEvent
object providing information about this event.void tableColumnResized(CellEvent e)
e
- A CellEvent
object providing information about this 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)
TreeViewItem
.e
- An EditTreeItemTextEvent
instance providing more information about the event.void actionRecorded(UndoEvent e)
void actionUndone(UndoEvent e)
void actionRedone(UndoEvent e)
void actionRecording(UndoValidationEvent e)
void selectionModifying(SelectionValidationEvent e)
e
- A SelectionValidationEvent
instance providing information about the event.void nodePointerEnter(NodeEvent e)
setTrackPointedItem
method
to enable this event.e
- A NodeEvent
object providing information about the event.void nodePointerLeave(NodeEvent e)
setTrackPointedItem
method
to enable this event.e
- A NodeEvent
object providing information about the event.void linkPointerEnter(LinkEvent e)
setTrackPointedItem
method
to enable this event.e
- A LinkEvent
object providing information about the event.void linkPointerLeave(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 initializeLasso(SelectionEvent e)
e
- A SelectionEvent
providing information about the event.void selectionModified(SelectionEvent e)
e
- A SelectionEvent
providing information about the event.void selectionChanged(java.util.EventObject e)
e
- An EventObject providing information about the event.void itemAdded(ItemEvent e)
void itemLoaded(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.void jsonSerializeTag(JsonSerializeTagEventArgs e)
tag
of a diagram item must be serialized into an JSON document.void jsonDeserializeTag(JsonSerializeTagEventArgs e)
tag
of a diagram item must be deserialized from JSON format.void serializeControl(ControlNodeEvent e)
ControlNode
objects.e
- A ControlNodeEvent
instance providing more information about the event.void deserializeControl(ControlNodeEvent e)
ControlNode
objects.e
- A ControlNodeEvent
instance providing more information about the event.void requestCacheReset(java.util.EventObject e)
void drawAdjustmentHandles(DrawItemEvent e)
e
- A DrawItemEvent
instance providing more information about the event.void hitTestAdjustmentHandles(HitTestEvent e)
e
- A HitTestEvent
instance providing more information about the event.void activeLayerChanged(java.util.EventObject e)
void setSelfLoopShape(LinkShapeEvent e)
e
- A LinkShapeEvent
instance providing more information about the event.