org.jmol.viewer
Class MouseManager
public abstract
class
MouseManager
extends Object
implements KeyListener
Method Summary |
int | addToMeasurement(int atomIndex, Point3f nearestPoint, boolean dblClick) |
void | calcRectRubberBand() |
void | checkMotion() |
void | checkPointOrAtomClicked(int x, int y, int modifiers, int clickCount) |
void | clear() |
void | clearClickCount() |
void | enterMeasurementMode() |
void | exitMeasurementMode() |
Rectangle | getRubberBand() |
abstract boolean | handleOldJvm10Event(Event e) |
void | hoverOff() |
void | hoverOn(int atomIndex) |
void | keyPressed(KeyEvent ke) |
void | keyReleased(KeyEvent ke) |
void | keyTyped(KeyEvent ke) |
void | mouseClicked(long time, int x, int y, int modifiers, int clickCount) |
void | mouseDragged(long time, int x, int y, int modifiers) |
void | mouseEntered(long time, int x, int y)
mth 2004 03 17
this isPopupTrigger stuff just doesn't work reliably for me
and I don't have a Mac to test out CTRL-CLICK behavior
Therefore ... we are going to implement both gestures
to bring up the popup menu
The fact that we are using CTRL_LEFT may
interfere with other platforms if/when we
need to support multiple selections, but we will
cross that bridge when we come to it
|
void | mouseExited(long time, int x, int y) |
void | mouseMoved(long time, int x, int y, int modifiers) |
void | mousePressed(long time, int x, int y, int modifiers, boolean isPopupTrigger) |
void | mouseReleased(long time, int x, int y, int modifiers) |
void | mouseWheel(long time, int rotation, int modifiers) |
protected void | processKeyEvent(KeyEvent ke) |
void | removeMouseListeners11() |
void | removeMouseListeners14() |
void | setModeMouse(int modeMouse) |
void | setMouseMode() |
void | startHoverWatcher(boolean isStart) |
void | toggleMeasurement() |
static final int ALT
public static final int ALT_LEFT
public static final int ALT_SHIFT_LEFT
public static final int BUTTON_MODIFIER_MASK
static final int CTRL
static final int CTRL_ALT_LEFT
static final int CTRL_ALT_SHIFT_LEFT
static final int CTRL_ALT_SHIFT_RIGHT
static final int CTRL_LEFT
static final int CTRL_MIDDLE
static final int CTRL_RIGHT
static final int CTRL_SHIFT
static final int CTRL_SHIFT_LEFT
static final int CTRL_SHIFT_MIDDLE
static final int CTRL_SHIFT_RIGHT
boolean drawMode
boolean hoverActive
Thread hoverWatcherThread
static final int LEFT
static final int LEFT_MIDDLE_RIGHT
boolean measuresEnabled
long mouseMovedTime
int mouseMovedX
int mouseMovedY
static final long MAX_DOUBLE_CLICK_MILLIS
static final int MIDDLE
static final int MIDDLE_RIGHT
int pressedCount
int previousClickCount
int previousClickModifiers
long previousClickTime
int previousClickX
int previousClickY
int previousDragX
int previousDragY
int previousPressedModifiers
long previousPressedTime
int previousPressedX
int previousPressedY
static final Rectangle rectRubber
private boolean rubberbandSelectionMode
static final int RIGHT
public static final int SHIFT
public static final int SHIFT_LEFT
static final int SHIFT_MIDDLE
static final int SHIFT_RIGHT
long timeCurrent
static final float wheelClickFractionDown
static final float wheelClickFractionUp
int xAnchor
int xCurrent
int yAnchor
int yCurrent
private int addToMeasurement(int atomIndex, Point3f nearestPoint, boolean dblClick)
private void calcRectRubberBand()
void checkMotion()
private void checkPointOrAtomClicked(int x, int y, int modifiers, int clickCount)
void clear()
void clearClickCount()
private void enterMeasurementMode()
private void exitMeasurementMode()
Rectangle getRubberBand()
abstract boolean handleOldJvm10Event(Event e)
void hoverOff()
void hoverOn(int atomIndex)
public void keyPressed(KeyEvent ke)
public void keyReleased(KeyEvent ke)
public void keyTyped(KeyEvent ke)
void mouseClicked(long time, int x, int y, int modifiers, int clickCount)
void mouseDragged(long time, int x, int y, int modifiers)
void mouseEntered(long time, int x, int y)
mth 2004 03 17
this isPopupTrigger stuff just doesn't work reliably for me
and I don't have a Mac to test out CTRL-CLICK behavior
Therefore ... we are going to implement both gestures
to bring up the popup menu
The fact that we are using CTRL_LEFT may
interfere with other platforms if/when we
need to support multiple selections, but we will
cross that bridge when we come to it
void mouseExited(long time, int x, int y)
void mouseMoved(long time, int x, int y, int modifiers)
void mousePressed(long time, int x, int y, int modifiers, boolean isPopupTrigger)
void mouseReleased(long time, int x, int y, int modifiers)
void mouseWheel(long time, int rotation, int modifiers)
protected void processKeyEvent(KeyEvent ke)
void removeMouseListeners11()
void removeMouseListeners14()
void setModeMouse(int modeMouse)
void setMouseMode()
void startHoverWatcher(boolean isStart)
private void toggleMeasurement()