Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package hu.kazocsaba.imageviewer;
 
An event indicating that a mouse action occured over an image.

Author(s):
Kazó Csaba
public class ImageMouseEvent extends EventObject {
	private int x,y;
	private MouseEvent orig;
	public ImageMouseEvent(Object sourceBufferedImage imageint xint yMouseEvent orig) {
		super(source);
		this.=image;
		this.=x;
		this.=y;
		this.=orig;
	}
Returns the image on which the event occured.

Returns:
the image
	public BufferedImage getImage() {
		return ;
	}
Returns the x coordinate of the pixel related to the event.

Returns:
the x coordinate of the pixel related to the event
	public int getX() {
		return ;
	}
Returns the y coordinate of the pixel related to the event.

Returns:
the y coordinate of the pixel related to the event
	public int getY() {
		return ;
	}
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
		return ;
	}
New to GrepCode? Check out our FAQ X