Package org.jgraph.plaf.basic
Class BasicGraphDropTargetListener
- java.lang.Object
-
- org.jgraph.plaf.basic.BasicGraphDropTargetListener
-
- All Implemented Interfaces:
java.awt.dnd.DropTargetListener,java.awt.event.ActionListener,java.util.EventListener,javax.swing.plaf.UIResource
- Direct Known Subclasses:
BasicGraphUI.GraphDropTargetListener
public class BasicGraphDropTargetListener extends java.lang.Object implements java.awt.dnd.DropTargetListener, javax.swing.plaf.UIResource, java.awt.event.ActionListener
-
-
Constructor Summary
Constructors Constructor Description BasicGraphDropTargetListener()construct a DropTargetAutoScroller
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)The timer fired, perform autoscroll if the pointer is within the autoscroll region.voiddragEnter(java.awt.dnd.DropTargetDragEvent e)voiddragExit(java.awt.dnd.DropTargetEvent e)voiddragOver(java.awt.dnd.DropTargetDragEvent e)voiddrop(java.awt.dnd.DropTargetDropEvent e)voiddropActionChanged(java.awt.dnd.DropTargetDragEvent e)protected voidrestoreComponentState(javax.swing.JComponent c)called to restore the state of a component in case a drop is not performed.protected voidrestoreComponentStateForDrop(javax.swing.JComponent c)called to restore the state of a component in case a drop is performed.protected voidsaveComponentState(javax.swing.JComponent c)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 c, java.awt.Point p)called to set the insertion location to match the current mouse pointer coordinates.
-
-
-
Method Detail
-
saveComponentState
protected void saveComponentState(javax.swing.JComponent c)
called to save the state of a component in case it needs to be restored because a drop is not performed.
-
restoreComponentState
protected void restoreComponentState(javax.swing.JComponent c)
called to restore the state of a component in case a drop is not performed.
-
restoreComponentStateForDrop
protected void restoreComponentStateForDrop(javax.swing.JComponent c)
called to restore the state of a component in case a drop is performed.
-
updateInsertionLocation
protected void updateInsertionLocation(javax.swing.JComponent c, java.awt.Point p)called to set the insertion location to match the current mouse pointer coordinates.
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
The timer fired, perform autoscroll if the pointer is within the autoscroll region.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Parameters:
e- theActionEvent
-
dragEnter
public void dragEnter(java.awt.dnd.DropTargetDragEvent e)
- Specified by:
dragEnterin interfacejava.awt.dnd.DropTargetListener
-
dragOver
public void dragOver(java.awt.dnd.DropTargetDragEvent e)
- Specified by:
dragOverin interfacejava.awt.dnd.DropTargetListener
-
dragExit
public void dragExit(java.awt.dnd.DropTargetEvent e)
- Specified by:
dragExitin interfacejava.awt.dnd.DropTargetListener
-
drop
public void drop(java.awt.dnd.DropTargetDropEvent e)
- Specified by:
dropin interfacejava.awt.dnd.DropTargetListener
-
dropActionChanged
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
- Specified by:
dropActionChangedin interfacejava.awt.dnd.DropTargetListener
-
-