public class MouseShortcut extends Shortcut
| Modifier and Type | Field and Description |
|---|---|
static int |
BUTTON_WHEEL_DOWN |
static int |
BUTTON_WHEEL_UP |
EMPTY_ARRAY| Constructor and Description |
|---|
MouseShortcut(int button,
int modifiers,
int clickCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getButton() |
static int |
getButton(java.awt.event.MouseEvent event) |
int |
getClickCount() |
int |
getModifiers() |
int |
hashCode() |
boolean |
isKeyboard() |
boolean |
startsWith(Shortcut sc) |
java.lang.String |
toString() |
public static final int BUTTON_WHEEL_UP
public static final int BUTTON_WHEEL_DOWN
public MouseShortcut(int button,
int modifiers,
int clickCount)
button - Mouse buttons MouseEvent.BUTTON_LEFT, MouseEvent.BUTTON2, etc...modifiers - modifiersEx masks like InputEvent.ALT_DOWN_MASK and so on...clickCount - click count from the MouseEvent that caused the MouseShortcut creationpublic static int getButton(java.awt.event.MouseEvent event)
public int getButton()
public int getModifiers()
public int getClickCount()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isKeyboard()
isKeyboard in class Shortcutpublic boolean startsWith(Shortcut sc)
startsWith in class Shortcutpublic java.lang.String toString()
toString in class java.lang.Object