|
ION Java User's Guide: ION Java Class and Method Reference |
|
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().
public abstract void mouseReleased(IONDrawable drawable, int X, int Y, long when, int mask)
The IONDrawable object in which the event occurred.
The X location of the mouse.
The Y location of the mouse.
The time when the event happened.
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:
|
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.
None.
IDL Online Help (March 06, 2007)