|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.dnd.BasicDragGestureRecognizer
public class BasicDragGestureRecognizer
A simple replacement for the non-accessible
javax.swing.plaf.basic.DragRecognitionSupport
class.
Nested Class Summary | |
---|---|
static interface |
BasicDragGestureRecognizer.BeforeDrag
This interface must be implemented by classes wishing to receive a notification before a drag gesture starts. |
Constructor Summary | |
---|---|
BasicDragGestureRecognizer()
|
Method Summary | |
---|---|
protected int |
getDragGestureMotionThreshold()
|
protected int |
getDragOperationType(MouseEvent me,
TransferHandler th)
|
int |
getDragThreshold()
|
protected int |
getOperationType(int modifiers,
int supportedActions)
|
boolean |
mouseDragged(MouseEvent me,
BasicDragGestureRecognizer.BeforeDrag bd)
Handle a mouse drag. |
boolean |
mousePressed(MouseEvent me)
Handle a mouse press. |
MouseEvent |
mouseReleased(MouseEvent me)
Handle a mouse release. |
void |
setDragThreshold(int dragThreshold)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicDragGestureRecognizer()
Method Detail |
---|
protected int getDragOperationType(MouseEvent me, TransferHandler th)
protected int getOperationType(int modifiers, int supportedActions)
public boolean mousePressed(MouseEvent me)
me
- the mouse event
protected int getDragGestureMotionThreshold()
public MouseEvent mouseReleased(MouseEvent me)
me
-
public boolean mouseDragged(MouseEvent me, BasicDragGestureRecognizer.BeforeDrag bd)
me
- bd
-
true
if a drag gesture was recognized, false
otherwise.public void setDragThreshold(int dragThreshold)
public int getDragThreshold()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |