Changeset 786 for trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseButtonInteraction.java
- Timestamp:
- 09/06/12 16:47:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseButtonInteraction.java
r681 r786 1 1 2 package de.ugoe.cs.quest.eventcore.gui; 2 3 3 4 /** 4 * TODO comment 5 * <p> 6 * Base class for all mouse interaction event types. 7 * </p> 5 8 * 6 * @version $Revision: $ $Date: $7 * @author 2011, last modified by $Author: $9 * @version 1.0 10 * @author Patrick Harms 8 11 */ 9 12 public abstract class MouseButtonInteraction extends MouseInteraction { 10 13 11 /** */ 14 /** 15 * <p> 16 * Id for object serialization. 17 * </p> 18 */ 12 19 private static final long serialVersionUID = 1L; 13 20 14 /** */ 21 /** 22 * <p> 23 * Describes the pressed mouse button. 24 * </p> 25 * 26 * @version 1.0 27 * @author Patrick Harms 28 */ 15 29 public static enum Button { 16 30 LEFT, MIDDLE, RIGHT, X; 17 31 } 18 32 19 /** the button used for mouse interaction */ 33 /** 34 * <p> 35 * The button used for mouse interaction 36 * </p> 37 */ 20 38 private Button button; 21 39 22 40 /** 41 * <p> 42 * Constructor. Creates a new {@link MouseButtonInteraction} 43 * </p> 23 44 * 45 * @param button 46 * the button associated with the interaction 24 47 */ 25 48 public MouseButtonInteraction(Button button) { … … 28 51 29 52 /** 30 * @return Returns the button. 53 * <p> 54 * Returns the button associated with the interaction. 55 * </p> 56 * 57 * @return the button 31 58 */ 32 59 public Button getButton() { 33 60 return button; 34 61 } 35 62 36 63 /* 37 64 * (non-Javadoc)
Note: See TracChangeset
for help on using the changeset viewer.