Class MouseEventInfo

java.lang.Object
com.hp.lft.sdk.java.MouseEventInfo
All Implemented Interfaces:
com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo, EventInfo

public class MouseEventInfo extends Object implements com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo
A Java technology Mouse event info to be used by fireEvent methods.
  • Method Details

    • getLeanFtEventID

      public int getLeanFtEventID()
      Description copied from interface: com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo
      Returns the Lean FT event id.
      Specified by:
      getLeanFtEventID in interface com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo
      Returns:
      the Lean FT event id.
    • getEventArgs

      public Object[] getEventArgs()
      Description copied from interface: com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo
      Returns an array of the event arguments.
      Specified by:
      getEventArgs in interface com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo
      Returns:
      an array of the event arguments.
    • getMouseEvent

      public MouseEvent getMouseEvent()
      Returns the mouse action of this event.
      Returns:
      the mouse action of this event.
    • getWhen

      public long getWhen()
      Returns the time the event occurred.
      Returns:
      the time the event occurred.
    • getModifiers

      public int getModifiers()
      Returns the mask of modifier keys down during event. See the documentation for java.awt.event.InputEvent.
      Returns:
      the modifier keys down during the event.
    • getX

      public int getX()
      Returns the horizontal mouse coordinate.
      Returns:
      the horizontal mouse coordinate.
    • getY

      public int getY()
      Returns the vertical mouse coordinate.
      Returns:
      the vertical mouse coordinate.
    • getClickCount

      public int getClickCount()
      Returns the number of mouse clicks associated with event.
      Returns:
      the number of mouse clicks associated with event.
    • isPopupTrigger

      public boolean isPopupTrigger()
      Returns true if this event is a trigger for a popup menu.
      Returns:
      true if this event is a trigger for a popup menu.
    • getxAbs

      public Integer getxAbs()
      Returns the horizontal mouse location in pixels relative to screen.
      Returns:
      the horizontal mouse location in pixels relative to screen.
    • getyAbs

      public Integer getyAbs()
      Returns the vertical mouse location in pixels relative to screen.
      Returns:
      the vertical mouse location in pixels relative to screen.
    • getButton

      public Integer getButton()
      Returns which of the mouse buttons changed.
      Returns:
      a button constant. See documentation for java.awt.event.MouseEvent.