Package org.jgraph.plaf.basic
Class BasicGraphDropTargetListener
java.lang.Object
org.jgraph.plaf.basic.BasicGraphDropTargetListener
- All Implemented Interfaces:
DropTargetListener,ActionListener,EventListener,UIResource
- Direct Known Subclasses:
BasicGraphUI.GraphDropTargetListener
public class BasicGraphDropTargetListener
extends Object
implements DropTargetListener, UIResource, ActionListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe timer fired, perform autoscroll if the pointer is within the autoscroll region.voidvoidvoidvoidvoidprotected voidcalled to restore the state of a component in case a drop is not performed.protected voidcalled to restore the state of a component in case a drop is performed.protected voidcalled to save the state of a component in case it needs to be restored because a drop is not performed.protected voidcalled to set the insertion location to match the current mouse pointer coordinates.
-
Constructor Details
-
BasicGraphDropTargetListener
public BasicGraphDropTargetListener()construct a DropTargetAutoScroller
-
-
Method Details
-
saveComponentState
called to save the state of a component in case it needs to be restored because a drop is not performed. -
restoreComponentState
called to restore the state of a component in case a drop is not performed. -
restoreComponentStateForDrop
called to restore the state of a component in case a drop is performed. -
updateInsertionLocation
called to set the insertion location to match the current mouse pointer coordinates. -
actionPerformed
The timer fired, perform autoscroll if the pointer is within the autoscroll region.- Specified by:
actionPerformedin interfaceActionListener- Parameters:
e- theActionEvent
-
dragEnter
- Specified by:
dragEnterin interfaceDropTargetListener
-
dragOver
- Specified by:
dragOverin interfaceDropTargetListener
-
dragExit
- Specified by:
dragExitin interfaceDropTargetListener
-
drop
- Specified by:
dropin interfaceDropTargetListener
-
dropActionChanged
- Specified by:
dropActionChangedin interfaceDropTargetListener
-