artofillusion.ui
Class InfiniteDragListener

java.lang.Object
  extended by EventSource
      extended by artofillusion.ui.InfiniteDragListener

public class InfiniteDragListener
extends EventSource

This class implements "infinite" mouse drags, which are not restricted by the boundaries of the screen. It is useful when you want to use mouse drags to control something other than the cursor position. It accomplishes this by repeatedly moving the cursor back to the original click position, while generating its own MouseDraggedEvents and MouseReleasedEvents as if the cursor were freely moving over an unbounded screen.


Constructor Summary
InfiniteDragListener(Widget source)
          Create an InfiniteDragListener.
 
Method Summary
 boolean isEnabled()
          Get whether the InfiniteDragListener is enabled.
 void setEnabled(boolean enabled)
          Set whether the InfiniteDragListener is enabled.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfiniteDragListener

public InfiniteDragListener(Widget source)
Create an InfiniteDragListener.

Parameters:
source - the Widget on which the user may click to start an infinite drag
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Set whether the InfiniteDragListener is enabled. When disabled, it does not generate any events or affect the mouse position.


isEnabled

public boolean isEnabled()
Get whether the InfiniteDragListener is enabled. When disabled, it does not generate any events or affect the mouse position.



Copyright © 1999-2011 by Peter Eastman.