1 11 package org.eclipse.swt.events; 12 13 14 import org.eclipse.swt.widgets.Event; 15 import org.eclipse.swt.graphics.GC; 16 17 23 24 public final class PaintEvent extends TypedEvent { 25 26 32 public GC gc; 33 34 38 public int x; 39 40 44 public int y; 45 46 50 public int width; 51 52 56 public int height; 57 58 63 public int count; 64 65 static final long serialVersionUID = 3256446919205992497L; 66 67 73 public PaintEvent(Event e) { 74 super(e); 75 this.gc = e.gc; 76 this.x = e.x; 77 this.y = e.y; 78 this.width = e.width; 79 this.height = e.height; 80 this.count = e.count; 81 } 82 83 89 public String toString() { 90 String string = super.toString (); 91 return string.substring (0, string.length() - 1) + " gc=" + gc 93 + " x=" + x 94 + " y=" + y 95 + " width=" + width 96 + " height=" + height 97 + " count=" + count 98 + "}"; 99 } 100 } 101 102 | Popular Tags |