Package adams.gui.event
Class ImagePanelLeftClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.ImagePanelLeftClickEvent
-
- All Implemented Interfaces:
Serializable
public class ImagePanelLeftClickEvent extends EventObject
Event that gets sent in case of a left-click event in theImagePanel.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_ModifiersExthe associated modifiers.protected Pointm_Positionthe position of the click.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ImagePanelLeftClickEvent(ImagePanel source, Point position, int modifiersEx)Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImagePanelgetImagePanel()Returns the image panel that triggered the event.intgetModifiersEx()Returns the associated modifiers.PointgetPosition()Returns the position.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_Position
protected Point m_Position
the position of the click.
-
m_ModifiersEx
protected int m_ModifiersEx
the associated modifiers.
-
-
Constructor Detail
-
ImagePanelLeftClickEvent
public ImagePanelLeftClickEvent(ImagePanel source, Point position, int modifiersEx)
Initializes the event.- Parameters:
source- the source of the eventposition- the position of the clickmodifiersEx- the extended modifiers associated with the event when releasing the mouse
-
-
Method Detail
-
getImagePanel
public ImagePanel getImagePanel()
Returns the image panel that triggered the event.- Returns:
- the image panel
-
getPosition
public Point getPosition()
Returns the position.- Returns:
- the position
-
getModifiersEx
public int getModifiersEx()
Returns the associated modifiers.- Returns:
- the modifiers
- See Also:
MouseEvent.getModifiersEx()
-
-