public class CalculatorKeyboardRenderer extends java.lang.Object implements IKeyboardGraphicsRenderer
Constructor and Description |
---|
CalculatorKeyboardRenderer(KeyboardDefinition kbd)
Instantiates a new calculator keyboard renderer.
|
Modifier and Type | Method and Description |
---|---|
void |
drawKeyboard(java.awt.Graphics2D g2d,
boolean shiftDown,
boolean altDown,
boolean ctlDown)
Draw keyboard.
|
void |
keyPressed(KeyboardKey k,
boolean shiftDown,
boolean altDown,
boolean ctlDown)
Key pressed.
|
void |
keyReleased(KeyboardKey k,
boolean shiftDown,
boolean altDown,
boolean ctlDown)
Key released.
|
public CalculatorKeyboardRenderer(KeyboardDefinition kbd)
kbd
- the kbdpublic void drawKeyboard(java.awt.Graphics2D g2d, boolean shiftDown, boolean altDown, boolean ctlDown)
IKeyboardGraphicsRenderer
drawKeyboard
in interface IKeyboardGraphicsRenderer
g2d
- the g2dshiftDown
- the shift downaltDown
- the alt downctlDown
- the ctl downpublic void keyPressed(KeyboardKey k, boolean shiftDown, boolean altDown, boolean ctlDown)
IMultiTouchKeyboardListener
keyPressed
in interface IMultiTouchKeyboardListener
k
- the kshiftDown
- the shift downaltDown
- the alt downctlDown
- the ctl downpublic void keyReleased(KeyboardKey k, boolean shiftDown, boolean altDown, boolean ctlDown)
IMultiTouchKeyboardListener
keyReleased
in interface IMultiTouchKeyboardListener
k
- the kshiftDown
- the shift downaltDown
- the alt downctlDown
- the ctl down