Package org.jgraph.plaf.basic
Class BasicGraphUI.GraphDropTargetListener
java.lang.Object
org.jgraph.plaf.basic.BasicGraphDropTargetListener
org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener
- All Implemented Interfaces:
DropTargetListener,ActionListener,Serializable,EventListener,UIResource
- Enclosing class:
- BasicGraphUI
public class BasicGraphUI.GraphDropTargetListener
extends BasicGraphDropTargetListener
implements Serializable
Graph Drop Target Listener
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidcalled to restore the state of a component because a drop was not performed.protected voidsaveComponentState(JComponent comp) called to save the state of a component in case it needs to be restored because a drop is not performed.protected voidupdateInsertionLocation(JComponent comp, Point p) called to set the insertion location to match the current mouse pointer coordinates.Methods inherited from class org.jgraph.plaf.basic.BasicGraphDropTargetListener
actionPerformed, dragExit, dragOver, drop, restoreComponentStateForDrop
-
Constructor Details
-
GraphDropTargetListener
public GraphDropTargetListener()
-
-
Method Details
-
saveComponentState
called to save the state of a component in case it needs to be restored because a drop is not performed.- Overrides:
saveComponentStatein classBasicGraphDropTargetListener
-
restoreComponentState
called to restore the state of a component because a drop was not performed.- Overrides:
restoreComponentStatein classBasicGraphDropTargetListener
-
updateInsertionLocation
called to set the insertion location to match the current mouse pointer coordinates.- Overrides:
updateInsertionLocationin classBasicGraphDropTargetListener
-
dragEnter
- Specified by:
dragEnterin interfaceDropTargetListener- Overrides:
dragEnterin classBasicGraphDropTargetListener
-
dropActionChanged
- Specified by:
dropActionChangedin interfaceDropTargetListener- Overrides:
dropActionChangedin classBasicGraphDropTargetListener
-