|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.MouseEventConditions
public class MouseEventConditions
This class contains utility methods for creating
Conditions
that may be applied
to MouseEvents.
Method Summary | |
---|---|
static Condition<java.awt.event.MouseEvent> |
altDownCondition()
Returns a new condition that checks whether mouse events have happened while the ALT button was down |
static Condition<java.awt.event.MouseEvent> |
altGraphDownCondition()
Returns a new condition that checks whether mouse events have happened while the ALT-GR button was down |
static Condition<java.awt.event.MouseEvent> |
buttonCondition(int button)
Returns a new condition that checks whether the the specified button was pressed when the mouse event occurred. |
static Condition<java.awt.event.MouseEvent> |
controlDownCondition()
Returns a new condition that checks whether mouse events have happened while the CTRL button was down |
static Condition<java.awt.event.MouseEvent> |
falseCondition()
Returns a new Condition that is always false |
static Condition<java.awt.event.MouseEvent> |
flagCondition(int flags)
Returns a new condition that checks whether the the given flags are set in the extended modifiers of a mouse event. |
static Condition<java.awt.event.MouseEvent> |
metaDownCondition()
Returns a new condition that checks whether mouse events have happened while the META button was down |
static Condition<java.awt.event.MouseEvent> |
popupTriggerCondition()
Returns a new condition that checks whether mouse events are popup triggers. |
static Condition<java.awt.event.MouseEvent> |
shiftDownCondition()
Returns a new condition that checks whether mouse events have happened while the SHIFT button was down |
static Condition<java.awt.event.MouseEvent> |
trueCondition()
Returns a new Condition that is always true |
static Condition<java.awt.event.MouseEvent> |
wheelCondition()
Returns a new condition that checks whether a MouseEvent is a MouseWheelEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Condition<java.awt.event.MouseEvent> trueCondition()
true
public static Condition<java.awt.event.MouseEvent> falseCondition()
false
public static Condition<java.awt.event.MouseEvent> buttonCondition(int button)
button
- The button. Must be 1, 2 or 3
java.lang.IllegalArgumentException
- if the button is not 1, 2 or 3public static Condition<java.awt.event.MouseEvent> flagCondition(int flags)
flags
- The flags
public static Condition<java.awt.event.MouseEvent> wheelCondition()
public static Condition<java.awt.event.MouseEvent> controlDownCondition()
public static Condition<java.awt.event.MouseEvent> altDownCondition()
public static Condition<java.awt.event.MouseEvent> altGraphDownCondition()
public static Condition<java.awt.event.MouseEvent> shiftDownCondition()
public static Condition<java.awt.event.MouseEvent> metaDownCondition()
public static Condition<java.awt.event.MouseEvent> popupTriggerCondition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |