public class MouseEventDetails
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MouseEventDetails.MouseButton
Constants for mouse buttons.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
altKey |
protected MouseEventDetails.MouseButton |
button |
protected int |
clientX |
protected int |
clientY |
protected boolean |
ctrlKey |
protected boolean |
doubleClick |
protected boolean |
metaKey |
protected int |
relativeX |
protected int |
relativeY |
protected boolean |
shiftKey |
Constructor and Description |
---|
MouseEventDetails() |
Modifier and Type | Method and Description |
---|---|
MouseEventDetails.MouseButton |
getButton() |
int |
getClientX() |
int |
getClientY() |
int |
getRelativeX() |
int |
getRelativeY() |
boolean |
isAltKey() |
boolean |
isCtrlKey() |
boolean |
isDoubleClick() |
boolean |
isMetaKey() |
boolean |
isShiftKey() |
void |
setAltKey(boolean altKey) |
void |
setButton(MouseEventDetails.MouseButton button) |
void |
setClientX(int clientX) |
void |
setClientY(int clientY) |
void |
setCtrlKey(boolean ctrlKey) |
void |
setDoubleClick(boolean doubleClick) |
void |
setMetaKey(boolean metaKey) |
void |
setRelativeX(int relativeX) |
void |
setRelativeY(int relativeY) |
void |
setShiftKey(boolean shiftKey) |
protected MouseEventDetails.MouseButton button
protected int clientX
protected int clientY
protected boolean altKey
protected boolean ctrlKey
protected boolean metaKey
protected boolean shiftKey
protected boolean doubleClick
protected int relativeX
protected int relativeY
public MouseEventDetails.MouseButton getButton()
public void setButton(MouseEventDetails.MouseButton button)
public int getClientX()
public void setClientX(int clientX)
public int getClientY()
public void setClientY(int clientY)
public boolean isAltKey()
public void setAltKey(boolean altKey)
public boolean isCtrlKey()
public void setCtrlKey(boolean ctrlKey)
public boolean isMetaKey()
public void setMetaKey(boolean metaKey)
public boolean isShiftKey()
public void setShiftKey(boolean shiftKey)
public boolean isDoubleClick()
public void setDoubleClick(boolean doubleClick)
public int getRelativeX()
public void setRelativeX(int relativeX)
public int getRelativeY()
public void setRelativeY(int relativeY)