java.lang.Object
com.memoire.dja.DjaMouseListener
- All Implemented Interfaces:
- DjaOptions, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
- public class DjaMouseListener
- extends java.lang.Object
- implements DjaOptions, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.KeyListener
| Fields inherited from interface com.memoire.dja.DjaOptions |
ABSOLUTE, anchorsColor, ANY, attachsColor, AUTO, BOTH, CENTER, closeX, closeY, controlsColor, defaultBigFont, defaultBoldFont, defaultPlainFont, defaultSmallFont, deltaX, deltaY, DISK_BG, DISK_EMPTY, DISK_FG, EAST, freesColor, handlesColor, HELPER, HORIZONTAL, LEFT, LEFT_TRIANGLE_BG, LEFT_TRIANGLE_EMPTY, LEFT_TRIANGLE_FG, LOSANGE_BG, LOSANGE_EMPTY, LOSANGE_FG, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_WEST, RELATIVE_ANCHOR, RELATIVE_ATTACH, RELATIVE_CONTROL, RELATIVE_NE, RELATIVE_NW, RELATIVE_SE, RELATIVE_SW, RELATIVE_TEXT_NE, RELATIVE_TEXT_NW, RELATIVE_TEXT_SE, RELATIVE_TEXT_SW, RIGHT, RIGHT_TRIANGLE_BG, RIGHT_TRIANGLE_EMPTY, RIGHT_TRIANGLE_FG, selectionBackground, selectionForeground, selectionTextColor, selectionZone, snap, SOUTH, SOUTH_EAST, SOUTH_WEST, SQUARE_BG, SQUARE_EMPTY, SQUARE_FG, VERTICAL, WEST |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xm_
private int xm_
ym_
private int ym_
ctrl_
private boolean ctrl_
shift_
private boolean shift_
grid_
private DjaGridInteractive grid_
last_
private DjaObject last_
lastdx_
private int lastdx_
lastdy_
private int lastdy_
lastx_
private int lastx_
lasty_
private int lasty_
lastw_
private int lastw_
lasth_
private int lasth_
handle_
private DjaHandle handle_
control_
private DjaControl control_
text_
private DjaText text_
linkbegin_
private boolean linkbegin_
linkend_
private boolean linkend_
DjaMouseListener
public DjaMouseListener(DjaGridInteractive _grid)
keyTyped
public void keyTyped(java.awt.event.KeyEvent _evt)
- Description copied from interface:
java.awt.event.KeyListener
- This method is called when a key is typed. A key is considered typed
when it and all modifiers have been pressed and released, mapping to
a single virtual key.
- Specified by:
keyTyped in interface java.awt.event.KeyListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent _evt)
- Description copied from interface:
java.awt.event.KeyListener
- This method is called when a key is pressed.
- Specified by:
keyPressed in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent _evt)
- Description copied from interface:
java.awt.event.KeyListener
- This method is called when a key is released.
- Specified by:
keyReleased in interface java.awt.event.KeyListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent _evt)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is clicked (pressed and released
in short succession) on a component.
- Specified by:
mouseClicked in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent _evt)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is pressed over a component.
- Specified by:
mousePressed in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent _evt)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is released over a component.
- Specified by:
mouseReleased in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent _evt)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse enters a component.
- Specified by:
mouseEntered in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent _evt)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse exits a component.
- Specified by:
mouseExited in interface java.awt.event.MouseListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent _evt)
- Description copied from interface:
java.awt.event.MouseMotionListener
- This method is called when the mouse is moved over a component
while no button is pressed.
- Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent _evt)
- Description copied from interface:
java.awt.event.MouseMotionListener
- This method is called when the mouse is moved over a component
while a button has been pressed.
- Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
adjustCursor
protected void adjustCursor()
adjustCursor
protected void adjustCursor(java.awt.event.MouseEvent _evt)
adjustCursor
protected void adjustCursor(int _x,
int _y,
boolean _shift,
boolean _ctrl)