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

Variable Index

 o BORDER
The ScreenMouseEvent occurred on the screen border
 o MOTION_EVENT
The ScreenMouseEvent was a mouse motion event
 o MOUSE_EVENT
The ScreenMouseEvent was a mouse event
 o OIA
The ScreenMouseEvent occurred on the screen OIA
 o TEXT
The ScreenMouseEvent occurred on the screen text

Constructor Index

 o ScreenMouseEvent(Object, ECLPS, int, int, MouseEvent)
A ScreenMouse Event.

Method Index

 o getClickCount()
Returns the number of mouse clicks associated with this event.
 o getCol()
Returns the column of the mouse click if the mouse type is TEXT or OIA.
 o getComponent()
Returns the component that this event came from.
 o getMouseEvent()
Returns the original mouse event from Screen.
 o getRow()
Returns the row of the mouse click if the mouse type is TEXT or OIA.
 o getRowCol()
Returns the row and column of the mouse click if the mouse type is TEXT or OIA.
 o getType()
Returns the event type.
 o getX()
Returns the x pixel coordinate relative to coordinate (0,0) of the component that generated the mouse event.
 o getY()
Returns the y pixel coordinate relative to coordinate (0,0) of the component that generated the mouse event.
 o translatePoint()
Returns the x,y pixel coordinate relative to coordinate (0,0) of Screen.

Variables

 o MOUSE_EVENT
 public static final short MOUSE_EVENT
The ScreenMouseEvent was a mouse event

 o MOTION_EVENT
 public static final short MOTION_EVENT
The ScreenMouseEvent was a mouse motion event

 o TEXT
 public static final short TEXT
The ScreenMouseEvent occurred on the screen text

 o OIA
 public static final short OIA
The ScreenMouseEvent occurred on the screen OIA

 o BORDER
 public static final short BORDER
The ScreenMouseEvent occurred on the screen border

Constructors

 o 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.

Methods

 o getType
 public int getType()
Returns the event type.

Return values:

 o 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:

 o translatePoint
 public Point translatePoint()
Returns the x,y pixel coordinate relative to coordinate (0,0) of Screen.

 o 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
 o 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
 o 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.

 o 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
 o 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
 o getMouseEvent
 public MouseEvent getMouseEvent()
Returns the original mouse event from Screen.

 o getClickCount
 public int getClickCount()
Returns the number of mouse clicks associated with this event.


All Packages  Class Hierarchy  This Package  Previous  Next  Index