|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.plaf.basic.core.DragRecognitionSupport
public class DragRecognitionSupport
Drag gesture recognition support for classes that have a
TransferHandler
. The gesture for a drag in this class is a mouse
press followed by movement by DragSource.getDragThreshold()
pixels. An instance of this class is maintained per AppContext, and the
public static methods call into the appropriate instance.
This is a c&p of core (package private) needed for BasicXListUI. It differs from core in that references to sun packages have been replaced.
Nested Class Summary | |
---|---|
static interface |
DragRecognitionSupport.BeforeDrag
This interface allows us to pass in a handler to mouseDragged, so that we can be notified immediately before a drag begins. |
Constructor Summary | |
---|---|
DragRecognitionSupport()
|
Method Summary | |
---|---|
static boolean |
mouseDragged(java.awt.event.MouseEvent me,
DragRecognitionSupport.BeforeDrag bd)
Returns whether or not a drag gesture recognition is ongoing. |
static boolean |
mousePressed(java.awt.event.MouseEvent me)
Returns whether or not the event is potentially part of a drag sequence. |
static java.awt.event.MouseEvent |
mouseReleased(java.awt.event.MouseEvent me)
If a dnd recognition has been going on, return the MouseEvent that started the recognition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DragRecognitionSupport()
Method Detail |
---|
public static boolean mousePressed(java.awt.event.MouseEvent me)
public static java.awt.event.MouseEvent mouseReleased(java.awt.event.MouseEvent me)
public static boolean mouseDragged(java.awt.event.MouseEvent me, DragRecognitionSupport.BeforeDrag bd)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |