net.slashie.libjcsi
Class CharKey
java.lang.Object
net.slashie.libjcsi.CharKey
public class CharKey
- extends java.lang.Object
Allows for easier use of keyboard input.
- Author:
- Santiago Zapata, Eben Howard
Constructor Summary |
CharKey()
Constructor that does not set any values. |
CharKey(int code)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UARROW
public static final int UARROW
- See Also:
- Constant Field Values
DARROW
public static final int DARROW
- See Also:
- Constant Field Values
LARROW
public static final int LARROW
- See Also:
- Constant Field Values
RARROW
public static final int RARROW
- See Also:
- Constant Field Values
LCTRL
public static final int LCTRL
- See Also:
- Constant Field Values
RCTRL
public static final int RCTRL
- See Also:
- Constant Field Values
LALT
public static final int LALT
- See Also:
- Constant Field Values
RALT
public static final int RALT
- See Also:
- Constant Field Values
LSHIFT
public static final int LSHIFT
- See Also:
- Constant Field Values
RSHIFT
public static final int RSHIFT
- See Also:
- Constant Field Values
ENTER
public static final int ENTER
- See Also:
- Constant Field Values
BACKSPACE
public static final int BACKSPACE
- See Also:
- Constant Field Values
F1
public static final int F1
- See Also:
- Constant Field Values
F2
public static final int F2
- See Also:
- Constant Field Values
F3
public static final int F3
- See Also:
- Constant Field Values
F4
public static final int F4
- See Also:
- Constant Field Values
F5
public static final int F5
- See Also:
- Constant Field Values
F6
public static final int F6
- See Also:
- Constant Field Values
F7
public static final int F7
- See Also:
- Constant Field Values
F8
public static final int F8
- See Also:
- Constant Field Values
F9
public static final int F9
- See Also:
- Constant Field Values
F10
public static final int F10
- See Also:
- Constant Field Values
F11
public static final int F11
- See Also:
- Constant Field Values
F12
public static final int F12
- See Also:
- Constant Field Values
INSERT
public static final int INSERT
- See Also:
- Constant Field Values
HOME
public static final int HOME
- See Also:
- Constant Field Values
PAGEUP
public static final int PAGEUP
- See Also:
- Constant Field Values
PAGEDOWN
public static final int PAGEDOWN
- See Also:
- Constant Field Values
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
END
public static final int END
- See Also:
- Constant Field Values
ESC
public static final int ESC
- See Also:
- Constant Field Values
TAB
public static final int TAB
- See Also:
- Constant Field Values
OPENSHARPBRACETS
public static final int OPENSHARPBRACETS
- See Also:
- Constant Field Values
CLOSESHARPBRACETS
public static final int CLOSESHARPBRACETS
- See Also:
- Constant Field Values
SEMICOLON
public static final int SEMICOLON
- See Also:
- Constant Field Values
APOSTROPHE
public static final int APOSTROPHE
- See Also:
- Constant Field Values
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
DOT
public static final int DOT
- See Also:
- Constant Field Values
SLASH
public static final int SLASH
- See Also:
- Constant Field Values
BACKSLASH
public static final int BACKSLASH
- See Also:
- Constant Field Values
SPACE
public static final int SPACE
- See Also:
- Constant Field Values
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
EQUALS
public static final int EQUALS
- See Also:
- Constant Field Values
BACKAPOSTROPHE
public static final int BACKAPOSTROPHE
- See Also:
- Constant Field Values
CURLYMINUS
public static final int CURLYMINUS
- See Also:
- Constant Field Values
EXCLAMATION
public static final int EXCLAMATION
- See Also:
- Constant Field Values
ARROBE
public static final int ARROBE
- See Also:
- Constant Field Values
MONEY
public static final int MONEY
- See Also:
- Constant Field Values
PERCENTAGE
public static final int PERCENTAGE
- See Also:
- Constant Field Values
EXPONENCIATION
public static final int EXPONENCIATION
- See Also:
- Constant Field Values
AMPERSAND
public static final int AMPERSAND
- See Also:
- Constant Field Values
ASTERISK
public static final int ASTERISK
- See Also:
- Constant Field Values
OPENPARENTHESIS
public static final int OPENPARENTHESIS
- See Also:
- Constant Field Values
CLOSEPARENTHESIS
public static final int CLOSEPARENTHESIS
- See Also:
- Constant Field Values
UNDERLINE
public static final int UNDERLINE
- See Also:
- Constant Field Values
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
OPENCURLYBRACETS
public static final int OPENCURLYBRACETS
- See Also:
- Constant Field Values
CLOSECURLYBRACETS
public static final int CLOSECURLYBRACETS
- See Also:
- Constant Field Values
COLON
public static final int COLON
- See Also:
- Constant Field Values
COMILLAS
public static final int COMILLAS
- See Also:
- Constant Field Values
LESSTHAN
public static final int LESSTHAN
- See Also:
- Constant Field Values
MORETHAN
public static final int MORETHAN
- See Also:
- Constant Field Values
QUESTION
public static final int QUESTION
- See Also:
- Constant Field Values
OR
public static final int OR
- See Also:
- Constant Field Values
a
public static final int a
- See Also:
- Constant Field Values
b
public static final int b
- See Also:
- Constant Field Values
c
public static final int c
- See Also:
- Constant Field Values
d
public static final int d
- See Also:
- Constant Field Values
e
public static final int e
- See Also:
- Constant Field Values
f
public static final int f
- See Also:
- Constant Field Values
g
public static final int g
- See Also:
- Constant Field Values
h
public static final int h
- See Also:
- Constant Field Values
i
public static final int i
- See Also:
- Constant Field Values
j
public static final int j
- See Also:
- Constant Field Values
k
public static final int k
- See Also:
- Constant Field Values
l
public static final int l
- See Also:
- Constant Field Values
m
public static final int m
- See Also:
- Constant Field Values
n
public static final int n
- See Also:
- Constant Field Values
o
public static final int o
- See Also:
- Constant Field Values
p
public static final int p
- See Also:
- Constant Field Values
q
public static final int q
- See Also:
- Constant Field Values
r
public static final int r
- See Also:
- Constant Field Values
s
public static final int s
- See Also:
- Constant Field Values
t
public static final int t
- See Also:
- Constant Field Values
u
public static final int u
- See Also:
- Constant Field Values
v
public static final int v
- See Also:
- Constant Field Values
w
public static final int w
- See Also:
- Constant Field Values
x
public static final int x
- See Also:
- Constant Field Values
y
public static final int y
- See Also:
- Constant Field Values
z
public static final int z
- See Also:
- Constant Field Values
A
public static final int A
- See Also:
- Constant Field Values
B
public static final int B
- See Also:
- Constant Field Values
C
public static final int C
- See Also:
- Constant Field Values
D
public static final int D
- See Also:
- Constant Field Values
E
public static final int E
- See Also:
- Constant Field Values
F
public static final int F
- See Also:
- Constant Field Values
G
public static final int G
- See Also:
- Constant Field Values
H
public static final int H
- See Also:
- Constant Field Values
I
public static final int I
- See Also:
- Constant Field Values
J
public static final int J
- See Also:
- Constant Field Values
K
public static final int K
- See Also:
- Constant Field Values
L
public static final int L
- See Also:
- Constant Field Values
M
public static final int M
- See Also:
- Constant Field Values
N
public static final int N
- See Also:
- Constant Field Values
O
public static final int O
- See Also:
- Constant Field Values
P
public static final int P
- See Also:
- Constant Field Values
Q
public static final int Q
- See Also:
- Constant Field Values
R
public static final int R
- See Also:
- Constant Field Values
S
public static final int S
- See Also:
- Constant Field Values
T
public static final int T
- See Also:
- Constant Field Values
U
public static final int U
- See Also:
- Constant Field Values
V
public static final int V
- See Also:
- Constant Field Values
W
public static final int W
- See Also:
- Constant Field Values
X
public static final int X
- See Also:
- Constant Field Values
Y
public static final int Y
- See Also:
- Constant Field Values
Z
public static final int Z
- See Also:
- Constant Field Values
NONE
public static final int NONE
- See Also:
- Constant Field Values
N0
public static final int N0
- See Also:
- Constant Field Values
N1
public static final int N1
- See Also:
- Constant Field Values
N2
public static final int N2
- See Also:
- Constant Field Values
N3
public static final int N3
- See Also:
- Constant Field Values
N4
public static final int N4
- See Also:
- Constant Field Values
N5
public static final int N5
- See Also:
- Constant Field Values
N6
public static final int N6
- See Also:
- Constant Field Values
N7
public static final int N7
- See Also:
- Constant Field Values
N8
public static final int N8
- See Also:
- Constant Field Values
N9
public static final int N9
- See Also:
- Constant Field Values
CTRL
public static final int CTRL
- See Also:
- Constant Field Values
code
public int code
mirrors
public static java.util.Hashtable mirrors
CharKey
public CharKey(int code)
- Parameters:
code
- int that represents the character desired
CharKey
public CharKey()
- Constructor that does not set any values.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- String representation of CharKey
isArrow
public boolean isArrow()
- Can be used to determine if current CharKey is a directional character.
- Returns:
- true if directional character
isDownArrow
public boolean isDownArrow()
- Returns:
- true if directional character representing down
isDownLeftArrow
public boolean isDownLeftArrow()
- Returns:
- true if directional character representing down and left simultaneously
isDownRightArrow
public boolean isDownRightArrow()
- Returns:
- true if directional character representing down and right simultaneously
isCenterArrow
public boolean isCenterArrow()
- Returns:
- true if directional character is no-movement character, typically '5' on the numpad
isLeftArrow
public boolean isLeftArrow()
- Returns:
- true if directional character representing left
isRightArrow
public boolean isRightArrow()
- Returns:
- true if directional character representing right
isUpArrow
public boolean isUpArrow()
- Returns:
- true if directional character representing up
isUpLeftArrow
public boolean isUpLeftArrow()
- Returns:
- true if directional character representing up and left simultaneously
isUpRightArrow
public boolean isUpRightArrow()
- Returns:
- true if directional character representing up and right simultaneously
isSelfArrow
public boolean isSelfArrow()
- Returns:
- true if directional character is no-movement character, typically '5' on the numpad
isMetaKey
public boolean isMetaKey()
- Returns:
- true if CharKey represents any CTRL, ALT, or SHIFT keys
isAlphaNumeric
public boolean isAlphaNumeric()
- Returns:
- true if CharKey represents a number or letter