Class ImagePanelLeftClickEvent

  • All Implemented Interfaces:
    Serializable

    public class ImagePanelLeftClickEvent
    extends EventObject
    Event that gets sent in case of a left-click event in the ImagePanel.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • 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 event
        position - the position of the click
        modifiersEx - 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()