public class BasicDragGestureRecognizer extends Object
javax.swing.plaf.basic.DragRecognitionSupport
class.Modifier and Type | Class and Description |
---|---|
static interface |
BasicDragGestureRecognizer.BeforeDrag
This interface must be implemented by classes wishing to receive a notification before a drag
gesture starts.
|
Constructor and Description |
---|
BasicDragGestureRecognizer() |
Modifier and Type | Method and Description |
---|---|
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) |
protected int getDragOperationType(MouseEvent me, TransferHandler th)
protected int getOperationType(int modifiers, int supportedActions)
public boolean mousePressed(MouseEvent me)
me
- the mouse eventprotected 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()
Copyright © 2024 levigo holding gmbh. All rights reserved.