1 26 27 package net.sourceforge.groboutils.uicapture.v1.event; 28 29 import java.awt.Robot ; 30 import java.awt.event.InputEvent ; 31 import java.awt.event.MouseEvent ; 32 33 34 40 public abstract class MouseCaptureEvent extends CaptureEvent 41 { 42 protected static final int BUTTON_MASK = 43 InputEvent.BUTTON1_MASK | 44 InputEvent.BUTTON2_MASK | 45 InputEvent.BUTTON3_MASK; 46 47 48 public MouseCaptureEvent( int type, MouseEvent event ) 49 { 50 super( type, (InputEvent )event ); 51 } 52 53 54 public MouseCaptureEvent( int type ) 55 { 56 super( type ); 57 } 58 59 60 public MouseEvent getMouseEvent() 61 { 62 return (MouseEvent )getInputEvent(); 63 } 64 65 66 69 public void performEvent( Robot r ) 70 { 71 if (r == null) 72 { 73 throw new IllegalArgumentException ( "no null args" ); 74 } 75 } 76 } 77 78 | Popular Tags |