public class ImageMouseEvent extends EventObject
source| Constructor and Description |
|---|
ImageMouseEvent(Object source,
BufferedImage image,
int x,
int y,
MouseEvent orig) |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
getImage()
Returns the image on which the event occured.
|
MouseEvent |
getOriginalEvent()
Returns the mouse event that caused this image mouse event.
|
int |
getX()
Returns the x coordinate of the pixel related to the event.
|
int |
getY()
Returns the y coordinate of the pixel related to the event.
|
getSource, toStringpublic ImageMouseEvent(Object source, BufferedImage image, int x, int y, MouseEvent orig)
public BufferedImage getImage()
public int getX()
public int getY()
public MouseEvent getOriginalEvent()
null, for
example for the exit event fired when the image is set to null.Copyright © 2012. All Rights Reserved.