artofillusion.ui
Class InfiniteDragListener
java.lang.Object
buoy.event.EventSource
artofillusion.ui.InfiniteDragListener
public class InfiniteDragListener
- extends buoy.event.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.
|
Method Summary |
boolean |
isEnabled()
Get whether the InfiniteDragListener is enabled. |
void |
setEnabled(boolean enabled)
Set whether the InfiniteDragListener is enabled. |
| Methods inherited from class buoy.event.EventSource |
addEventLink, addEventLink, addEventLink, dispatchEvent, removeEventLink |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InfiniteDragListener
public InfiniteDragListener(buoy.widget.Widget source)
- Create an InfiniteDragListener.
- Parameters:
source - the Widget on which the user may click to start an infinite drag
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-2008 by Peter Eastman.