All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.eNetwork.beans.HOD.event.ScreenMouseEvent
java.lang.Object
|
+----java.util.EventObject
|
+----com.ibm.eNetwork.beans.HOD.event.ScreenMouseEvent
- public class ScreenMouseEvent
- extends EventObject
Mouse events are generated from 3 distinct components of Screen: The
screen text area, the screen OIA, and the border surrounding screen. All
pixel coordinates are relative to the component that generated the mouse
event. The translatePoint() method allows you to get the pixel coordinates
of the screen mouse event as if Screen was one component.
- See Also:
- ScreenMouseListener, Screen, Terminal
-
BORDER
- The ScreenMouseEvent occurred on the screen border
-
MOTION_EVENT
- The ScreenMouseEvent was a mouse motion event
-
MOUSE_EVENT
- The ScreenMouseEvent was a mouse event
-
OIA
- The ScreenMouseEvent occurred on the screen OIA
-
TEXT
- The ScreenMouseEvent occurred on the screen text
-
ScreenMouseEvent(Object, ECLPS, int, int, MouseEvent)
- A ScreenMouse Event.
-
getClickCount()
- Returns the number of mouse clicks associated with this event.
-
getCol()
- Returns the column of the mouse click if the mouse type is
TEXT or OIA.
-
getComponent()
- Returns the component that this event came from.
-
getMouseEvent()
- Returns the original mouse event from Screen.
-
getRow()
- Returns the row of the mouse click if the mouse type is
TEXT or OIA.
-
getRowCol()
- Returns the row and column of the mouse click if the mouse type
is TEXT or OIA.
-
getType()
- Returns the event type.
-
getX()
- Returns the x pixel coordinate relative to coordinate (0,0) of the
component that generated the mouse event.
-
getY()
- Returns the y pixel coordinate relative to coordinate (0,0) of the
component that generated the mouse event.
-
translatePoint()
- Returns the x,y pixel coordinate relative to coordinate (0,0) of Screen.
MOUSE_EVENT
public static final short MOUSE_EVENT
- The ScreenMouseEvent was a mouse event
MOTION_EVENT
public static final short MOTION_EVENT
- The ScreenMouseEvent was a mouse motion event
TEXT
public static final short TEXT
- The ScreenMouseEvent occurred on the screen text
OIA
public static final short OIA
- The ScreenMouseEvent occurred on the screen OIA
BORDER
public static final short BORDER
- The ScreenMouseEvent occurred on the screen border
ScreenMouseEvent
public ScreenMouseEvent(Object source,
ECLPS ps,
int type,
int comp,
MouseEvent mouseEvt)
- A ScreenMouse Event. This is fired from the screen to registered
ScreenMouse listeners.
- Parameters:
- source - The source of the event.
- type - The Type of the event.
- comp - The component that generated the mouse event.
- mouseEvt - The original java mouse event from the component.
getType
public int getType()
- Returns the event type.
Return values:
getComponent
public int getComponent()
- Returns the component that this event came from. Mouse clicks are generated
from 3 distinct components of Screen: The screen text area, the screen OIA, and
the border surrounding screen.
Return values:
- TEXT - The ScreenMouseEvent occurred on the screen text.
- OIA - The ScreenMouseEvent occurred on the OIA.
- BORDER - The mouse was clicked on the border
surrounding the screen text and screen OIA.
translatePoint
public Point translatePoint()
- Returns the x,y pixel coordinate relative to coordinate (0,0) of Screen.
getX
public int getX()
- Returns the x pixel coordinate relative to coordinate (0,0) of the
component that generated the mouse event.
- See Also:
- getComponent, translatePoint
getY
public int getY()
- Returns the y pixel coordinate relative to coordinate (0,0) of the
component that generated the mouse event.
- See Also:
- getComponent, translatePoint
getRowCol
public Point getRowCol()
- Returns the row and column of the mouse click if the mouse type
is TEXT or OIA.
Returns the pixel coordinate if the mouse type is
BORDER.
getRow
public int getRow()
- Returns the row of the mouse click if the mouse type is
TEXT or OIA.
If the mouse type is BORDER, then the y pixel
coordinate is returned.
- See Also:
- getComponent, translatePoint
getCol
public int getCol()
- Returns the column of the mouse click if the mouse type is
TEXT or OIA.
If the mouse type is BORDER, then the x pixel
coordinate is returned.
- See Also:
- getComponent, translatePoint
getMouseEvent
public MouseEvent getMouseEvent()
- Returns the original mouse event from Screen.
getClickCount
public int getClickCount()
- Returns the number of mouse clicks associated with this event.
All Packages Class Hierarchy This Package Previous Next Index