Package com.illumon.iris.gui.util
Class MouseUtils
java.lang.Object
com.illumon.iris.gui.util.MouseUtils
Helpers to use inside your MouseEvent handlers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true if we should open a context menu in response to the mouse click (i.e.static boolean
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
-