org.ximtec.igesture.io.mouse
Enum MouseUtils.MouseButton
java.lang.Object
java.lang.Enum<MouseUtils.MouseButton>
org.ximtec.igesture.io.mouse.MouseUtils.MouseButton
- All Implemented Interfaces:
- Serializable, Comparable<MouseUtils.MouseButton>
- Enclosing class:
- MouseUtils
public static enum MouseUtils.MouseButton
- extends Enum<MouseUtils.MouseButton>
LEFT
public static final MouseUtils.MouseButton LEFT
RIGHT
public static final MouseUtils.MouseButton RIGHT
MIDDLE
public static final MouseUtils.MouseButton MIDDLE
values
public static MouseUtils.MouseButton[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MouseUtils.MouseButton c : MouseUtils.MouseButton.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MouseUtils.MouseButton valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getButtonId
public int getButtonId()
Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.