Package com.illumon.iris.gui.util
Class MouseUtils
java.lang.Object
com.illumon.iris.gui.util.MouseUtils
public class MouseUtils extends Object
Helpers to use inside your MouseEvent handlers.
-
Constructor Summary
Constructors Constructor Description MouseUtils()
-
Method Summary
Modifier and Type Method Description static boolean
isContextMenu(MouseEvent e)
Returns true if we should open a context menu in response to the mouse click (i.e.static boolean
isDoubleClick(MouseEvent e)
Returns true if e is a standard double click, that should invoke an action.
-
Constructor Details
-
MouseUtils
public MouseUtils()
-
-
Method Details
-
isDoubleClick
Returns true if e is a standard double click, that should invoke an action.- Parameters:
e
- the mouse event to test- Returns:
- true if the mouse event should invoke an action.
-
isContextMenu
Returns true if we should open a context menu in response to the mouse click (i.e. it is the right mouse button).- Parameters:
e
- the mouse event to test- Returns:
- true if the mouse event should open a context menu
-