1 | package org.expeditee.gui.indirect.keyboard;
|
---|
2 |
|
---|
3 | import java.util.Collection;
|
---|
4 |
|
---|
5 | import org.expeditee.gui.FunctionKey;
|
---|
6 | import org.expeditee.items.Item;
|
---|
7 |
|
---|
8 | public 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 | }
|
---|