com.steema.teechart.events
Class FrameworkMouseEvent

java.lang.Object
  extended by com.steema.teechart.events.Event
      extended by com.steema.teechart.events.FrameworkMouseEvent

public class FrameworkMouseEvent
extends Event


Field Summary
static int BUTTON1
          Indicates mouse button #1; used by getButton().
static int BUTTON2
          Indicates mouse button #2; used by getButton().
static int BUTTON3
          Indicates mouse button #3; used by getButton().
static int MOUSE_CLICKED
          The "mouse clicked" event.
static int MOUSE_DRAGGED
          The "mouse dragged" event.
static int MOUSE_ENTERED
          The "mouse entered" event.
static int MOUSE_EXITED
          The "mouse exited" event.
static int MOUSE_FIRST
           
static int MOUSE_LAST
          The last number in the range of ids used for mouse events.
static int MOUSE_MOVED
          The "mouse moved" event.
static int MOUSE_PRESSED
          The "mouse pressed" event.
static int MOUSE_RELEASED
          The "mouse released" event.
static int MOUSE_WHEEL
          The "mouse wheel" event.
static int NOBUTTON
          Indicates no mouse buttons; used by getButton().
 java.lang.Object widget
           
 
Fields inherited from class com.steema.teechart.events.Event
button, index, type, x, y
 
Constructor Summary
FrameworkMouseEvent(int button, int index, int type, int x, int y)
           
 
Method Summary
 int getButton()
           
 int getClickCount()
           
static java.lang.String getEventName(int eventType)
           
 int getID()
           
 Point getPoint()
          Constructs and initializes a point at the specified (x,y) location in the coordinate space.
 int getX()
           
 int getY()
           
 void setSource(java.lang.Object source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOUSE_FIRST

public static final int MOUSE_FIRST
See Also:
Constant Field Values

MOUSE_LAST

public static final int MOUSE_LAST
The last number in the range of ids used for mouse events.

See Also:
Constant Field Values

MOUSE_CLICKED

public static final int MOUSE_CLICKED
The "mouse clicked" event. This MouseEvent occurs when a mouse button is pressed and released.

See Also:
Constant Field Values

MOUSE_PRESSED

public static final int MOUSE_PRESSED
The "mouse pressed" event. This MouseEvent occurs when a mouse button is pushed down.

See Also:
Constant Field Values

MOUSE_RELEASED

public static final int MOUSE_RELEASED
The "mouse released" event. This MouseEvent occurs when a mouse button is let up.

See Also:
Constant Field Values

MOUSE_MOVED

public static final int MOUSE_MOVED
The "mouse moved" event. This MouseEvent occurs when the mouse position changes.

See Also:
Constant Field Values

MOUSE_ENTERED

public static final int MOUSE_ENTERED
The "mouse entered" event. This MouseEvent occurs when the mouse cursor enters the unobscured part of component's geometry.

See Also:
Constant Field Values

MOUSE_EXITED

public static final int MOUSE_EXITED
The "mouse exited" event. This MouseEvent occurs when the mouse cursor exits the unobscured part of component's geometry.

See Also:
Constant Field Values

MOUSE_DRAGGED

public static final int MOUSE_DRAGGED
The "mouse dragged" event. This MouseEvent occurs when the mouse position changes while a mouse button is pressed.

See Also:
Constant Field Values

MOUSE_WHEEL

public static final int MOUSE_WHEEL
The "mouse wheel" event. This is the only MouseWheelEvent. It occurs when a mouse equipped with a wheel has its wheel rotated.

Since:
1.4
See Also:
Constant Field Values

NOBUTTON

public static final int NOBUTTON
Indicates no mouse buttons; used by getButton().

Since:
1.4
See Also:
Constant Field Values

BUTTON1

public static final int BUTTON1
Indicates mouse button #1; used by getButton().

Since:
1.4
See Also:
Constant Field Values

BUTTON2

public static final int BUTTON2
Indicates mouse button #2; used by getButton().

Since:
1.4
See Also:
Constant Field Values

BUTTON3

public static final int BUTTON3
Indicates mouse button #3; used by getButton().

Since:
1.4
See Also:
Constant Field Values

widget

public java.lang.Object widget
Constructor Detail

FrameworkMouseEvent

public FrameworkMouseEvent(int button,
                           int index,
                           int type,
                           int x,
                           int y)
Method Detail

getButton

public int getButton()

getID

public int getID()

getX

public int getX()

getY

public int getY()

getPoint

public Point getPoint()
Constructs and initializes a point at the specified (x,y) location in the coordinate space.

Parameters:
x - the X coordinate of the newly constructed Point
y - the Y coordinate of the newly constructed Point
Since:
1.0

getClickCount

public int getClickCount()

getEventName

public static java.lang.String getEventName(int eventType)

setSource

public void setSource(java.lang.Object source)