Package 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 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 TypeMethodDescriptionReturns which of the mouse buttons changed.intReturns the number of mouse clicks associated with event.Object[]Returns an array of the event arguments.intReturns the Lean FT event id.intReturns the mask of modifier keys down during event.Returns the mouse action of this event.longgetWhen()Returns the time the event occurred.intgetX()Returns the horizontal mouse coordinate.getxAbs()Returns the horizontal mouse location in pixels relative to screen.intgetY()Returns the vertical mouse coordinate.getyAbs()Returns the vertical mouse location in pixels relative to screen.booleanReturns true if this event is a trigger for a popup menu.
-
Method Details
-
getLeanFtEventID
public int getLeanFtEventID()Description copied from interface:com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfoReturns the Lean FT event id.- Specified by:
getLeanFtEventIDin interfacecom.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo- Returns:
- the Lean FT event id.
-
getEventArgs
Description copied from interface:com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfoReturns an array of the event arguments.- Specified by:
getEventArgsin interfacecom.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo- Returns:
- an array of the event arguments.
-
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
Returns the horizontal mouse location in pixels relative to screen.- Returns:
- the horizontal mouse location in pixels relative to screen.
-
getyAbs
Returns the vertical mouse location in pixels relative to screen.- Returns:
- the vertical mouse location in pixels relative to screen.
-
getButton
Returns which of the mouse buttons changed.- Returns:
- a button constant. See documentation for java.awt.event.MouseEvent.
-