© 2006-2007 ETH Zurich

org.ximtec.igesture.io.keyboard
Enum Key

java.lang.Object
  extended by java.lang.Enum<Key>
      extended by org.ximtec.igesture.io.keyboard.Key
All Implemented Interfaces:
Serializable, Comparable<Key>

public enum Key
extends Enum<Key>

Key definition. This enum is used to simluate keyboard input.

Version:
1.0 28.11.2008
Author:
Ueli Kurmann

Enum Constant Summary
A
           
ALT
           
B
           
BACKSPACE
           
C
           
CLEAR
           
CONTROL
           
CTRL
           
D
           
DELETE
           
DOWN
           
E
           
END
           
ENTER
           
ESCAPE
           
F
           
F1
           
F10
           
F11
           
F12
           
F2
           
F3
           
F4
           
F5
           
F6
           
F7
           
F8
           
F9
           
G
           
H
           
HOME
           
I
           
J
           
K
           
KEY_DOWN
           
KEY_UP
           
L
           
LEFT
           
M
           
N
           
O
           
P
           
PAGE_DOWN
           
PAGE_UP
           
Q
           
R
           
RIGHT
           
S
           
SHIFT
           
SPACE
           
T
           
TAB
           
U
           
UP
           
V
           
VK_0
           
VK_1
           
VK_2
           
VK_3
           
VK_4
           
VK_5
           
VK_6
           
VK_7
           
VK_8
           
VK_9
           
W
           
X
           
Y
           
Z
           
 
Method Summary
 int getKeyId()
          Returns the integer representation of the key.
static Key[] parseKeyList(String keys)
          Parses a string list of keys Delimiter: + E.g.: ALT + TAB
static Key valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Key[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SHIFT

public static final Key SHIFT

CONTROL

public static final Key CONTROL

CTRL

public static final Key CTRL

ALT

public static final Key ALT

DELETE

public static final Key DELETE

CLEAR

public static final Key CLEAR

BACKSPACE

public static final Key BACKSPACE

TAB

public static final Key TAB

ENTER

public static final Key ENTER

ESCAPE

public static final Key ESCAPE

SPACE

public static final Key SPACE

VK_0

public static final Key VK_0

VK_1

public static final Key VK_1

VK_2

public static final Key VK_2

VK_3

public static final Key VK_3

VK_4

public static final Key VK_4

VK_5

public static final Key VK_5

VK_6

public static final Key VK_6

VK_7

public static final Key VK_7

VK_8

public static final Key VK_8

VK_9

public static final Key VK_9

A

public static final Key A

B

public static final Key B

C

public static final Key C

D

public static final Key D

E

public static final Key E

F

public static final Key F

G

public static final Key G

H

public static final Key H

I

public static final Key I

J

public static final Key J

K

public static final Key K

L

public static final Key L

M

public static final Key M

N

public static final Key N

O

public static final Key O

P

public static final Key P

Q

public static final Key Q

R

public static final Key R

S

public static final Key S

T

public static final Key T

U

public static final Key U

V

public static final Key V

W

public static final Key W

X

public static final Key X

Y

public static final Key Y

Z

public static final Key Z

F1

public static final Key F1

F2

public static final Key F2

F3

public static final Key F3

F4

public static final Key F4

F5

public static final Key F5

F6

public static final Key F6

F7

public static final Key F7

F8

public static final Key F8

F9

public static final Key F9

F10

public static final Key F10

F11

public static final Key F11

F12

public static final Key F12

LEFT

public static final Key LEFT

UP

public static final Key UP

RIGHT

public static final Key RIGHT

DOWN

public static final Key DOWN

PAGE_UP

public static final Key PAGE_UP

PAGE_DOWN

public static final Key PAGE_DOWN

END

public static final Key END

HOME

public static final Key HOME

KEY_DOWN

public static final Key KEY_DOWN

KEY_UP

public static final Key KEY_UP
Method Detail

values

public static Key[] 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 (Key c : Key.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Key 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

getKeyId

public int getKeyId()
Returns the integer representation of the key.

Returns:
the integer representation of the key.

parseKeyList

public static Key[] parseKeyList(String keys)
                          throws IllegalArgumentException
Parses a string list of keys Delimiter: + E.g.: ALT + TAB

Parameters:
keys -
Returns:
Throws:
IllegalArgumentException

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.