org.acm.seguin.uml.line
Class DragPanelAdapter

java.lang.Object
  extended by org.acm.seguin.uml.line.DragPanelAdapter
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class DragPanelAdapter
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

This adapter handles dragging panels around on another panel. This is used to relocate the class images on the class diagram.

Author:
Chris Seguin

Constructor Summary
DragPanelAdapter(EndPointPanel initPanel, LinedPanel initParent)
          Constructor for the DragPanelAdapter object
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent mevt)
          Process a mouse click action
 void mouseDragged(java.awt.event.MouseEvent mevt)
          Notifies this object that it is being dragged
 void mouseEntered(java.awt.event.MouseEvent mevt)
          Process the mouse entering the component
 void mouseExited(java.awt.event.MouseEvent mevt)
          Process the mouse leaving the component
 void mouseMoved(java.awt.event.MouseEvent mevt)
          What to do when the mouse moves.
 void mousePressed(java.awt.event.MouseEvent mevt)
          Process a mouse button press
 void mouseReleased(java.awt.event.MouseEvent mevt)
          User released the mouse button
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragPanelAdapter

public DragPanelAdapter(EndPointPanel initPanel,
                        LinedPanel initParent)
Constructor for the DragPanelAdapter object

Parameters:
initPanel - Description of Parameter
initParent - Description of Parameter
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent mevt)
Process a mouse click action

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
mevt - the mouse event

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent mevt)
Process the mouse entering the component

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
mevt - the mouse event

mouseExited

public void mouseExited(java.awt.event.MouseEvent mevt)
Process the mouse leaving the component

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
mevt - the mouse event

mousePressed

public void mousePressed(java.awt.event.MouseEvent mevt)
Process a mouse button press

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
mevt - the mouse event

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent mevt)
User released the mouse button

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
mevt - the mouse event

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent mevt)
Notifies this object that it is being dragged

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
mevt - The mouse object

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent mevt)
What to do when the mouse moves. Nothing.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
mevt - the mouse event