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 TypeMethodDescriptionvoid
The timer fired, perform autoscroll if the pointer is within the autoscroll region.void
void
void
void
void
protected void
called to restore the state of a component in case a drop is not performed.protected void
called to restore the state of a component in case a drop is performed.protected void
called to save the state of a component in case it needs to be restored because a drop is not performed.protected void
called 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:
actionPerformed
in interfaceActionListener
- Parameters:
e
- theActionEvent
-
dragEnter
- Specified by:
dragEnter
in interfaceDropTargetListener
-
dragOver
- Specified by:
dragOver
in interfaceDropTargetListener
-
dragExit
- Specified by:
dragExit
in interfaceDropTargetListener
-
drop
- Specified by:
drop
in interfaceDropTargetListener
-
dropActionChanged
- Specified by:
dropActionChanged
in interfaceDropTargetListener
-