org.diylc.common
Interface IKeyProcessor

All Known Subinterfaces:
IPlugInPort
All Known Implementing Classes:
Presenter

public interface IKeyProcessor


Field Summary
static int VK_DOWN
           
static int VK_LEFT
           
static int VK_RIGHT
           
static int VK_UP
           
 
Method Summary
 boolean keyPressed(int key, boolean ctrlDown, boolean shiftDown, boolean altDown)
          Notifies the presenter that a key hes been pressed on the canvas.
 

Field Detail

VK_LEFT

static final int VK_LEFT
See Also:
Constant Field Values

VK_UP

static final int VK_UP
See Also:
Constant Field Values

VK_RIGHT

static final int VK_RIGHT
See Also:
Constant Field Values

VK_DOWN

static final int VK_DOWN
See Also:
Constant Field Values
Method Detail

keyPressed

boolean keyPressed(int key,
                   boolean ctrlDown,
                   boolean shiftDown,
                   boolean altDown)
Notifies the presenter that a key hes been pressed on the canvas.

Parameters:
key -
ctrlDown -
shiftDown -
altDown -
Returns:
true if the event should be consumed