com.guiseframework.input
Interface GestureInput

All Superinterfaces:
Input
All Known Subinterfaces:
KeyboardInput, MouseInput
All Known Implementing Classes:
AbstractGestureInput, AbstractMouseInput, KeystrokeInput, MouseClickInput

public interface GestureInput
extends Input

An encapsulation of user input from a gesture.

Author:
Garret Wilson

Method Summary
 java.util.Set<Key> getKeys()
           
 boolean hasAltKey()
          Determines whether an Alt key was pressed when this input occurred.
 boolean hasControlKey()
          Determines whether a Control key was pressed when this input occurred.
 boolean hasShiftKey()
          Determines whether a Shift key was pressed when this input occurred.
 

Method Detail

getKeys

java.util.Set<Key> getKeys()
Returns:
The keys that were pressed when this input occurred.

hasAltKey

boolean hasAltKey()
Determines whether an Alt key was pressed when this input occurred.

Returns:
true if one of the Alt keys were pressed when this input occurred.
See Also:
getKeys()

hasControlKey

boolean hasControlKey()
Determines whether a Control key was pressed when this input occurred.

Returns:
true if one of the Control keys were pressed when this input occurred.
See Also:
getKeys()

hasShiftKey

boolean hasShiftKey()
Determines whether a Shift key was pressed when this input occurred.

Returns:
true if one of the Shift keys were pressed when this input occurred.
See Also:
getKeys()


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.