1 11 package org.eclipse.swt.events; 12 13 14 import org.eclipse.swt.widgets.Event; 15 16 31 32 public class MouseEvent extends TypedEvent { 33 34 39 public int button; 40 41 45 public int stateMask; 46 47 51 public int x; 52 53 57 public int y; 58 59 66 public int count; 67 68 static final long serialVersionUID = 3257288037011566898L; 69 70 76 public MouseEvent(Event e) { 77 super(e); 78 this.x = e.x; 79 this.y = e.y; 80 this.button = e.button; 81 this.stateMask = e.stateMask; 82 this.count = e.count; 83 } 84 85 91 public String toString() { 92 String string = super.toString (); 93 return string.substring (0, string.length() - 1) + " button=" + button 95 + " stateMask=" + stateMask 96 + " x=" + x 97 + " y=" + y 98 + " count=" + count 99 + "}"; 100 } 101 } 102 | Popular Tags |