Previous ION Java User's Guide: ION Java Class and Method Reference Next

mouseReleased()

Call the mouseReleased() method when a mouse button is released in a drawable. Note that the Mouse Listener must have been registered in the drawable prior to calling mouseReleased().

Syntax

public abstract void mouseReleased(IONDrawable drawable, int X, int Y, long when,    int mask)

Arguments

drawable

The IONDrawable object in which the event occurred.

X

The X location of the mouse.

Y

The Y location of the mouse.

when

The time when the event happened.

mask

Current mouse button state. The left mouse button is represented by 1 (one), the middle mouse button by 2, and the right mouse button by 4.

In UNIX versions of Java, it is impossible to determine which mouse button was released if more than one button was pressed before the button release. As a result, on UNIX platforms, ION reports the following button release events:

Table 6-1: Button Release Events Reported on UNIX 

Table 6-1: Button Release Events Reported on UNIX 
Buttons Pressed
Button Release Reported by ION
left and middle
left
left and right
left
middle and right
right
left, middle, and right
left

Button release events are reported correctly in Windows versions of Java.

Exceptions

None.

  IDL Online Help (March 06, 2007)