| Modifier and Type | Field and Description |
|---|---|
| private int | accum_dx
The accumulated mouse deltas returned by poll() |
| private int | |
| private int | |
| private final byte[] | buttons
Buttons array |
| private final Component | |
| private final ByteBuffer | event
Event scratch array |
| private boolean | |
| private int | last_x
The last mouse position |
| private int | |
| public static final int | |
| private boolean | saved_control_state
Saved control key state for ctrl-click right button emulation |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected Component | |
| private void | |
| private void | |
| private void | |
| public synchronized boolean | |
| public void | mouseClicked(MouseEvent
the event to be processed e)Implements java. |
| public synchronized void | mouseDragged(MouseEvent
the event to be processed e)Implements java. |
| public void | mouseEntered(MouseEvent
the event to be processed e)Implements java. |
| public void | mouseExited(MouseEvent
the event to be processed e)Implements java. |
| public synchronized void | mouseMoved(MouseEvent
the event to be processed e)Implements java. |
| public synchronized void | mousePressed(MouseEvent
the event to be processed e)Implements java. |
| public synchronized void | mouseReleased(MouseEvent
the event to be processed e)Implements java. |
| public synchronized void | mouseWheelMoved(MouseWheelEvent
the event to be processed e)Implements java. |
| public synchronized void | |
| private void | |
| protected void | |
| public synchronized void | |
| protected void | |
| private void | |
| private void | |
| public synchronized void | |
| protected int | |
| public synchronized void | |
| protected void |
| accum_dx | back to summary |
|---|---|
| private int accum_dx The accumulated mouse deltas returned by poll() | |
| accum_dy | back to summary |
|---|---|
| private int accum_dy | |
| accum_dz | back to summary |
|---|---|
| private int accum_dz | |
| buttons | back to summary |
|---|---|
| private final byte[] buttons Buttons array | |
| component | back to summary |
|---|---|
| private final Component component | |
| event | back to summary |
|---|---|
| private final ByteBuffer event Event scratch array | |
| grabbed | back to summary |
|---|---|
| private boolean grabbed | |
| last_x | back to summary |
|---|---|
| private int last_x The last mouse position | |
| last_y | back to summary |
|---|---|
| private int last_y | |
| NUM_BUTTONS | back to summary |
|---|---|
| public static final int NUM_BUTTONS | |
| saved_control_state | back to summary |
|---|---|
| private boolean saved_control_state Saved control key state for ctrl-click right button emulation | |
| WHEEL_SCALE | back to summary |
|---|---|
| private static final int WHEEL_SCALE | |
| MouseEventQueue | back to summary |
|---|---|
| pack-priv MouseEventQueue(Component component) | |
| addDelta | back to summary |
|---|---|
| protected void addDelta(int dx, int dy) | |
| getComponent | back to summary |
|---|---|
| protected Component getComponent() | |
| handleButton | back to summary |
|---|---|
| private void handleButton(MouseEvent e) | |
| handleMotion | back to summary |
|---|---|
| private void handleMotion(MouseEvent e) | |
| handleWheel | back to summary |
|---|---|
| private void handleWheel(int amount, long nanos) | |
| isGrabbed | back to summary |
|---|---|
| public synchronized boolean isGrabbed() | |
| mouseClicked | back to summary |
|---|---|
| public void mouseClicked(MouseEvent e) Implements java. Doc from java. Invoked when the mouse button has been clicked (pressed and released) on a component.
| |
| mouseDragged | back to summary |
|---|---|
| public synchronized void mouseDragged(MouseEvent e) Implements java. Doc from java. Invoked when a mouse button is pressed on a component and then
dragged.
Due to platform-dependent Drag&Drop implementations,
| |
| mouseEntered | back to summary |
|---|---|
| public void mouseEntered(MouseEvent e) Implements java. Doc from java. Invoked when the mouse enters a component.
| |
| mouseExited | back to summary |
|---|---|
| public void mouseExited(MouseEvent e) Implements java. Doc from java. Invoked when the mouse exits a component.
| |
| mouseMoved | back to summary |
|---|---|
| public synchronized void mouseMoved(MouseEvent e) Implements java. Doc from java. Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
| |
| mousePressed | back to summary |
|---|---|
| public synchronized void mousePressed(MouseEvent e) Implements java. Doc from java. Invoked when a mouse button has been pressed on a component.
| |
| mouseReleased | back to summary |
|---|---|
| public synchronized void mouseReleased(MouseEvent e) Implements java. Doc from java. Invoked when a mouse button has been released on a component.
| |
| mouseWheelMoved | back to summary |
|---|---|
| public synchronized void mouseWheelMoved(MouseWheelEvent e) Implements java. Doc from java. Invoked when the mouse wheel is rotated.
| |
| poll | back to summary |
|---|---|
| public synchronized void poll(IntBuffer coord_buffer, ByteBuffer buttons_buffer) | |
| putMouseEvent | back to summary |
|---|---|
| private void putMouseEvent(byte button, byte state, int dz, long nanos) | |
| putMouseEventWithCoords | back to summary |
|---|---|
| protected void putMouseEventWithCoords(byte button, byte state, int coord1, int coord2, int dz, long nanos) | |
| register | back to summary |
|---|---|
| public synchronized void register() | |
| resetCursorToCenter | back to summary |
|---|---|
| protected void resetCursorToCenter() | |
| setButton | back to summary |
|---|---|
| private void setButton(byte button, byte state, long nanos) | |
| setCursorPos | back to summary |
|---|---|
| private void setCursorPos(int x, int y, long nanos) | |
| setGrabbed | back to summary |
|---|---|
| public synchronized void setGrabbed(boolean grabbed) | |
| transformY | back to summary |
|---|---|
| protected int transformY(int y) | |
| unregister | back to summary |
|---|---|
| public synchronized void unregister() | |
| updateDeltas | back to summary |
|---|---|
| protected void updateDeltas(long nanos) | |