com.jidesoft.editor
Class EditorDragGestureRecognizer
java.lang.Object
com.jidesoft.editor.EditorDragGestureRecognizer
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener
public class EditorDragGestureRecognizer
- extends Object
- implements MouseListener, MouseMotionListener
Default drag gesture recognition for drag operations performed by classes that have a dragEnabled
property. The gesture for a drag in this package is a mouse press over a selection followed by some movement by
enough pixels to keep it from being treated as a click.
- Author:
- Timothy Prinzing
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorDragGestureRecognizer
public EditorDragGestureRecognizer()
mapDragOperationFromModifiers
protected int mapDragOperationFromModifiers(MouseEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked
in interface MouseListener
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface MouseListener
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interface MouseListener
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interface MouseListener
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interface MouseMotionListener
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved
in interface MouseMotionListener
isDragPossible
protected boolean isDragPossible(MouseEvent e)
- Determines if the following are true:
- the press event is located over a selection
- the dragEnabled
property is true
- A TranferHandler is installed
This is implemented to check for a TransferHandler. Subclasses should perform the remaining conditions.
getComponent
protected JComponent getComponent(MouseEvent e)