|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.model.AbstractHashObject
com.guiseframework.input.AbstractGestureInput
public abstract class AbstractGestureInput
An abstract encapsulation of user input from a gesture.
| Constructor Summary | |
|---|---|
AbstractGestureInput(Key... keys)
Keys constructor. |
|
| 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. |
| Methods inherited from class com.globalmentor.model.AbstractHashObject |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractGestureInput(Key... keys)
keys - The keys that were pressed when this input occurred.
java.lang.NullPointerException - if the given keys is null.| Method Detail |
|---|
public java.util.Set<Key> getKeys()
getKeys in interface GestureInputpublic boolean hasAltKey()
hasAltKey in interface GestureInputtrue if one of the Alt keys were pressed when this input occurred.getKeys()public boolean hasControlKey()
hasControlKey in interface GestureInputtrue if one of the Control keys were pressed when this input occurred.getKeys()public boolean hasShiftKey()
hasShiftKey in interface GestureInputtrue if one of the Shift keys were pressed when this input occurred.getKeys()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||