JIDLMouseWheelListener
Declaration
public interface JIDLMouseWheelListener
All Known Implementing Classes:
JIDLCanvas
Description
The listener interface for receiving mouse wheel events on a JIDLCanvas.
The class that is interested in processing an IDL mouse wheel event implements this interface. The listener object created from that class is then registered with the JIDLCanvas using the addIDLMouseWheelListener method. The listener is unregistered with the removeIDLMouseWheelListener.
The JIDLCanvas automatically handles mouse wheel events whether a program registers an additional JIDLMouseWheelListener or not. The JIDLCanvas is itself a JIDLMouseWheelListener and provides default behavior for the event.
Note: Clients should not register to listen to JIDLCanvas MouseWheelEvents using a MouseWheelListener, preferring the JIDLMouseWheelListener instead.
Note: The Java convention for mouse wheel direction is the opposite of IDL’s. This is transparent to IDL applications because when the MouseWheelEvent is passed to IDL, the sign is flipped.
See Also:
JIDLCanvas, JIDLMouseListener, java.awt.event.MouseWheelEvent, java.awt.event.MouseWheelListener
Member Summary
Methods
void
IDLmouseWheelMoved(JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse wheel was moved inside the JIDLCanvas.
Methods
IDLmouseWheelMoved(JIDLObjectI, MouseWheelEvent)
public void IDLmouseWheelMoved(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseWheelEvent event)
A mouse wheel was moved inside the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnWheel method.
Parameters:
obj - The JIDLCanvas in which the event occurred.
event - The mouse wheel event