Protégé-OWL 3.4

edu.stanford.smi.protegex.owl.ui.code
Class ComponentDragger

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by edu.stanford.smi.protegex.owl.ui.code.ComponentDragger
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener

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

Constructor Summary
ComponentDragger(Component comp)
           
 
Method Summary
 void mouseDragged(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentDragger

public ComponentDragger(Component comp)
Method Detail

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
Overrides:
mousePressed in class MouseAdapter

Protégé-OWL 3.4

Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.