public class Mouse extends java.lang.Object implements JmolMouseInterface
Modifier and Type | Field and Description |
---|---|
private ActionManager |
actionManager |
private boolean |
isMouseDown |
private java.lang.String |
keyBuffer |
private int |
modifiersWhenPressed10 |
private Viewer |
viewer |
private int |
xWhenPressed |
private int |
yWhenPressed |
Constructor and Description |
---|
Mouse(Viewer viewer,
ActionManager actionManager) |
Modifier and Type | Method and Description |
---|---|
private void |
addKeyBuffer(char ch) |
private static int |
applyLeftMouse(int modifiers) |
void |
clear() |
private void |
clearKeyBuffer() |
private void |
clicked(long time,
int x,
int y,
int modifiers,
int clickCount) |
void |
dispose() |
private void |
dragged(long time,
int x,
int y,
int modifiers) |
private void |
entered(long time,
int x,
int y) |
private void |
exited(long time,
int x,
int y) |
boolean |
handleOldJvm10Event(int id,
int x,
int y,
int modifiers,
long time) |
void |
keyPressed(java.awt.event.KeyEvent ke) |
void |
keyReleased(java.awt.event.KeyEvent ke) |
void |
keyTyped(java.awt.event.KeyEvent ke) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e) |
private void |
moved(long time,
int x,
int y,
int modifiers) |
private void |
pressed(long time,
int x,
int y,
int modifiers,
boolean isPopupTrigger) |
void |
processTwoPointGesture(float[][][] touches)
called directly by JSmol as applet._applet.viewer.mouse.processTwoPointGesture(canvas.touches);
|
private void |
released(long time,
int x,
int y,
int modifiers) |
private void |
sendKeyBuffer() |
private void |
wheeled(long time,
int rotation,
int modifiers) |
private Viewer viewer
private ActionManager actionManager
private java.lang.String keyBuffer
private boolean isMouseDown
private int xWhenPressed
private int yWhenPressed
private int modifiersWhenPressed10
public Mouse(Viewer viewer, ActionManager actionManager)
public void clear()
clear
in interface JmolMouseInterface
public void dispose()
dispose
in interface JmolMouseInterface
public boolean handleOldJvm10Event(int id, int x, int y, int modifiers, long time)
handleOldJvm10Event
in interface JmolMouseInterface
public void processTwoPointGesture(float[][][] touches)
touches
- [[finger1 touches],[finger2 touches]]
where finger touches are [[x0,y0],[x1,y1],[x2,y2],...]public void mouseClicked(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e)
public void mouseExited(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
public void keyTyped(java.awt.event.KeyEvent ke)
public void keyPressed(java.awt.event.KeyEvent ke)
public void keyReleased(java.awt.event.KeyEvent ke)
private void clearKeyBuffer()
private void addKeyBuffer(char ch)
private void sendKeyBuffer()
private void entered(long time, int x, int y)
private void exited(long time, int x, int y)
private void clicked(long time, int x, int y, int modifiers, int clickCount)
time
- x
- y
- modifiers
- clickCount
- private void moved(long time, int x, int y, int modifiers)
private void wheeled(long time, int rotation, int modifiers)
private void pressed(long time, int x, int y, int modifiers, boolean isPopupTrigger)
time
- x
- y
- modifiers
- isPopupTrigger
- private void released(long time, int x, int y, int modifiers)
private void dragged(long time, int x, int y, int modifiers)
private static int applyLeftMouse(int modifiers)