Package org.loboevolution.img
Class ImageMouseEvent
java.lang.Object
java.util.EventObject
org.loboevolution.img.ImageMouseEvent
- All Implemented Interfaces:
Serializable
An event indicating that a mouse action occured over an image.
Author Kazo Csaba
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionImageMouseEvent
(Object source, BufferedImage image, int x, int y, MouseEvent orig) Constructor for ImageMouseEvent. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ImageMouseEvent
Constructor for ImageMouseEvent.
- Parameters:
source
- aObject
object.image
- aBufferedImage
object.x
- aInteger
object.y
- aInteger
object.orig
- aMouseEvent
object.
-
-
Method Details
-
getImage
Returns the image on which the event occured.- Returns:
- the image
-
getX
public int getX()Returns the x coordinate of the pixel related to the event.- Returns:
- the x coordinate of the pixel related to the event
-
getY
public int getY()Returns the y coordinate of the pixel related to the event.- Returns:
- the y coordinate of the pixel related to the event
-
getOriginalEvent
Returns the mouse event that caused this image mouse event. This can occasionally be null, for example for the exit event fired when the image is set to null.- Returns:
- the original event
-