Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
class: DragRecognitionSupport [javadoc | source]
java.lang.Object
   javax.swing.plaf.basic.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.
Nested Class Summary:
public 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. 
Method from javax.swing.plaf.basic.DragRecognitionSupport Summary:
mouseDragged,   mousePressed,   mouseReleased
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.DragRecognitionSupport Detail:
 public static boolean mouseDragged(MouseEvent me,
    BeforeDrag bd) 
    Returns whether or not a drag gesture recognition is ongoing.
 public static boolean mousePressed(MouseEvent me) 
    Returns whether or not the event is potentially part of a drag sequence.
 public static MouseEvent mouseReleased(MouseEvent me) 
    If a dnd recognition has been going on, return the MouseEvent that started the recognition. Otherwise, return null.