org.j3d.geom.overlay
Interface InputRequester

public interface InputRequester
An interface to start and stop the various input events available.

Each method takes both a listener and an overlay. The overlay is needed so that we can determine whether to send the mouse events to that overlay or not based on its bounds and the position of the mouse.

Version:
$Revision: 1.1 $
Author:
Justin Couch
Method Detail

requestFocus

public void requestFocus(java.lang.Object key)
Request that keyboard focus be sent to this listener object now.
Parameters:
key - The key of the object requesting focus now

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l,
                             org.j3d.geom.overlay.Overlay ovl)
Request that the given listener enable mouse events being sent. If the listener instance is null, this request is ignored.
Parameters:
l - The listener to manage events for
ovl - The overlay to base the mouse bounds handling on

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener l,
                                org.j3d.geom.overlay.Overlay ovl)
Request that the given listener disable mouse events being sent. If the listener instance is null, this request is ignored.
Parameters:
l - The listener to manage events for
ovl - The overlay to base the mouse bounds handling on

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener l,
                                   org.j3d.geom.overlay.Overlay ovl)
Request that the given listener enable mouse motion events being sent. If the listener instance is null, this request is ignored.
Parameters:
l - The listener to manage events for
ovl - The overlay to base the mouse bounds handling on

removeMouseMotionListener

public void removeMouseMotionListener(java.awt.event.MouseMotionListener l,
                                      org.j3d.geom.overlay.Overlay ovl)
Request that the given listener disable mouse motion events being sent. If the listener instance is null, this request is ignored.
Parameters:
l - The listener to manage events for
ovl - The overlay to base the mouse bounds handling on

addKeyListener

public void addKeyListener(java.awt.event.KeyListener l,
                           java.lang.Object key)
Request that the given listener enable key events being sent. If the listener instance is null, this request is ignored.
Parameters:
key - A key object used to determine focus requests
l - The listener to manage events for
ovl - The overlay to base the mouse bounds handling on

removeKeyListener

public void removeKeyListener(java.awt.event.KeyListener l,
                              java.lang.Object key)
Request that the given listener disable key events being sent. If the listener instance is null, this request is ignored.
Parameters:
key - A key object used to determine focus requests
l - The listener to manage events for
ovl - The overlay to base the mouse bounds handling on