Java Doc for MouseDragGestureRecognizer.java in  » 6.0-JDK-Core » AWT » java » awt » dnd » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt.dnd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.dnd.DragGestureRecognizer
      java.awt.dnd.MouseDragGestureRecognizer

MouseDragGestureRecognizer
abstract public class MouseDragGestureRecognizer extends DragGestureRecognizer implements MouseListener,MouseMotionListener(Code)
This abstract subclass of DragGestureRecognizer defines a DragGestureRecognizer for mouse-based gestures. Each platform implements 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.

Mouse drag gesture recognizers should honor the drag gesture motion threshold, available through DragSource.getDragThreshold . A drag gesture should be recognized only when the distance in either the horizontal or vertical direction between the location of the latest mouse dragged event and the location of the corresponding mouse button pressed event is greater than the drag gesture motion threshold.

Drag gesture recognizers created with DragSource.createDefaultDragGestureRecognizer follow this convention.
author:
   Laurence P. G. Cable
version:
   1.21
See Also:   java.awt.dnd.DragGestureListener
See Also:   java.awt.dnd.DragGestureEvent
See Also:   java.awt.dnd.DragSource




Constructor Summary
protected  MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)
     Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, the Component to observe, the action(s) permitted for this drag operation, and the DragGestureListener to notify when a drag gesture is detected.
protected  MouseDragGestureRecognizer(DragSource ds, Component c, int act)
     Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, the Component to observe, and the action(s) permitted for this drag operation.
protected  MouseDragGestureRecognizer(DragSource ds, Component c)
     Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, and the Component to observe.
protected  MouseDragGestureRecognizer(DragSource ds)
     Construct a new MouseDragGestureRecognizer given the DragSource for the Component.

Method Summary
public  voidmouseClicked(MouseEvent e)
     Invoked when the mouse has been clicked on a component.
public  voidmouseDragged(MouseEvent e)
     Invoked when a mouse button is pressed on a component.
public  voidmouseEntered(MouseEvent e)
     Invoked when the mouse enters a component.
public  voidmouseExited(MouseEvent e)
     Invoked when the mouse exits a component.
public  voidmouseMoved(MouseEvent e)
     Invoked when the mouse button has been moved on a component (with no buttons no down).
public  voidmousePressed(MouseEvent e)
     Invoked when a mouse button has been pressed on a Component.
public  voidmouseReleased(MouseEvent e)
     Invoked when a mouse button has been released on a component.
protected  voidregisterListeners()
    
protected  voidunregisterListeners()
    


Constructor Detail
MouseDragGestureRecognizer
protected MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)(Code)
Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, the Component to observe, the action(s) permitted for this drag operation, and the DragGestureListener to notify when a drag gesture is detected.


Parameters:
  ds - The DragSource for the Component c
Parameters:
  c - The Component to observe
Parameters:
  act - The actions permitted for this Drag
Parameters:
  dgl - The DragGestureListener to notify when a gesture is detected




MouseDragGestureRecognizer
protected MouseDragGestureRecognizer(DragSource ds, Component c, int act)(Code)
Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, the Component to observe, and the action(s) permitted for this drag operation.


Parameters:
  ds - The DragSource for the Component c
Parameters:
  c - The Component to observe
Parameters:
  act - The actions permitted for this drag




MouseDragGestureRecognizer
protected MouseDragGestureRecognizer(DragSource ds, Component c)(Code)
Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, and the Component to observe.


Parameters:
  ds - The DragSource for the Component c
Parameters:
  c - The Component to observe




MouseDragGestureRecognizer
protected MouseDragGestureRecognizer(DragSource ds)(Code)
Construct a new MouseDragGestureRecognizer given the DragSource for the Component.


Parameters:
  ds - The DragSource for the Component





Method Detail
mouseClicked
public void mouseClicked(MouseEvent e)(Code)
Invoked when the mouse has been clicked on a component.


Parameters:
  e - the MouseEvent




mouseDragged
public void mouseDragged(MouseEvent e)(Code)
Invoked when a mouse button is pressed on a component.


Parameters:
  e - the MouseEvent




mouseEntered
public void mouseEntered(MouseEvent e)(Code)
Invoked when the mouse enters a component.


Parameters:
  e - the MouseEvent




mouseExited
public void mouseExited(MouseEvent e)(Code)
Invoked when the mouse exits a component.


Parameters:
  e - the MouseEvent




mouseMoved
public void mouseMoved(MouseEvent e)(Code)
Invoked when the mouse button has been moved on a component (with no buttons no down).


Parameters:
  e - the MouseEvent




mousePressed
public void mousePressed(MouseEvent e)(Code)
Invoked when a mouse button has been pressed on a Component.


Parameters:
  e - the MouseEvent




mouseReleased
public void mouseReleased(MouseEvent e)(Code)
Invoked when a mouse button has been released on a component.


Parameters:
  e - the MouseEvent




registerListeners
protected void registerListeners()(Code)
register this DragGestureRecognizer's Listeners with the Component



unregisterListeners
protected void unregisterListeners()(Code)
unregister this DragGestureRecognizer's Listeners with the Component subclasses must override this method



Fields inherited from java.awt.dnd.DragGestureRecognizer
protected Component component(Code)(Java Doc)
protected transient DragGestureListener dragGestureListener(Code)(Java Doc)
protected DragSource dragSource(Code)(Java Doc)
protected ArrayList<InputEvent> events(Code)(Java Doc)
protected int sourceActions(Code)(Java Doc)

Methods inherited from java.awt.dnd.DragGestureRecognizer
public synchronized void addDragGestureListener(DragGestureListener dgl) throws TooManyListenersException(Code)(Java Doc)
protected synchronized void appendEvent(InputEvent awtie)(Code)(Java Doc)
protected synchronized void fireDragGestureRecognized(int dragAction, Point p)(Code)(Java Doc)
public synchronized Component getComponent()(Code)(Java Doc)
public DragSource getDragSource()(Code)(Java Doc)
public synchronized int getSourceActions()(Code)(Java Doc)
public InputEvent getTriggerEvent()(Code)(Java Doc)
abstract protected void registerListeners()(Code)(Java Doc)
public synchronized void removeDragGestureListener(DragGestureListener dgl)(Code)(Java Doc)
public void resetRecognizer()(Code)(Java Doc)
public synchronized void setComponent(Component c)(Code)(Java Doc)
public synchronized void setSourceActions(int actions)(Code)(Java Doc)
abstract protected void unregisterListeners()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.