|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.dnd.DragGestureRecognizer | +--java.awt.dnd.MouseDragGestureRecognizer
This abstract subclass of DragGestureRecognizer defines a DragGestureRecognizer for Mouse based gestures. Each platform will implement its own concrete subclass of this class, available via the Toolkit.createDragGestureRecognizer() method, to encapsulate the recognition of the platform dependent Mouse gesture(s) that initiate a Drag and Drop operation.
DragGestureListener
,
DragGestureEvent
,
DragSource
Fields inherited from class java.awt.dnd.DragGestureRecognizer | |
component , dragGestureListener , dragSource , events , sourceActions |
Constructor Summary | |
MouseDragGestureRecognizer(DragSource ds,
Component c,
int act,
DragGestureListener dgl)
construct a new MouseDragGestureRecognizer |
|
MouseDragGestureRecognizer(DragSource ds,
Component c,
int act)
construct a new MouseDragGestureRecognizer |
|
MouseDragGestureRecognizer(DragSource ds,
Component c)
construct a new MouseDragGestureRecognizer |
|
MouseDragGestureRecognizer(DragSource ds)
construct a new MouseDragGestureRecognizer |
Method Summary | |
void | mouseClicked(MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void | mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component. |
void | mouseEntered(MouseEvent e)
Invoked when the mouse enters a component. |
void | mouseExited(MouseEvent e)
Invoked when the mouse exits a component. |
void | mouseMoved(MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down). |
void | mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void | mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component. |
protected void | registerListeners()
register this DragGestureRecognizer's Listeners with the Component |
protected void | unregisterListeners()
unregister this DragGestureRecognizer's Listeners with the Component subclasses must override this method |
Methods inherited from class java.awt.dnd.DragGestureRecognizer | |
addDragGestureListener , appendEvent , fireDragGestureRecognized , getComponent , getDragSource , getSourceActions , getTriggerEvent , removeDragGestureListener , resetRecognizer , setComponent , setSourceActions |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Constructor Detail |
protected MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)
ds
- The DragSource for the Component c
c
- The Component to observe
act
- The actions permitted for this Drag
dgl
- The DragGestureRecognizer to notify when a gesture is detectedprotected MouseDragGestureRecognizer(DragSource ds, Component c, int act)
ds
- The DragSource for the Component c
c
- The Component to observe
act
- The actions permitted for this Dragprotected MouseDragGestureRecognizer(DragSource ds, Component c)
ds
- The DragSource for the Component c
c
- The Component to observeprotected MouseDragGestureRecognizer(DragSource ds)
ds
- The DragSource for the Component cMethod Detail |
protected void registerListeners()
protected void unregisterListeners()
public void mouseClicked(MouseEvent e)
public void mousePressed(MouseEvent e)
public void mouseReleased(MouseEvent e)
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mouseDragged(MouseEvent e)
public void mouseMoved(MouseEvent e)
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |