JIDE 3.5.15

com.jidesoft.editor
Class EditorDragGestureRecognizer

java.lang.Object
  extended by 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

Constructor Summary
EditorDragGestureRecognizer()
           
 
Method Summary
protected  JComponent getComponent(MouseEvent e)
           
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.

protected  int mapDragOperationFromModifiers(MouseEvent e)
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorDragGestureRecognizer

public EditorDragGestureRecognizer()
Method Detail

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:

This is implemented to check for a TransferHandler. Subclasses should perform the remaining conditions.


getComponent

protected JComponent getComponent(MouseEvent e)

JIDE 3.5.15