public class MouseUtils
extends java.lang.Object
Constructor and Description |
---|
MouseUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasNoModifierKey(java.awt.event.MouseEvent e)
Checks whether no modified key is pressed.
|
static boolean |
isDoubleClick(java.awt.event.MouseEvent e)
Checks whether the mouse event is a double-click event (with the left
mouse button).
|
static boolean |
isLeftClick(java.awt.event.MouseEvent e)
Checks whether the mouse event is a left-click event.
|
static boolean |
isMiddleClick(java.awt.event.MouseEvent e)
Checks whether the mouse event is a middle/wheel-click event.
|
static boolean |
isRightClick(java.awt.event.MouseEvent e)
Checks whether the mouse event is a right-click event.
|
public static boolean isLeftClick(java.awt.event.MouseEvent e)
e
- the eventpublic static boolean isDoubleClick(java.awt.event.MouseEvent e)
e
- the eventpublic static boolean isMiddleClick(java.awt.event.MouseEvent e)
e
- the eventpublic static boolean isRightClick(java.awt.event.MouseEvent e)
e
- the eventpublic static boolean hasNoModifierKey(java.awt.event.MouseEvent e)
e
- the event