JIDLMouseListener
Declaration
public interface JIDLMouseListener
All Known Implementing Classes:
JIDLCanvas
Description
The listener interface for receiving mouse events from IDL (press, release, enter, and exit) on a JIDLCanvas. A mouse event is generated when the mouse is pressed, released, the mouse cursor enters or leaves the JIDLCanvas component.
Note: Mouse moves and drags are tracked using JIDLMouseMotionListener. The class that is interested in processing an IDL mouse event implements this interface (and all the methods it contains). The listener object created from that class is then registered with the JIDLCanvas using the addIDLMouseListener method. The listener is unregistered with the removeIDLMouseListener.
The JIDLCanvas automatically handles mouse events whether a program registers an additional JIDLMouseListener or not. The JIDLCanvas is itself a JIDLMouseListener and provides default behavior for the 4 events, as denoted in the specific methods below.
Note: Clients should not register to listen to JIDLCanvas MouseEvents using a MouseListener, preferring the JIDLMouseListener instead.
See Also:
JIDLCanvas, JIDLMouseMotionListener, java.awt.event.MouseEvent,java.awt.event.MouseListener
Member Summary
Methods
void
IDLmouseEntered(JIDLObjectI obj, java.awt.event.MouseEvent event)
The mouse has entered the JIDLCanvas.
void
IDLmouseExited(JIDLObjectI obj, java.awt.event.MouseEvent event)
The mouse has exiting the JIDLCanvas.
void
IDLmousePressed(JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse button was pressed inside the JIDLCanvas.
void
IDLmouseReleased(JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse button was released inside the JIDLCanvas.
Methods
IDLmouseEntered(JIDLObjectI, MouseEvent)
public void IDLmouseEntered(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseEvent event)
The mouse has entered the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnEnter method.
Parameters:
obj - The JIDLCanvas in which the event occurred.
event - The mouse event
IDLmouseExited(JIDLObjectI, MouseEvent)
public void IDLmouseExited(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseEvent event)
The mouse has exiting the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnExit method.
Parameters:
obj - The JIDLCanvas in which the event occurred.
event - The mouse event
IDLmousePressed(JIDLObjectI, MouseEvent)
public void IDLmousePressed(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse button was pressed inside the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnMouseDown method.
Parameters:
obj - The JIDLCanvas in which the event occurred.
event - The mouse event
IDLmouseReleased(JIDLObjectI, MouseEvent)
public void IDLmouseReleased(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse button was released inside the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnMouseUp method.
Parameters:
obj - The JIDLCanvas in which the event occurred.
event - The mouse event