public class DiagramAdapter extends java.lang.Object implements DiagramListener
DiagramListener
interface. This lets you override
only the handlers for the events you are interested in, instead of
implementing all methods of DiagramListener.Constructor and Description |
---|
DiagramAdapter() |
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)
Raised when the diagram's active layer has changed.
|
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. |
public void initializeLink(LinkEvent e)
DiagramLink
instance is created.initializeLink
in interface DiagramListener
public void linkCreated(LinkEvent e)
linkCreated
in interface DiagramListener
public void linkModified(LinkEvent e)
linkModified
in interface DiagramListener
public void linkClicked(LinkEvent e)
linkClicked
in interface DiagramListener
public void linkDoubleClicked(LinkEvent e)
linkDoubleClicked
in interface DiagramListener
public void linkSelected(LinkEvent e)
linkSelected
in interface DiagramListener
public void linkActivated(LinkEvent e)
activeItem
.linkActivated
in interface DiagramListener
public void linkDeselected(LinkEvent e)
linkDeselected
in interface DiagramListener
public void linkDeactivated(LinkEvent e)
active Item
.linkDeactivated
in interface DiagramListener
public void linkDeleted(LinkEvent e)
linkDeleted
in interface DiagramListener
public void linkRouted(LinkEvent e)
linkRouted
in interface DiagramListener
public void linkSplit(LinkEvent e)
linkSplit
in interface DiagramListener
public void initializeNode(NodeEvent e)
DiagramNode
instance is created.initializeNode
in interface DiagramListener
public void nodeCreated(NodeEvent e)
nodeCreated
in interface DiagramListener
public void nodeModified(NodeEvent e)
nodeModified
in interface DiagramListener
public void nodeClicked(NodeEvent e)
nodeClicked
in interface DiagramListener
public void nodeDoubleClicked(NodeEvent e)
nodeDoubleClicked
in interface DiagramListener
public void nodeSelected(NodeEvent e)
nodeSelected
in interface DiagramListener
public void nodeActivated(NodeEvent e)
active Item
.nodeActivated
in interface DiagramListener
public void nodeDeselected(NodeEvent e)
nodeDeselected
in interface DiagramListener
public void nodeDeactivated(NodeEvent e)
active Item
.nodeDeactivated
in interface DiagramListener
public void nodeDeleted(NodeEvent e)
nodeDeleted
in interface DiagramListener
public void expandButtonClicked(NodeEvent e)
expandable
node.expandButtonClicked
in interface DiagramListener
public void treeExpanded(NodeEvent e)
expandable
node.treeExpanded
in interface DiagramListener
public void treeCollapsed(NodeEvent e)
expandable
node.treeCollapsed
in interface DiagramListener
public void containerFolded(NodeEvent e)
containerFolded
in interface DiagramListener
public void containerUnfolded(NodeEvent e)
containerUnfolded
in interface DiagramListener
public void containerChildAdded(ContainerChildEvent e)
ContainerNode
,
either programmatically or by the user.containerChildAdded
in interface DiagramListener
public void containerChildRemoved(ContainerChildEvent e)
ContainerNode
,
either programmatically or by the user.containerChildRemoved
in interface DiagramListener
public void linkCreating(LinkValidationEvent e)
linkCreating
in interface DiagramListener
public void linkModifying(LinkValidationEvent e)
linkModifying
in interface DiagramListener
public void linkStartModifying(LinkValidationEvent e)
linkStartModifying
in interface DiagramListener
public void linkSelecting(LinkValidationEvent e)
linkSelecting
in interface DiagramListener
public void linkDeleting(LinkValidationEvent e)
linkDeleting
in interface DiagramListener
public void validateAnchorPoint(LinkValidationEvent e)
validateAnchorPoint
in interface DiagramListener
public void linkTextEditing(LinkValidationEvent e)
linkTextEditing
in interface DiagramListener
public void nodeCreating(NodeValidationEvent e)
nodeCreating
in interface DiagramListener
public void nodeModifying(NodeValidationEvent e)
nodeModifying
in interface DiagramListener
public void nodeStartModifying(NodeValidationEvent e)
nodeStartModifying
in interface DiagramListener
public void nodeSelecting(NodeValidationEvent e)
nodeSelecting
in interface DiagramListener
public void nodeDeleting(NodeValidationEvent e)
nodeDeleting
in interface DiagramListener
public void nodeTextEditing(NodeValidationEvent e)
nodeTextEditing
in interface DiagramListener
public void cellClicked(CellEvent e)
cellClicked
in interface DiagramListener
e
- A CellEvent
object providing information about the event.public void cellDoubleClicked(CellEvent e)
cellDoubleClicked
in interface DiagramListener
public void cellTextEditing(CellValidationEvent e)
cellTextEditing
in interface DiagramListener
public void groupDestroyed(GroupEvent e)
Group
object is destroyed.groupDestroyed
in interface DiagramListener
public void tableSectionExpanded(RowEvent e)
tableSectionExpanded
in interface DiagramListener
e
- A RowEvent
object providing information about the event.public void tableSectionCollapsed(RowEvent e)
tableSectionCollapsed
in interface DiagramListener
e
- A RowEvent
object providing information about the event.public void tableRowResizing(CellValidationEvent e)
tableRowResizing
in interface DiagramListener
e
- A CellValidationEvent
object providing information about this event.public void tableRowResized(CellEvent e)
tableRowResized
in interface DiagramListener
e
- A CellEvent
object providing information about this event.public void tableColumnResizing(CellValidationEvent e)
tableColumnResizing
in interface DiagramListener
e
- A CellValidationEvent
object providing information about this event.public void tableColumnResized(CellEvent e)
tableColumnResized
in interface DiagramListener
e
- A CellEvent
object providing information about this event.public void drawBackground(DiagramEvent e)
drawBackground
in interface DiagramListener
public void drawForeground(DiagramEvent e)
drawForeground
in interface DiagramListener
public void clicked(DiagramEvent e)
clicked
in interface DiagramListener
public void doubleClicked(DiagramEvent e)
doubleClicked
in interface DiagramListener
public void drawLink(DrawLinkEvent e)
drawLink
in interface DiagramListener
public void drawNode(DrawNodeEvent e)
drawNode
in interface DiagramListener
public void drawCell(DrawCellEvent e)
drawCell
in interface DiagramListener
public void drawAnchorPoint(DrawAnchorPointEvent e)
drawAnchorPoint
in interface DiagramListener
public void linkTextEdited(EditLinkTextEvent e)
linkTextEdited
in interface DiagramListener
public void nodeTextEdited(EditNodeTextEvent e)
nodeTextEdited
in interface DiagramListener
public void cellTextEdited(EditCellTextEvent e)
cellTextEdited
in interface DiagramListener
public void actionRecorded(UndoEvent e)
actionRecorded
in interface DiagramListener
public void actionUndone(UndoEvent e)
actionUndone
in interface DiagramListener
public void actionRedone(UndoEvent e)
actionRedone
in interface DiagramListener
public void actionRecording(UndoValidationEvent e)
actionRecording
in interface DiagramListener
public void selectionModifying(SelectionValidationEvent e)
selectionModifying
in interface DiagramListener
e
- A SelectionValidationEvent
instance providing information about the event.public void nodePointerEnter(NodeEvent e)
setTrackPointedItem
method
to enable this event.nodePointerEnter
in interface DiagramListener
e
- A NodeEvent
object providing information about the event.public void nodePointerLeave(NodeEvent e)
setTrackPointedItem
method
to enable this event.nodePointerLeave
in interface DiagramListener
e
- A NodeEvent
object providing information about the event.public void linkPointerEnter(LinkEvent e)
setTrackPointedItem
method
to enable this event.linkPointerEnter
in interface DiagramListener
e
- A LinkEvent
object providing information about the event.public void linkPointerLeave(LinkEvent e)
setTrackPointedItem
method
to enable this event.linkPointerLeave
in interface DiagramListener
e
- A LinkEvent
object providing information about the event.public void enterInplaceEditMode(InPlaceEditEvent e)
enterInplaceEditMode
in interface DiagramListener
e
- An InPlaceEditEvent
object providing information about the event.public void leaveInplaceEditMode(InPlaceEditEvent e)
leaveInplaceEditMode
in interface DiagramListener
e
- An InPlaceEditEvent
object providing information about the event.public void repaint(RepaintEvent e)
repaint
in interface DiagramListener
public void viewportChanged()
viewportChanged
in interface DiagramListener
public void imageLoaded(ImageLoadedEvent e)
imageLoaded
in interface DiagramListener
e
- An ImageLoadedEvent
object that provides more information about the event.public void initializeLasso(SelectionEvent e)
initializeLasso
in interface DiagramListener
e
- A SelectionEvent
providing information about the event.public void selectionModified(SelectionEvent e)
selectionModified
in interface DiagramListener
e
- An EventObject providing information about the event.public void selectionChanged(java.util.EventObject e)
selectionChanged
in interface DiagramListener
e
- An EventObject providing information about the event.public void itemAdded(ItemEvent e)
itemAdded
in interface DiagramListener
public void itemLoaded(ItemEvent e)
itemLoaded
in interface DiagramListener
public void itemRemoved(ItemEvent e)
itemRemoved
in interface DiagramListener
public void viewRemoved(ValidationEvent e)
DiagramView
is detached from this diagram.viewRemoved
in interface DiagramListener
public void serializeTag(SerializeTagEvent e)
tag
of a diagram item must be serialized into an XML document.serializeTag
in interface DiagramListener
public void deserializeTag(SerializeTagEvent e)
tag
of a diagram item must be deserialized from XML format.deserializeTag
in interface DiagramListener
public void jsonSerializeTag(JsonSerializeTagEventArgs e)
tag
of a diagram item must be serialized into an JSON document.jsonSerializeTag
in interface DiagramListener
public void jsonDeserializeTag(JsonSerializeTagEventArgs e)
tag
of a diagram item must be deserialized from JSON format.jsonDeserializeTag
in interface DiagramListener
public void treeItemTextEdited(EditTreeItemTextEvent e)
TreeViewItem
.treeItemTextEdited
in interface DiagramListener
e
- An EditTreeItemTextEvent
instance providing more information about the event.public void serializeControl(ControlNodeEvent e)
ControlNode
objects.serializeControl
in interface DiagramListener
e
- A ControlNodeEvent
instance providing more information about the event.public void deserializeControl(ControlNodeEvent e)
ControlNode
objects.deserializeControl
in interface DiagramListener
e
- A ControlNodeEvent
instance providing more information about the event.public void requestCacheReset(java.util.EventObject e)
requestCacheReset
in interface DiagramListener
public void drawAdjustmentHandles(DrawItemEvent e)
drawAdjustmentHandles
in interface DiagramListener
e
- A DrawItemEvent
instance providing more information about the event.public void hitTestAdjustmentHandles(HitTestEvent e)
hitTestAdjustmentHandles
in interface DiagramListener
e
- A HitTestEvent
instance providing more information about the event.public void activeLayerChanged(java.util.EventObject e)
activeLayerChanged
in interface DiagramListener
e
- An EventObject instance providing more information about the event.public void setSelfLoopShape(LinkShapeEvent e)
setSelfLoopShape
in interface DiagramListener
e
- A LinkShapeEvent
instance providing more information about the event.