org.jgraph.plaf.basic

Class BasicGraphDropTargetListener

public class BasicGraphDropTargetListener extends Object implements DropTargetListener, UIResource, ActionListener

Constructor Summary
BasicGraphDropTargetListener()
construct a DropTargetAutoScroller
Method Summary
voidactionPerformed(ActionEvent e)
The timer fired, perform autoscroll if the pointer is within the autoscroll region.
voiddragEnter(DropTargetDragEvent e)
voiddragExit(DropTargetEvent e)
voiddragOver(DropTargetDragEvent e)
voiddrop(DropTargetDropEvent e)
voiddropActionChanged(DropTargetDragEvent e)
protected voidrestoreComponentState(JComponent c)
called to restore the state of a component in case a drop is not performed.
protected voidrestoreComponentStateForDrop(JComponent c)
called to restore the state of a component in case a drop is performed.
protected voidsaveComponentState(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(JComponent c, Point p)
called to set the insertion location to match the current mouse pointer coordinates.

Constructor Detail

BasicGraphDropTargetListener

public BasicGraphDropTargetListener()
construct a DropTargetAutoScroller

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
The timer fired, perform autoscroll if the pointer is within the autoscroll region.

Parameters: e the ActionEvent

dragEnter

public void dragEnter(DropTargetDragEvent e)

dragExit

public void dragExit(DropTargetEvent e)

dragOver

public void dragOver(DropTargetDragEvent e)

drop

public void drop(DropTargetDropEvent e)

dropActionChanged

public void dropActionChanged(DropTargetDragEvent e)

restoreComponentState

protected void restoreComponentState(JComponent c)
called to restore the state of a component in case a drop is not performed.

restoreComponentStateForDrop

protected void restoreComponentStateForDrop(JComponent c)
called to restore the state of a component in case a drop is performed.

saveComponentState

protected void saveComponentState(JComponent c)
called to save the state of a component in case it needs to be restored because a drop is not performed.

updateInsertionLocation

protected void updateInsertionLocation(JComponent c, Point p)
called to set the insertion location to match the current mouse pointer coordinates.
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.