1 | //-------------------------------------------------------------------------------------------------
|
---|
2 | // Module : $RCSfile: MouseButtonInteraction.java,v $
|
---|
3 | // Version : $Revision: 0.0 $ $Author: Patrick $ $Date: 18.12.2011 10:06:29 $
|
---|
4 | // Project : TaskTreePerformanceTest
|
---|
5 | // Creation : 2011 by Patrick
|
---|
6 | // Copyright : Patrick Harms, 2011
|
---|
7 | //-------------------------------------------------------------------------------------------------
|
---|
8 |
|
---|
9 | package de.ugoe.cs.quest.eventcore.userinteraction;
|
---|
10 |
|
---|
11 | //-------------------------------------------------------------------------------------------------
|
---|
12 | /**
|
---|
13 | * TODO comment
|
---|
14 | *
|
---|
15 | * @version $Revision: $ $Date: $
|
---|
16 | * @author 2011, last modified by $Author: $
|
---|
17 | */
|
---|
18 | //-------------------------------------------------------------------------------------------------
|
---|
19 |
|
---|
20 | public abstract class MouseButtonInteraction extends MouseInteraction
|
---|
21 | {
|
---|
22 |
|
---|
23 | /** */
|
---|
24 | public static enum Button
|
---|
25 | {
|
---|
26 | LEFT,
|
---|
27 | MIDDLE,
|
---|
28 | RIGHT;
|
---|
29 | }
|
---|
30 |
|
---|
31 | /** the button used for mouse interaction */
|
---|
32 | private Button mButton;
|
---|
33 |
|
---|
34 | //-----------------------------------------------------------------------------------------------
|
---|
35 | /**
|
---|
36 | *
|
---|
37 | */
|
---|
38 | //-----------------------------------------------------------------------------------------------
|
---|
39 | public MouseButtonInteraction(Button button)
|
---|
40 | {
|
---|
41 | mButton = button;
|
---|
42 | }
|
---|
43 |
|
---|
44 | //-----------------------------------------------------------------------------------------------
|
---|
45 | /**
|
---|
46 | * @return Returns the button.
|
---|
47 | */
|
---|
48 | //-----------------------------------------------------------------------------------------------
|
---|
49 | public Button getButton()
|
---|
50 | {
|
---|
51 | return mButton;
|
---|
52 | }
|
---|
53 |
|
---|
54 | }
|
---|