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 voiddragEnter(java.awt.dnd.DropTargetDragEvent e)voiddropActionChanged(java.awt.dnd.DropTargetDragEvent e)protected voidrestoreComponentState(javax.swing.JComponent comp)called to restore the state of a component because a drop was not performed.protected voidsaveComponentState(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 voidupdateInsertionLocation(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:
saveComponentStatein classBasicGraphDropTargetListener
-
restoreComponentState
protected void restoreComponentState(javax.swing.JComponent comp)
called to restore the state of a component because a drop was not performed.- Overrides:
restoreComponentStatein 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:
updateInsertionLocationin classBasicGraphDropTargetListener
-
dragEnter
public void dragEnter(java.awt.dnd.DropTargetDragEvent e)
- Specified by:
dragEnterin interfacejava.awt.dnd.DropTargetListener- Overrides:
dragEnterin classBasicGraphDropTargetListener
-
dropActionChanged
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
- Specified by:
dropActionChangedin interfacejava.awt.dnd.DropTargetListener- Overrides:
dropActionChangedin classBasicGraphDropTargetListener
-
-