|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmex.awt.swingui.dnd.JMEMouseDragGestureRecognizer
public class JMEMouseDragGestureRecognizer
| Constructor Summary | |
|---|---|
JMEMouseDragGestureRecognizer(JMEDragAndDrop dragAndDropSupport,
java.awt.Component c,
int act,
JMEDragGestureListener dgl)
create a new gesture recognizer that will send an event if it detects a drag gesture |
|
| Method Summary | |
|---|---|
protected void |
dispatchDragGestureEvent(JMEDragGestureEvent event)
|
int |
getMotionThreshold()
get the minimum width in pixel (horiz. and vertical) that one has to drag before the event is fired |
protected int |
mapDragOperationFromModifiers(java.awt.event.MouseEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when the mouse has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setMotionThreshold(int newThreshold)
set the minimum width in pixel (horiz. and vertical) that one has to drag before the event is fired |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMEMouseDragGestureRecognizer(JMEDragAndDrop dragAndDropSupport,
java.awt.Component c,
int act,
JMEDragGestureListener dgl)
dragAndDropSupport - JMEDragAndDrop this recognizer should usec - the component to monitoract - the allowed action (TODO: not yet used - probably remove?)dgl - the drag gesture listener| Method Detail |
|---|
protected int mapDragOperationFromModifiers(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - the MouseEventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerprotected void dispatchDragGestureEvent(JMEDragGestureEvent event)
public int getMotionThreshold()
public void setMotionThreshold(int newThreshold)
newThreshold - the width in pixelpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||