Ignore:
Timestamp:
09/20/12 14:13:07 (12 years ago)
Author:
sherbold
Message:
  • code documentation and clean-up
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-misc/src/main/java/de/ugoe/cs/tasktree/keyboardmaps/KeyStroke.java

    r655 r838  
     1 
    12package de.ugoe.cs.tasktree.keyboardmaps; 
    23 
    34/** 
    4  * TODO comment 
     5 * <p> 
     6 * This class is used to define key strokes. 
     7 * </p> 
    58 *  
    6  * @version $Revision: $ $Date: 11.07.2012$ 
    7  * @author 2012, last modified by $Author: patrick$ 
     9 * @version 1.0 
     10 * @author Patrick Harms 
    811 */ 
    912public class KeyStroke { 
    1013 
    11     /** */ 
     14    /** 
     15     * <p> 
     16     * Name of the key stroke. 
     17     * </p> 
     18     */ 
    1219    private String keyStrokeName; 
    1320 
    14     /** */ 
     21    /** 
     22     * <p> 
     23     * {@link VirtualKey} associated with the key stroke. 
     24     * </p> 
     25     */ 
    1526    private VirtualKey virtualKey; 
    1627 
    17     /** */ 
     28    /** 
     29     * <p> 
     30     * Defines whether numlock is pressed during the stroke. 
     31     * </p> 
     32     */ 
    1833    private boolean numlock; 
    1934 
    20     /** */ 
     35    /** 
     36     * <p> 
     37     * Defines whether localstate is pressed during the stroke. 
     38     * </p> 
     39     */ 
    2140    private boolean localstate; 
    2241 
    23     /** */ 
     42    /** 
     43     * <p> 
     44     * Defines whether shift is pressed during the stroke. 
     45     * </p> 
     46     */ 
    2447    private boolean shift; 
    2548 
    26     /** */ 
     49    /** 
     50     * <p> 
     51     * Defines whether altgr is pressed during the stroke. 
     52     * </p> 
     53     */ 
    2754    private boolean altgr; 
    2855 
    29     /** */ 
     56    /** 
     57     * <p> 
     58     * Defines whether inhibit is pressed during the stroke. 
     59     * </p> 
     60     */ 
    3061    private boolean inhibit; 
    3162 
    32     /** */ 
     63    /** 
     64     * <p> 
     65     * Defines the character in which the key stroke results. 
     66     * </p> 
     67     */ 
    3368    private char character; 
    3469 
    3570    /** 
    36      * TODO: comment 
     71     * <p> 
     72     * Constructor. Creates a new key stroke 
     73     * </p> 
    3774     *  
    3875     * @param keyStrokeName 
    39      * @param mapKeyIdToVirtualKey 
     76     *            name of the key stroke 
     77     * @param virtualKey 
     78     *            virtual key associated with the key stroke 
    4079     * @param numlock 
     80     *            defines whether numlock is pressed during the key stroke 
    4181     * @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 
    4385     * @param altgr 
     86     *            defines whether altgr is pressed during the key stroke 
    4487     * @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 
    4591     */ 
    4692    public KeyStroke(String keyStrokeName, 
     
    64110 
    65111    /** 
    66      * @return the keyStrokeName 
     112     * <p> 
     113     * Returns the name of the key stroke. 
     114     * </p> 
     115     *  
     116     * @return the name 
    67117     */ 
    68118    public String getKeyStrokeName() { 
     
    71121 
    72122    /** 
    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 
    76128     */ 
    77129    public VirtualKey getVirtualKey() { 
     
    80132 
    81133    /** 
    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 
    85139     */ 
    86140    public char getCharacter() { 
     
    89143 
    90144    /** 
    91      * TODO: comment 
    92      *  
    93      * @return 
     145     * <p> 
     146     * Returns whether inhibit is pressed. 
     147     * </p> 
     148     *  
     149     * @return true if pressed; false otherwise 
    94150     */ 
    95151    public boolean getInhibit() { 
     
    98154 
    99155    /** 
    100      * TODO: comment 
    101      *  
    102      * @return 
     156     * <p> 
     157     * Returns whether altgr is pressed. 
     158     * </p> 
     159     *  
     160     * @return true if pressed; false otherwise 
    103161     */ 
    104162    public boolean getAltgr() { 
     
    107165 
    108166    /** 
    109      * TODO: comment 
    110      *  
    111      * @return 
     167     * <p> 
     168     * Returns whether shift is pressed. 
     169     * </p> 
     170     *  
     171     * @return true if pressed; false otherwise 
    112172     */ 
    113173    public boolean getShift() { 
     
    116176 
    117177    /** 
    118      * TODO: comment 
    119      *  
    120      * @return 
     178     * <p> 
     179     * Returns whether localstate is pressed. 
     180     * </p> 
     181     *  
     182     * @return true if pressed; false otherwise 
    121183     */ 
    122184    public boolean getLocalstate() { 
     
    125187 
    126188    /** 
    127      * TODO: comment 
    128      *  
    129      * @return 
     189     * <p> 
     190     * Returns whether numlock is pressed. 
     191     * </p> 
     192     *  
     193     * @return true if pressed; false otherwise 
    130194     */ 
    131195    public boolean getNumlock() { 
Note: See TracChangeset for help on using the changeset viewer.