io.guise.framework.input.GestureInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guise-framework Show documentation
Show all versions of guise-framework Show documentation
Guise™ Internet application framework.
/*
* Copyright © 2005-2008 GlobalMentor, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.guise.framework.input;
import java.util.Set;
/**
* An encapsulation of user input from a gesture.
* @author Garret Wilson
*/
public interface GestureInput extends Input {
/** @return The keys that were pressed when this input occurred. */
public Set getKeys();
/**
* Determines whether an Alt key was pressed when this input occurred.
* @return true
if one of the Alt keys were pressed when this input occurred.
* @see #getKeys()
*/
public boolean hasAltKey();
/**
* Determines whether a Control key was pressed when this input occurred.
* @return true
if one of the Control keys were pressed when this input occurred.
* @see #getKeys()
*/
public boolean hasControlKey();
/**
* Determines whether a Shift key was pressed when this input occurred.
* @return true
if one of the Shift keys were pressed when this input occurred.
* @see #getKeys()
*/
public boolean hasShiftKey();
}