Changeset 1359 for trunk


Ignore:
Timestamp:
02/07/14 18:12:05 (11 years ago)
Author:
pharms
Message:
  • shortened result of toString calls to events
Location:
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/KeyPressed.java

    r927 r1359  
    6161    @Override 
    6262    public String toString() { 
    63         return "pressing key " + super.getKey(); 
     63        return "key \u21D3 " + super.getKey(); 
    6464    } 
    6565 
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/KeyReleased.java

    r927 r1359  
    6161    @Override 
    6262    public String toString() { 
    63         return "releasing key " + super.getKey(); 
     63        return "key \u21D1 " + super.getKey(); 
    6464    } 
    6565 
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/KeyTyped.java

    r927 r1359  
    6161    @Override 
    6262    public String toString() { 
    63         return "typed key " + super.getKey(); 
     63        return "key \u21D5 " + super.getKey(); 
    6464    } 
    6565 
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/KeyboardFocusChange.java

    r927 r1359  
    6969    @Override 
    7070    public String toString() { 
    71         return "keyboard focus changed"; 
     71        return "KB focus changed"; 
    7272    } 
    7373 
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/MouseButtonDown.java

    r945 r1359  
    7171    public String toString() { 
    7272        if (super.getButton() == Button.LEFT) { 
    73             return "left mouse button down (" + getX() + "," + getY() + ")"; 
     73            return "left mouse btn \u21D3 (" + getX() + "," + getY() + ")"; 
    7474        } 
    7575        else if (super.getButton() == Button.MIDDLE) { 
    76             return "middle mouse button down (" + getX() + "," + getY() + ")"; 
     76            return "middle mouse btn \u21D3 (" + getX() + "," + getY() + ")"; 
    7777        } 
    7878        else if (super.getButton() == Button.RIGHT) { 
    79             return "right mouse button down (" + getX() + "," + getY() + ")"; 
     79            return "right mouse btn \u21D3 (" + getX() + "," + getY() + ")"; 
    8080        } 
    8181        else { 
    82             return "unknown mouse button down (" + getX() + "," + getY() + ")"; 
     82            return "unknown mouse btn \u21D3 (" + getX() + "," + getY() + ")"; 
    8383        } 
    8484    } 
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/MouseButtonUp.java

    r945 r1359  
    7171    public String toString() { 
    7272        if (super.getButton() == Button.LEFT) { 
    73             return "left mouse button up (" + getX() + "," + getY() + ")"; 
     73            return "left mouse btn \u21D1 (" + getX() + "," + getY() + ")"; 
    7474        } 
    7575        else if (super.getButton() == Button.MIDDLE) { 
    76             return "middle mouse button up (" + getX() + "," + getY() + ")"; 
     76            return "middle mouse btn \u21D1 (" + getX() + "," + getY() + ")"; 
    7777        } 
    7878        else if (super.getButton() == Button.RIGHT) { 
    79             return "right mouse button up (" + getX() + "," + getY() + ")"; 
     79            return "right mouse btn \u21D1 (" + getX() + "," + getY() + ")"; 
    8080        } 
    8181        else { 
    82             return "unknown mouse button up (" + getX() + "," + getY() + ")"; 
     82            return "unknown mouse btn \u21D1 (" + getX() + "," + getY() + ")"; 
    8383        } 
    8484    } 
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/MouseClick.java

    r945 r1359  
    7171    public String toString() { 
    7272        if (super.getButton() == Button.LEFT) { 
    73             return "left mouse click (" + getX() + "," + getY() + ")"; 
     73            return "left mouse btn \u21D5 (" + getX() + "," + getY() + ")"; 
    7474        } 
    7575        else if (super.getButton() == Button.MIDDLE) { 
    76             return "middle mouse click (" + getX() + "," + getY() + ")"; 
     76            return "middle mouse btn \u21D5 (" + getX() + "," + getY() + ")"; 
    7777        } 
    7878        else if (super.getButton() == Button.RIGHT) { 
    79             return "right mouse click (" + getX() + "," + getY() + ")"; 
     79            return "right mouse btn \u21D5 (" + getX() + "," + getY() + ")"; 
    8080        } 
    8181        else { 
    82             return "unknown mouse button click (" + getX() + "," + getY() + ")"; 
     82            return "unknown mouse btn \u21D5 (" + getX() + "," + getY() + ")"; 
    8383        } 
    8484    } 
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/MouseDoubleClick.java

    r945 r1359  
    7272    public String toString() { 
    7373        if (super.getButton() == Button.LEFT) { 
    74             return "left mouse double click (" + getX() + "," + getY() + ")"; 
     74            return "left mouse btn \u21D5\u21D5 (" + getX() + "," + getY() + ")"; 
    7575        } 
    7676        else if (super.getButton() == Button.MIDDLE) { 
    77             return "middle mouse double click (" + getX() + "," + getY() + ")"; 
     77            return "middle mouse btn \u21D5\u21D5 (" + getX() + "," + getY() + ")"; 
    7878        } 
    7979        else if (super.getButton() == Button.RIGHT) { 
    80             return "right mouse double click (" + getX() + "," + getY() + ")"; 
     80            return "right mouse btn \u21D5\u21D5 (" + getX() + "," + getY() + ")"; 
    8181        } 
    8282        else { 
    83             return "unknown mouse button double click (" + getX() + "," + getY() + ")"; 
     83            return "unknown mouse button btn \u21D5\u21D5 (" + getX() + "," + getY() + ")"; 
    8484        } 
    8585    } 
Note: See TracChangeset for help on using the changeset viewer.