Last change
on this file since 942 was 942, checked in by bln4, 9 years ago |
The beginnings of indirect controls.
|
-
Property svn:mime-type
set to
text/plain
|
File size:
628 bytes
|
Line | |
---|
1 | package org.expeditee.gui.indirect.mouse;
|
---|
2 |
|
---|
3 | import java.util.Collection;
|
---|
4 |
|
---|
5 | import org.expeditee.items.Item;
|
---|
6 |
|
---|
7 | public interface MouseAction {
|
---|
8 |
|
---|
9 | public void exec(MouseInfo info);
|
---|
10 |
|
---|
11 |
|
---|
12 | public class MouseInfo {
|
---|
13 | public Item clicked;
|
---|
14 | public Collection<Item> clickedIn;
|
---|
15 | public boolean isShiftDown;
|
---|
16 | public boolean isControlDown;
|
---|
17 |
|
---|
18 | public MouseInfo(final Item clicked, final Collection<Item> clickedIn, final boolean isShiftDown, final boolean isControldown) {
|
---|
19 | this.clicked = clicked;
|
---|
20 | this.clickedIn = clickedIn;
|
---|
21 | this.isShiftDown = isShiftDown;
|
---|
22 | this.isControlDown = isControldown;
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.