UniVista.support.screens
Class MouseDragger

java.lang.Object
  |
  +--UniVista.support.screens.MouseDragger

public class MouseDragger
extends java.lang.Object

This class takes a screen object and adds in listeners to handle mouse dragging events and move the object around on the screen.


Constructor Summary
MouseDragger(ScreenObject o)
          the constructor takes a ScreenObject and attempts to add the listeners to its component and adds triggers to any of its subcomponents
 
Method Summary
 void addScreenMouseAdapter(ScreenMouseAdapter m)
          Allow external listeners to react to any changes with the UI.
 void fireMouseClicked(ScreenMouseEvent evt)
           
 void fireMouseDragged(ScreenMouseEvent evt)
           
 void fireMousePressed(ScreenMouseEvent evt)
           
 void fireMouseReleased(ScreenMouseEvent evt)
           
 void setDraggingEnabled(boolean flag)
          Toggle a boolean flag which indicates whether or not the draggers should respond and move around components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseDragger

public MouseDragger(ScreenObject o)
the constructor takes a ScreenObject and attempts to add the listeners to its component and adds triggers to any of its subcomponents
Method Detail

addScreenMouseAdapter

public void addScreenMouseAdapter(ScreenMouseAdapter m)
Allow external listeners to react to any changes with the UI.

fireMousePressed

public void fireMousePressed(ScreenMouseEvent evt)

fireMouseClicked

public void fireMouseClicked(ScreenMouseEvent evt)

fireMouseReleased

public void fireMouseReleased(ScreenMouseEvent evt)

fireMouseDragged

public void fireMouseDragged(ScreenMouseEvent evt)

setDraggingEnabled

public void setDraggingEnabled(boolean flag)
Toggle a boolean flag which indicates whether or not the draggers should respond and move around components.