public class CalculatorKeyMaker
extends java.lang.Object
Constructor and Description |
---|
CalculatorKeyMaker() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<KeyboardKey> |
createSquareKeysLine(java.lang.String keysOnePerChar,
int width,
int height,
int leftIndent,
int topIndent,
int gapBetweenKeys)
Creates the square keys line.
|
static int |
getKeyCode(char c)
Gets the key code.
|
public static java.util.List<KeyboardKey> createSquareKeysLine(java.lang.String keysOnePerChar, int width, int height, int leftIndent, int topIndent, int gapBetweenKeys)
keysOnePerChar
- the keys one per charwidth
- the widthheight
- the heightleftIndent
- the left indenttopIndent
- the top indentgapBetweenKeys
- the gap between keyspublic static int getKeyCode(char c) throws java.lang.SecurityException, java.lang.NoSuchFieldException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException
c
- the cjava.lang.SecurityException
- the security exceptionjava.lang.NoSuchFieldException
- the no such field exceptionjava.lang.IllegalArgumentException
- the illegal argument exceptionjava.lang.IllegalAccessException
- the illegal access exception