public class EditableDiagramWorkflowNode extends DiagramWorkflowNode implements java.awt.dnd.DragSourceListener, java.awt.dnd.DragGestureListener, java.awt.dnd.DropTargetListener
This class holds a single node in the editable diagram. This subclass is used to implement drag-and-drop
REL_ENTER, REL_EXIT
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
EditableDiagramWorkflowNode(WorkflowNode node,
DiagramConfiguration configuration,
boolean inToolbar,
DnDContainer container)
Constructs a diagram node
|
EditableDiagramWorkflowNode(WorkflowNode node,
DiagramConfiguration configuration,
DnDContainer container)
Constructs a diagram node
|
Modifier and Type | Method and Description |
---|---|
void |
dragDropEnd(java.awt.dnd.DragSourceDropEvent event)
This is called when the dragging ends.
|
void |
dragEnter(java.awt.dnd.DragSourceDragEvent event)
This is called when the dragging enters the drop site
|
void |
dragEnter(java.awt.dnd.DropTargetDragEvent event)
Called when drag enters the drop target
|
void |
dragExit(java.awt.dnd.DragSourceEvent event)
This is called when the dragging leaves the drop site
|
void |
dragExit(java.awt.dnd.DropTargetEvent event)
Called when drag leaves the drop target
|
void |
dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
Called when drag guesture is recognized.
|
void |
dragOver(java.awt.dnd.DragSourceDragEvent event)
This is called when the dragging is over the drop site
|
void |
dragOver(java.awt.dnd.DropTargetDragEvent event)
Called when drag occurs
|
void |
drop(java.awt.dnd.DropTargetDropEvent event)
Called when a drop occurs
|
void |
dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
This is called when the drag action changes
|
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent event)
Called when the drop action changes
|
boolean |
isDragOk(java.awt.dnd.DropTargetDragEvent event)
Checks whether the node is a valid drop site.
|
void |
setDragCursor(java.awt.dnd.DragSourceDragEvent event)
This is called to set the drag cursor
|
addIncomingRelationship, addOutgoingRelationship, compareTo, connectedTo, getCenterPoint, getColumn, getCursorFromImage, getIncomingRelationships, getLocation, getOutgoingRelationships, getRelationshipLocation, getRelationships, getRow, getSelectedBackground, getSelectedForeground, getWorkflowNode, isIndexUsed, isSuccessorOf, moreInomingAllowed, moreOutgoingAllowed, removeIncomingRelationship, removeOutgoingRelationship, setBackground, setFont, setSelected, setSelectedBackground, setSelectedForeground, sortRelationships, toString
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public EditableDiagramWorkflowNode(WorkflowNode node, DiagramConfiguration configuration, DnDContainer container)
node
- The workflow nodeconfiguration
- The configuration object for the diagramcontainer
- The container for the node drop processingpublic EditableDiagramWorkflowNode(WorkflowNode node, DiagramConfiguration configuration, boolean inToolbar, DnDContainer container)
node
- The workflow nodeconfiguration
- The configuration object for the diagraminToolbar
- If true it is to be shown in a toolbarcontainer
- The container for the node drop processingpublic boolean isDragOk(java.awt.dnd.DropTargetDragEvent event)
event
- The drop target drag eventpublic void dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
dragGestureRecognized
in interface java.awt.dnd.DragGestureListener
event
- The drag guesture eventpublic void dragDropEnd(java.awt.dnd.DragSourceDropEvent event)
dragDropEnd
in interface java.awt.dnd.DragSourceListener
event
- The drag source drop eventpublic void dragEnter(java.awt.dnd.DragSourceDragEvent event)
dragEnter
in interface java.awt.dnd.DragSourceListener
event
- The drag source drag eventpublic void dragExit(java.awt.dnd.DragSourceEvent event)
dragExit
in interface java.awt.dnd.DragSourceListener
event
- The drag source drag eventpublic void dragOver(java.awt.dnd.DragSourceDragEvent event)
dragOver
in interface java.awt.dnd.DragSourceListener
event
- The drag source drag eventpublic void dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
dropActionChanged
in interface java.awt.dnd.DragSourceListener
event
- The drag source drag eventpublic void setDragCursor(java.awt.dnd.DragSourceDragEvent event)
event
- The drag source drag eventpublic void dragEnter(java.awt.dnd.DropTargetDragEvent event)
dragEnter
in interface java.awt.dnd.DropTargetListener
event
- The drop target drag eventpublic void dragExit(java.awt.dnd.DropTargetEvent event)
dragExit
in interface java.awt.dnd.DropTargetListener
event
- The drop target drag eventpublic void dragOver(java.awt.dnd.DropTargetDragEvent event)
dragOver
in interface java.awt.dnd.DropTargetListener
event
- The drop target drag eventpublic void drop(java.awt.dnd.DropTargetDropEvent event)
drop
in interface java.awt.dnd.DropTargetListener
event
- The drop target drop eventpublic void dropActionChanged(java.awt.dnd.DropTargetDragEvent event)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
event
- The drop target drag event