source: trunk/src/org/expeditee/gui/indirect/keyboard/KeyboardAction.java@ 943

Last change on this file since 943 was 943, checked in by bln4, 9 years ago

Implementation of IndirectMouseActions. Programmers are now able to intercept actions relating to mouse input events and make them act as they please.

Beginnings of IndirectKeyboardActions...

  • Property svn:mime-type set to text/plain
File size: 1.0 KB
Line 
1package org.expeditee.gui.indirect.keyboard;
2
3import java.util.Collection;
4
5import org.expeditee.gui.FunctionKey;
6import org.expeditee.items.Item;
7
8public interface KeyboardAction {
9 public void exec(final KeyboardInfo info);
10
11 public class KeyboardInfo {
12 public FunctionKey key;
13 public int repeat;
14 public boolean isShiftDown;
15 public boolean isControlDown;
16 public Collection<Item> enclosed;
17 public Item firstConnected;
18 public Collection<Item> connected;
19 public Collection<Item> lineEnds;
20
21 public KeyboardInfo(final FunctionKey key, final int repeat,
22 final boolean isShiftDown, final boolean isControlDown, final Collection<Item> enclosed,
23 final Item firstConnected, Collection<Item> connected, Collection<Item> lineEnds) {
24 this.key = key;
25 this.repeat = repeat;
26 this.isShiftDown = isShiftDown;
27 this.isControlDown = isControlDown;
28 this.enclosed = enclosed;
29 this.firstConnected = firstConnected;
30 this.connected = connected;
31 this.lineEnds = lineEnds;
32 }
33
34 }
35}
Note: See TracBrowser for help on using the repository browser.