org.jgraph.plaf.basic

Class BasicGraphUI.GraphDropTargetListener

Enclosing Class:
BasicGraphUI
Implemented Interfaces:
ActionListener, DropTargetListener, Serializable, UIResource

public class BasicGraphUI.GraphDropTargetListener
extends BasicGraphDropTargetListener
implements Serializable

Graph Drop Target Listener

Method Summary

void
dragEnter(DropTargetDragEvent e)
void
dropActionChanged(DropTargetDragEvent e)
protected void
restoreComponentState(JComponent comp)
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, dragEnter, dragExit, dragOver, drop, dropActionChanged, restoreComponentState, restoreComponentStateForDrop, saveComponentState, updateInsertionLocation

Method Details

dragEnter

public void dragEnter(DropTargetDragEvent e)
Overrides:
dragEnter in interface BasicGraphDropTargetListener

dropActionChanged

public void dropActionChanged(DropTargetDragEvent e)
Overrides:
dropActionChanged in interface BasicGraphDropTargetListener

restoreComponentState

protected void restoreComponentState(JComponent comp)
called to restore the state of a component because a drop was not performed.
Overrides:
restoreComponentState in interface BasicGraphDropTargetListener

saveComponentState

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.
Overrides:
saveComponentState in interface BasicGraphDropTargetListener

updateInsertionLocation

protected void updateInsertionLocation(JComponent comp,
                                       Point p)
called to set the insertion location to match the current mouse pointer coordinates.
Overrides:
updateInsertionLocation in interface BasicGraphDropTargetListener

Copyright (C) 2001-2006 Gaudenz Alder. All rights reserved.