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