source: trunk/src/org/expeditee/gui/indirect/mouse/MouseAction.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: 658 bytes
Line 
1package org.expeditee.gui.indirect.mouse;
2
3import java.util.Collection;
4import java.util.List;
5
6import org.expeditee.items.Item;
7
8public interface MouseAction {
9
10 public List<Item> exec(MouseInfo info);
11
12
13 public class MouseInfo {
14 public Item clicked;
15 public Collection<Item> clickedIn;
16 public boolean isShiftDown;
17 public boolean isControlDown;
18
19 public MouseInfo(final Item clicked, final Collection<Item> clickedIn, final boolean isShiftDown, final boolean isControldown) {
20 this.clicked = clicked;
21 this.clickedIn = clickedIn;
22 this.isShiftDown = isShiftDown;
23 this.isControlDown = isControldown;
24 }
25 }
26}
Note: See TracBrowser for help on using the repository browser.