CSLib
Class DrawingBox.DBMouseMotionAdapter

java.lang.Object
  |
  +--java.awt.event.MouseMotionAdapter
        |
        +--CSLib.DrawingBox.DBMouseMotionAdapter
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseMotionListener
Enclosing class:
DrawingBox

public class DrawingBox.DBMouseMotionAdapter
extends java.awt.event.MouseMotionAdapter

DBMouseMotionAdapter is an inner class that implements the Mouse motion listener for DrawingBox. It does this by extending the Java convenience wrapper MouseMotionAdapter.

Each MouseEvent must be translated to correspond to the translated coordinate system of the DrawingBox. This translation remains in effect for any downstream mouse motion listeners.

See Also:
MouseMotionAdapter, java.awt.event.MouseEvent#translatePoint(int int), Container.getInsets()

Constructor Summary
DrawingBox.DBMouseMotionAdapter()
           
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawingBox.DBMouseMotionAdapter

public DrawingBox.DBMouseMotionAdapter()
Method Detail

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class java.awt.event.MouseMotionAdapter

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class java.awt.event.MouseMotionAdapter