dbrown
Class RTGraphicView.MMListener

java.lang.Object
  extended by java.awt.event.MouseMotionAdapter
      extended by dbrown.RTGraphicView.MMListener
All Implemented Interfaces:
java.awt.event.MouseMotionListener, java.util.EventListener
Enclosing class:
RTGraphicView

private class RTGraphicView.MMListener
extends java.awt.event.MouseMotionAdapter

Inner class for allowing the triangle to be dragged in order to change its size. The cursor is changed depending on whether the triangle can be resized.

Author:
David Brown from Byron Weber-Becker

Field Summary
private  boolean canDrag
           
 
Constructor Summary
private RTGraphicView.MMListener()
           
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent evt)
           
 void mouseMoved(java.awt.event.MouseEvent evt)
          The mouse moved: check if it's over the dragable regions and adjust the cursor accordingly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canDrag

private boolean canDrag
Constructor Detail

RTGraphicView.MMListener

private RTGraphicView.MMListener()
Method Detail

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent evt)
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 evt)
The mouse moved: check if it's over the dragable regions and adjust the cursor accordingly.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class java.awt.event.MouseMotionAdapter