|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEventSource
artofillusion.ui.InfiniteDragListener
public class InfiniteDragListener
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 |
---|
public InfiniteDragListener(Widget source)
source
- the Widget on which the user may click to start an infinite dragMethod Detail |
---|
public void setEnabled(boolean enabled)
public boolean isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |