public class EventUtil extends java.lang.Object
Constructor and Description |
---|
EventUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAltDown(java.awt.event.InputEvent e)
Returns true if Alt key is pressed for the specified event
|
static boolean |
isAltDown(java.awt.event.InputEvent e,
boolean exclusive)
Returns true if Alt key is pressed for the specified event.
|
static boolean |
isControlDown(java.awt.event.InputEvent e)
Returns true if Ctrl key is pressed for the specified event
|
static boolean |
isControlDown(java.awt.event.InputEvent e,
boolean exclusive)
Returns true if Ctrl key is pressed for the specified event
|
static boolean |
isLeftMouseButton(java.awt.event.MouseEvent e)
Returns true if the mouse event specifies the left mouse button.
|
static boolean |
isMenuControlDown(java.awt.event.InputEvent e)
Returns true if Ctrl/Cmd menu key is pressed for the specified event.
|
static boolean |
isMenuControlDown(java.awt.event.InputEvent e,
boolean exclusive)
Returns true if Ctrl/Cmd menu key is pressed for the specified event.
|
static boolean |
isMiddleMouseButton(java.awt.event.MouseEvent e)
Returns true if the mouse event specifies the middle mouse button.
|
static boolean |
isNoModifier(java.awt.event.InputEvent e)
Returns true if there is no any modifiers in the specified input event.
|
static boolean |
isRightMouseButton(java.awt.event.MouseEvent e)
Returns true if the mouse event specifies the right mouse button.
|
static boolean |
isShiftDown(java.awt.event.InputEvent e)
Returns true if Shift key is pressed for the specified event.
|
static boolean |
isShiftDown(java.awt.event.InputEvent e,
boolean exclusive)
Returns true if Shift key is pressed for the specified event.
|
public EventUtil()
public static boolean isShiftDown(java.awt.event.InputEvent e)
public static boolean isShiftDown(java.awt.event.InputEvent e, boolean exclusive)
public static boolean isAltDown(java.awt.event.InputEvent e)
public static boolean isAltDown(java.awt.event.InputEvent e, boolean exclusive)
public static boolean isControlDown(java.awt.event.InputEvent e)
public static boolean isControlDown(java.awt.event.InputEvent e, boolean exclusive)
public static boolean isMenuControlDown(java.awt.event.InputEvent e)
public static boolean isMenuControlDown(java.awt.event.InputEvent e, boolean exclusive)
public static boolean isNoModifier(java.awt.event.InputEvent e)
public static boolean isLeftMouseButton(java.awt.event.MouseEvent e)
e
- a MouseEvent objectpublic static boolean isMiddleMouseButton(java.awt.event.MouseEvent e)
e
- a MouseEvent objectpublic static boolean isRightMouseButton(java.awt.event.MouseEvent e)
e
- a MouseEvent object