Class ImageMouseEvent

java.lang.Object
java.util.EventObject
org.loboevolution.img.ImageMouseEvent
All Implemented Interfaces:
Serializable

public class ImageMouseEvent extends EventObject
An event indicating that a mouse action occured over an image. Author Kazo Csaba
See Also:
  • Constructor Details

  • Method Details

    • getImage

      public BufferedImage 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

      public MouseEvent 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