edu.stanford.smi.protegex.owl.ui.code
Class ComponentDragger
java.lang.Object
java.awt.event.MouseAdapter
edu.stanford.smi.protegex.owl.ui.code.ComponentDragger
- All Implemented Interfaces:
- EventListener, MouseListener, MouseMotionListener
- public class ComponentDragger
- extends MouseAdapter
- implements MouseMotionListener
An object that can be used to drag and drop a Component in its parent.
It has to be attached to the component both as a MouseListener and a
MouseMotionListener.
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
baseX
private int baseX
baseY
private int baseY
component
private Component component
ComponentDragger
public ComponentDragger(Component comp)
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interface MouseMotionListener
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved
in interface MouseMotionListener
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener