1 26 27 package org.nightlabs.editor2d.viewer.event; 28 29 39 public class MouseEvent 40 { 41 public static final int BUTTON1 = java.awt.event.MouseEvent.BUTTON1; 46 public static final int BUTTON2 = java.awt.event.MouseEvent.BUTTON2; 47 public static final int BUTTON3 = java.awt.event.MouseEvent.BUTTON3; 48 public static final int NOBUTTON = java.awt.event.MouseEvent.NOBUTTON; 49 50 private int button = NOBUTTON; 51 public int getButton() { 52 return button; 53 } 54 public void setButton(int buttonMask) { 55 this.button = buttonMask; 56 } 57 58 private int x = 0; 59 public void setX(int x) { 60 this.x = x; 61 } 62 public int getX() { 63 return x; 64 } 65 66 private int y = 0; 67 public int getY() { 68 return y; 69 } 70 public void setY(int y) { 71 this.y = y; 72 } 73 } 74 | Popular Tags |