/[libvob]/libvob/org/nongnu/libvob/VobMouseEvent.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/VobMouseEvent.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by tjl, Sat Aug 9 14:39:43 2003 UTC revision 1.4 by mudyc, Mon Aug 18 15:21:15 2003 UTC
# Line 82  public class VobMouseEvent { Line 82  public class VobMouseEvent {
82          this.button = button;          this.button = button;
83      }      }
84    
85        private String type2str(int type) {
86            switch(type) {
87            case MOUSE_PRESSED: return "pressed";
88            case MOUSE_RELEASED: return "released";
89            case MOUSE_CLICKED: return "clicked";
90            case MOUSE_DRAGGED: return "dragged";
91            case MOUSE_WHEEL: return "wheel";
92            default:
93                return "unknown type";
94            }
95        }
96    
97      public String toString() {      public String toString() {
98          return "[VobMouseEvent: "+type+" "+x+" "+y+" "          return "[VobMouseEvent: ["+type2str(type)+"] "+x+" "+y+" "
99                  +wheelDelta+" "+modifiers+" "+button+"]";                  +wheelDelta+" "+modifiers+" "+button+"]";
100      }      }
101    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26