public abstract class MouseEvent extends Event
| Modifier and Type | Class and Description |
|---|---|
static class |
MouseEvent.MouseButton
Mouse button specifier.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MouseEvent(String type) |
protected |
MouseEvent(String type,
BaseComponent target,
Object data) |
| Modifier and Type | Method and Description |
|---|---|
MouseEvent.MouseButton |
getMouseButton()
Returns which
mouse button was depressed at the time of the event. |
int |
getPageX()
Returns the X (horizontal) coordinate in pixels of the event relative to the whole viewport.
|
int |
getPageY()
Returns the Y (vertical) coordinate in pixels of the event relative to the whole viewport.
|
getCurrentTarget, getData, getId, getPage, getRelatedTarget, getTarget, getTargetId, getType, isStopped, stopPropagationprotected MouseEvent(String type)
protected MouseEvent(String type, BaseComponent target, Object data)
public int getPageX()
public int getPageY()
public MouseEvent.MouseButton getMouseButton()
mouse button was depressed at the time of the event.mouse button was depressed at the time of the event.Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.