Open topic with navigation

com.hp.lft.sdk.java

# 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 java.lang.Object
      implements com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo

  A Java technology Mouse event info to be used by fireEvent methods.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Integer` | `getButton()` Returns which of the mouse buttons changed.
    `int` | `getClickCount()` Returns the number of mouse clicks associated with event.
    `java.lang.Object[]` | `getEventArgs()` Returns an array of the event arguments.
    `int` | `getLeanFtEventID()` Returns the Lean FT event id.
    `int` | `getModifiers()` Returns the mask of modifier keys down during event.
    `MouseEvent` | `getMouseEvent()` Returns the mouse action of this event.
    `long` | `getWhen()` Returns the time the event occurred.
    `int` | `getX()` Returns the horizontal mouse coordinate.
    `java.lang.Integer` | `getxAbs()` Returns the horizontal mouse location in pixels relative to screen.
    `int` | `getY()` Returns the vertical mouse coordinate.
    `java.lang.Integer` | `getyAbs()` Returns the vertical mouse location in pixels relative to screen.
    `boolean` | `isPopupTrigger()` Returns true if this event is a trigger for a popup menu.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### 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 java.lang.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 java.lang.Integer getxAbs()

      Returns the horizontal mouse location in pixels relative to screen.
      Returns:
        the horizontal mouse location in pixels relative to screen.

    - #### getyAbs

          public java.lang.Integer getyAbs()

      Returns the vertical mouse location in pixels relative to screen.
      Returns:
        the vertical mouse location in pixels relative to screen.

    - #### getButton

          public java.lang.Integer getButton()

      Returns which of the mouse buttons changed.
      Returns:
        a button constant. See documentation for java.awt.event.MouseEvent.