de.javagl.swogl
Class MouseEventConditions

java.lang.Object
  extended by de.javagl.swogl.MouseEventConditions

public class MouseEventConditions
extends java.lang.Object

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> controlDownCondition()
          Returns a new condition that checks whether mouse events have happened while the CTRL button was down
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

controlDownCondition

public static Condition<java.awt.event.MouseEvent> controlDownCondition()
Returns a new condition that checks whether mouse events have happened while the CTRL button was down

Returns:
The new condition

altDownCondition

public static Condition<java.awt.event.MouseEvent> altDownCondition()
Returns a new condition that checks whether mouse events have happened while the ALT button was down

Returns:
The new condition

altGraphDownCondition

public 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

Returns:
The new condition

shiftDownCondition

public static Condition<java.awt.event.MouseEvent> shiftDownCondition()
Returns a new condition that checks whether mouse events have happened while the SHIFT button was down

Returns:
The new condition

metaDownCondition

public static Condition<java.awt.event.MouseEvent> metaDownCondition()
Returns a new condition that checks whether mouse events have happened while the META button was down

Returns:
The new condition

popupTriggerCondition

public static Condition<java.awt.event.MouseEvent> popupTriggerCondition()
Returns a new condition that checks whether mouse events are popup triggers.

Returns:
The new condition