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:
java.awt.dnd.DropTargetListener
,java.awt.event.ActionListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.plaf.UIResource
- Enclosing class:
- BasicGraphUI
public class BasicGraphUI.GraphDropTargetListener extends BasicGraphDropTargetListener implements java.io.Serializable
Graph Drop Target Listener- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GraphDropTargetListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dragEnter(java.awt.dnd.DropTargetDragEvent e)
void
dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
protected void
restoreComponentState(javax.swing.JComponent comp)
called to restore the state of a component because a drop was not performed.protected void
saveComponentState(javax.swing.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(javax.swing.JComponent comp, java.awt.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
-
-
-
-
Method Detail
-
saveComponentState
protected void saveComponentState(javax.swing.JComponent comp)
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
protected void restoreComponentState(javax.swing.JComponent comp)
called to restore the state of a component because a drop was not performed.- Overrides:
restoreComponentState
in classBasicGraphDropTargetListener
-
updateInsertionLocation
protected void updateInsertionLocation(javax.swing.JComponent comp, java.awt.Point p)
called to set the insertion location to match the current mouse pointer coordinates.- Overrides:
updateInsertionLocation
in classBasicGraphDropTargetListener
-
dragEnter
public void dragEnter(java.awt.dnd.DropTargetDragEvent e)
- Specified by:
dragEnter
in interfacejava.awt.dnd.DropTargetListener
- Overrides:
dragEnter
in classBasicGraphDropTargetListener
-
dropActionChanged
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
- Specified by:
dropActionChanged
in interfacejava.awt.dnd.DropTargetListener
- Overrides:
dropActionChanged
in classBasicGraphDropTargetListener
-
-