- Timestamp:
- 09/20/12 14:13:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-misc/src/main/java/de/ugoe/cs/tasktree/keyboardmaps/KeyStroke.java
r655 r838 1 1 2 package de.ugoe.cs.tasktree.keyboardmaps; 2 3 3 4 /** 4 * TODO comment 5 * <p> 6 * This class is used to define key strokes. 7 * </p> 5 8 * 6 * @version $Revision: $ $Date: 11.07.2012$7 * @author 2012, last modified by $Author: patrick$9 * @version 1.0 10 * @author Patrick Harms 8 11 */ 9 12 public class KeyStroke { 10 13 11 /** */ 14 /** 15 * <p> 16 * Name of the key stroke. 17 * </p> 18 */ 12 19 private String keyStrokeName; 13 20 14 /** */ 21 /** 22 * <p> 23 * {@link VirtualKey} associated with the key stroke. 24 * </p> 25 */ 15 26 private VirtualKey virtualKey; 16 27 17 /** */ 28 /** 29 * <p> 30 * Defines whether numlock is pressed during the stroke. 31 * </p> 32 */ 18 33 private boolean numlock; 19 34 20 /** */ 35 /** 36 * <p> 37 * Defines whether localstate is pressed during the stroke. 38 * </p> 39 */ 21 40 private boolean localstate; 22 41 23 /** */ 42 /** 43 * <p> 44 * Defines whether shift is pressed during the stroke. 45 * </p> 46 */ 24 47 private boolean shift; 25 48 26 /** */ 49 /** 50 * <p> 51 * Defines whether altgr is pressed during the stroke. 52 * </p> 53 */ 27 54 private boolean altgr; 28 55 29 /** */ 56 /** 57 * <p> 58 * Defines whether inhibit is pressed during the stroke. 59 * </p> 60 */ 30 61 private boolean inhibit; 31 62 32 /** */ 63 /** 64 * <p> 65 * Defines the character in which the key stroke results. 66 * </p> 67 */ 33 68 private char character; 34 69 35 70 /** 36 * TODO: comment 71 * <p> 72 * Constructor. Creates a new key stroke 73 * </p> 37 74 * 38 75 * @param keyStrokeName 39 * @param mapKeyIdToVirtualKey 76 * name of the key stroke 77 * @param virtualKey 78 * virtual key associated with the key stroke 40 79 * @param numlock 80 * defines whether numlock is pressed during the key stroke 41 81 * @param localstate 42 * @param b 82 * defines whether localstate is pressed during the key stroke 83 * @param shift 84 * defines whether shift is pressed during the key stroke 43 85 * @param altgr 86 * defines whether altgr is pressed during the key stroke 44 87 * @param inhibit 88 * defines whether inhibit is pressed during the key stroke 89 * @param character 90 * defines that character in which the key stroke results 45 91 */ 46 92 public KeyStroke(String keyStrokeName, … … 64 110 65 111 /** 66 * @return the keyStrokeName 112 * <p> 113 * Returns the name of the key stroke. 114 * </p> 115 * 116 * @return the name 67 117 */ 68 118 public String getKeyStrokeName() { … … 71 121 72 122 /** 73 * TODO: comment 74 * 75 * @return 123 * <p> 124 * Returns the virtual key associated with the key stroke. 125 * </p> 126 * 127 * @return the virtual key 76 128 */ 77 129 public VirtualKey getVirtualKey() { … … 80 132 81 133 /** 82 * TODO: comment 83 * 84 * @return 134 * <p> 135 * Returns the character in which the key stroke results. 136 * </p> 137 * 138 * @return the character 85 139 */ 86 140 public char getCharacter() { … … 89 143 90 144 /** 91 * TODO: comment 92 * 93 * @return 145 * <p> 146 * Returns whether inhibit is pressed. 147 * </p> 148 * 149 * @return true if pressed; false otherwise 94 150 */ 95 151 public boolean getInhibit() { … … 98 154 99 155 /** 100 * TODO: comment 101 * 102 * @return 156 * <p> 157 * Returns whether altgr is pressed. 158 * </p> 159 * 160 * @return true if pressed; false otherwise 103 161 */ 104 162 public boolean getAltgr() { … … 107 165 108 166 /** 109 * TODO: comment 110 * 111 * @return 167 * <p> 168 * Returns whether shift is pressed. 169 * </p> 170 * 171 * @return true if pressed; false otherwise 112 172 */ 113 173 public boolean getShift() { … … 116 176 117 177 /** 118 * TODO: comment 119 * 120 * @return 178 * <p> 179 * Returns whether localstate is pressed. 180 * </p> 181 * 182 * @return true if pressed; false otherwise 121 183 */ 122 184 public boolean getLocalstate() { … … 125 187 126 188 /** 127 * TODO: comment 128 * 129 * @return 189 * <p> 190 * Returns whether numlock is pressed. 191 * </p> 192 * 193 * @return true if pressed; false otherwise 130 194 */ 131 195 public boolean getNumlock() {
Note: See TracChangeset
for help on using the changeset viewer.