org.gnu.gtk.event
Class MouseEvent

java.lang.Object
  extended by org.gnu.gtk.event.GtkEvent
      extended by org.gnu.gtk.event.MouseEvent
All Implemented Interfaces:
java.io.Serializable

Deprecated. This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. Signal handling an connection has been completely re-implemented in java-gnome 4.0, so you will need to refactor any code attempting to use this class.

public class MouseEvent
extends GtkEvent

This event represents mouse events.

See Also:
MouseListener, Serialized Form

Nested Class Summary
static class MouseEvent.Type
          Deprecated.  
 
Field Summary
static int BUTTON1
          Deprecated.  
static int BUTTON2
          Deprecated.  
static int BUTTON3
          Deprecated.  
static int DOUBLE_CLICK
          Deprecated.  
static int SINGLE_CLICK
          Deprecated.  
static int TRIPLE_CLICK
          Deprecated.  
static int TRIPPLE_CLICK
          Deprecated.  
 
Constructor Summary
MouseEvent(java.lang.Object source, MouseEvent.Type type, EventButton gdkEvent)
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
MouseEvent(java.lang.Object source, MouseEvent.Type type, EventCrossing gdkEvent)
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
MouseEvent(java.lang.Object source, MouseEvent.Type type, EventScroll gdkEvent)
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
 
Method Summary
 int getButtonPressed()
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
 int getClickType()
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
 ScrollDirection getDirection()
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
 ModifierType getModifierKey()
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
 Window getWindow()
          Deprecated.  
 double getX()
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
 double getY()
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
 boolean isOfType(MouseEvent.Type test)
          Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
 
Methods inherited from class org.gnu.gtk.event.GtkEvent
getSource, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUTTON1

public static final int BUTTON1
Deprecated. 
See Also:
Constant Field Values

BUTTON2

public static final int BUTTON2
Deprecated. 
See Also:
Constant Field Values

BUTTON3

public static final int BUTTON3
Deprecated. 
See Also:
Constant Field Values

SINGLE_CLICK

public static final int SINGLE_CLICK
Deprecated. 
See Also:
Constant Field Values

DOUBLE_CLICK

public static final int DOUBLE_CLICK
Deprecated. 
See Also:
Constant Field Values

TRIPLE_CLICK

public static final int TRIPLE_CLICK
Deprecated. 
See Also:
Constant Field Values

TRIPPLE_CLICK

public static final int TRIPPLE_CLICK
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

MouseEvent

public MouseEvent(java.lang.Object source,
                  MouseEvent.Type type,
                  EventButton gdkEvent)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Construct a LifeCycleEvent object for the BUTTON event.


MouseEvent

public MouseEvent(java.lang.Object source,
                  MouseEvent.Type type,
                  EventScroll gdkEvent)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Construct a LifeCycleEvent object for the WHEEL_SCROLL event.


MouseEvent

public MouseEvent(java.lang.Object source,
                  MouseEvent.Type type,
                  EventCrossing gdkEvent)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Construct a LifeCycleEvent object for the ENTER and LEAVE event.

Method Detail

isOfType

public boolean isOfType(MouseEvent.Type test)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Test to compare events.


getButtonPressed

public int getButtonPressed()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns the buttonPressed.

Returns:
int

getDirection

public ScrollDirection getDirection()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns the direction.

Returns:
ScrollDirection

getX

public double getX()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns the x.

Returns:
double

getY

public double getY()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns the y.

Returns:
double

getClickType

public int getClickType()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns the click type (single, double, triple). The return value should be compared against one of the constants included in this class (SINGLE_CLICK, DOUBLE_CLICK, or TRIPLE_CLICK).


getModifierKey

public ModifierType getModifierKey()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns the modifier key used.

Returns:
(see ModifierType)

getWindow

public Window getWindow()
Deprecated.