Package de.vatrasoft.vatralib.gfx
Enum Key
- java.lang.Object
-
- java.lang.Enum<Key>
-
- de.vatrasoft.vatralib.gfx.Key
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AConstant for theAkeyADDConstant for theAddkeyALTConstant for theAltkey (Optionon the Mac keyboard)BConstant for theBkeyBACK_SPACEConstant for theBackspacekeyCConstant for theCkeyCAPSConstant for theCaps LockkeyCOMMAConstant for theCommakeyCOMMANDConstant for theCommandkey on the Mac keyboardCONTEXT_MENUConstant for theContext MenukeyCONTROLConstant for theCtrlkey (Controlon the Mac keyboard)DConstant for theDkeyDELETEConstant for theDeletekeyDIGIT0Constant for the0keyDIGIT1Constant for the1keyDIGIT2Constant for the2keyDIGIT3Constant for the3keyDIGIT4Constant for the4keyDIGIT5Constant for the5keyDIGIT6Constant for the6keyDIGIT7Constant for the7keyDIGIT8Constant for the8keyDIGIT9Constant for the9keyDIVIDEConstant for theDividekeyDOWNConstant for theDown(arrow) keyEConstant for theEkeyENDConstant for theEndkeyENTERConstant for theEnterkeyESCAPEConstant for theEscapekeyFConstant for theFkeyF1Constant for theF1keyF10Constant for theF10keyF11Constant for theF11keyF12Constant for theF12keyF2Constant for theF2keyF3Constant for theF3keyF4Constant for theF4keyF5Constant for theF5keyF6Constant for theF6keyF7Constant for theF7keyF8Constant for theF8keyF9Constant for theF9keyGConstant for theGkeyHConstant for theHkeyHOMEConstant for theHomekeyIConstant for theIkeyINSERTConstant for theInsertkeyJConstant for theJkeyKConstant for theKkeyKP_DOWNConstant for theDown(arrow) key on the numeric keypadKP_LEFTConstant for theLeft(arrow) key on the numeric keypadKP_RIGHTConstant for theRight(arrow) key on the numeric keypadKP_UPConstant for theUp(arrow) key on the numeric keypadLConstant for theLkeyLEFTConstant for theLeft(arrow) keyMConstant for theMkeyMETAConstant for theMetakeyMINUSConstant for theMinuskeyMULTIPLYConstant for theMultiplykeyMUTEConstant for theMutekeyNConstant for theNkeyNUMPAD0Constant for the0key on the numeric keypadNUMPAD1Constant for the1key on the numeric keypadNUMPAD2Constant for the2key on the numeric keypadNUMPAD3Constant for the3key on the numeric keypadNUMPAD4Constant for the4key on the numeric keypadNUMPAD5Constant for the5key on the numeric keypadNUMPAD6Constant for the6key on the numeric keypadNUMPAD7Constant for the7key on the numeric keypadNUMPAD8Constant for the8key on the numeric keypadNUMPAD9Constant for the9key on the numeric keypadOConstant for theOkeyPConstant for thePkeyPAGE_DOWNConstant for thePageDownkeyPAGE_UPConstant for thePageUpkeyPERIODConstant for thePeriodkeyQConstant for theQkeyRConstant for theRkeyRIGHTConstant for theRight(arrow) keySConstant for theSkeySHIFTConstant for theShiftkeySPACEConstant for theSpacekeySUBTRACTConstant for theSubtractkeyTConstant for theTkeyTABConstant for theTabkeyUConstant for theUkeyUNDEFINEDConstant for unknown keysUPConstant for theUp(arrow) keyVConstant for theVkeyVOLUME_DOWNConstant for theVolume DownkeyVOLUME_UPConstant for theVolume UpkeyWConstant for theWkeyWINDOWSConstant for theWindowskeyXConstant for theXkeyYConstant for theYkeyZConstant for theZkey
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyvalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
ENTER
public static final Key ENTER
Constant for theEnterkey
-
BACK_SPACE
public static final Key BACK_SPACE
Constant for theBackspacekey
-
TAB
public static final Key TAB
Constant for theTabkey
-
SHIFT
public static final Key SHIFT
Constant for theShiftkey
-
CONTROL
public static final Key CONTROL
Constant for theCtrlkey (Controlon the Mac keyboard)
-
ALT
public static final Key ALT
Constant for theAltkey (Optionon the Mac keyboard)
-
CAPS
public static final Key CAPS
Constant for theCaps Lockkey
-
ESCAPE
public static final Key ESCAPE
Constant for theEscapekey
-
SPACE
public static final Key SPACE
Constant for theSpacekey
-
PAGE_UP
public static final Key PAGE_UP
Constant for thePageUpkey
-
PAGE_DOWN
public static final Key PAGE_DOWN
Constant for thePageDownkey
-
END
public static final Key END
Constant for theEndkey
-
HOME
public static final Key HOME
Constant for theHomekey
-
LEFT
public static final Key LEFT
Constant for theLeft(arrow) key
-
UP
public static final Key UP
Constant for theUp(arrow) key
-
RIGHT
public static final Key RIGHT
Constant for theRight(arrow) key
-
DOWN
public static final Key DOWN
Constant for theDown(arrow) key
-
COMMA
public static final Key COMMA
Constant for theCommakey
-
MINUS
public static final Key MINUS
Constant for theMinuskey
-
PERIOD
public static final Key PERIOD
Constant for thePeriodkey
-
DIGIT0
public static final Key DIGIT0
Constant for the0key
-
DIGIT1
public static final Key DIGIT1
Constant for the1key
-
DIGIT2
public static final Key DIGIT2
Constant for the2key
-
DIGIT3
public static final Key DIGIT3
Constant for the3key
-
DIGIT4
public static final Key DIGIT4
Constant for the4key
-
DIGIT5
public static final Key DIGIT5
Constant for the5key
-
DIGIT6
public static final Key DIGIT6
Constant for the6key
-
DIGIT7
public static final Key DIGIT7
Constant for the7key
-
DIGIT8
public static final Key DIGIT8
Constant for the8key
-
DIGIT9
public static final Key DIGIT9
Constant for the9key
-
A
public static final Key A
Constant for theAkey
-
B
public static final Key B
Constant for theBkey
-
C
public static final Key C
Constant for theCkey
-
D
public static final Key D
Constant for theDkey
-
E
public static final Key E
Constant for theEkey
-
F
public static final Key F
Constant for theFkey
-
G
public static final Key G
Constant for theGkey
-
H
public static final Key H
Constant for theHkey
-
I
public static final Key I
Constant for theIkey
-
J
public static final Key J
Constant for theJkey
-
K
public static final Key K
Constant for theKkey
-
L
public static final Key L
Constant for theLkey
-
M
public static final Key M
Constant for theMkey
-
N
public static final Key N
Constant for theNkey
-
O
public static final Key O
Constant for theOkey
-
P
public static final Key P
Constant for thePkey
-
Q
public static final Key Q
Constant for theQkey
-
R
public static final Key R
Constant for theRkey
-
S
public static final Key S
Constant for theSkey
-
T
public static final Key T
Constant for theTkey
-
U
public static final Key U
Constant for theUkey
-
V
public static final Key V
Constant for theVkey
-
W
public static final Key W
Constant for theWkey
-
X
public static final Key X
Constant for theXkey
-
Y
public static final Key Y
Constant for theYkey
-
Z
public static final Key Z
Constant for theZkey
-
NUMPAD0
public static final Key NUMPAD0
Constant for the0key on the numeric keypad
-
NUMPAD1
public static final Key NUMPAD1
Constant for the1key on the numeric keypad
-
NUMPAD2
public static final Key NUMPAD2
Constant for the2key on the numeric keypad
-
NUMPAD3
public static final Key NUMPAD3
Constant for the3key on the numeric keypad
-
NUMPAD4
public static final Key NUMPAD4
Constant for the4key on the numeric keypad
-
NUMPAD5
public static final Key NUMPAD5
Constant for the5key on the numeric keypad
-
NUMPAD6
public static final Key NUMPAD6
Constant for the6key on the numeric keypad
-
NUMPAD7
public static final Key NUMPAD7
Constant for the7key on the numeric keypad
-
NUMPAD8
public static final Key NUMPAD8
Constant for the8key on the numeric keypad
-
NUMPAD9
public static final Key NUMPAD9
Constant for the9key on the numeric keypad
-
MULTIPLY
public static final Key MULTIPLY
Constant for theMultiplykey
-
ADD
public static final Key ADD
Constant for theAddkey
-
SUBTRACT
public static final Key SUBTRACT
Constant for theSubtractkey
-
DIVIDE
public static final Key DIVIDE
Constant for theDividekey
-
DELETE
public static final Key DELETE
Constant for theDeletekey
-
F1
public static final Key F1
Constant for theF1key
-
F2
public static final Key F2
Constant for theF2key
-
F3
public static final Key F3
Constant for theF3key
-
F4
public static final Key F4
Constant for theF4key
-
F5
public static final Key F5
Constant for theF5key
-
F6
public static final Key F6
Constant for theF6key
-
F7
public static final Key F7
Constant for theF7key
-
F8
public static final Key F8
Constant for theF8key
-
F9
public static final Key F9
Constant for theF9key
-
F10
public static final Key F10
Constant for theF10key
-
F11
public static final Key F11
Constant for theF11key
-
F12
public static final Key F12
Constant for theF12key
-
INSERT
public static final Key INSERT
Constant for theInsertkey
-
META
public static final Key META
Constant for theMetakey
-
KP_UP
public static final Key KP_UP
Constant for theUp(arrow) key on the numeric keypad
-
KP_DOWN
public static final Key KP_DOWN
Constant for theDown(arrow) key on the numeric keypad
-
KP_LEFT
public static final Key KP_LEFT
Constant for theLeft(arrow) key on the numeric keypad
-
KP_RIGHT
public static final Key KP_RIGHT
Constant for theRight(arrow) key on the numeric keypad
-
WINDOWS
public static final Key WINDOWS
Constant for theWindowskey
-
CONTEXT_MENU
public static final Key CONTEXT_MENU
Constant for theContext Menukey
-
UNDEFINED
public static final Key UNDEFINED
Constant for unknown keys
-
VOLUME_UP
public static final Key VOLUME_UP
Constant for theVolume Upkey
-
VOLUME_DOWN
public static final Key VOLUME_DOWN
Constant for theVolume Downkey
-
MUTE
public static final Key MUTE
Constant for theMutekey
-
COMMAND
public static final Key COMMAND
Constant for theCommandkey on the Mac keyboard
-
-
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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-