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 TypeMethodDescriptionvoid
void
protected void
called to restore the state of a component because a drop was not performed.protected void
saveComponentState
(JComponent comp) called to save the state of a component in case it needs to be restored because a drop is not performed.protected void
updateInsertionLocation
(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:
saveComponentState
in classBasicGraphDropTargetListener
-
restoreComponentState
called to restore the state of a component because a drop was not performed.- Overrides:
restoreComponentState
in classBasicGraphDropTargetListener
-
updateInsertionLocation
called to set the insertion location to match the current mouse pointer coordinates.- Overrides:
updateInsertionLocation
in classBasicGraphDropTargetListener
-
dragEnter
- Specified by:
dragEnter
in interfaceDropTargetListener
- Overrides:
dragEnter
in classBasicGraphDropTargetListener
-
dropActionChanged
- Specified by:
dropActionChanged
in interfaceDropTargetListener
- Overrides:
dropActionChanged
in classBasicGraphDropTargetListener
-