20001220: KeyboardBehavior added

The latest release of the VisAD library (Dec 19) has a new
KeyboardBehavior interface and implementations in the java2d and java3d
subpackages. This allows you to use the keyboard to preform many of the
navigation (rotate, pan and zoom) functions you have with the mouse.
The default keys used are the arrow keys with each key simulating a
mouse movement in the direction the key points. The Shift and Ctrl keys
can be use as modifiers just as with the mouse. See the javadoc for
visad.java2d.KeyboardBehaviorJ2D and visad.java3d.KeyboardBehaviorJ3D
for more info. You can override the default key mappings using the
KeyboardBehavior.mapKeyToFunction() method. 

You can add a KeyboardBehavior to a display with code similar to:

   DisplayRendererJ3D dr = (DisplayRendererJ3D) display.getDisplayRenderer();
   KeyboardBehaviorJ3D kbd = new KeyboardBehaviorJ3D(dr);
   dr.addKeyboardBehavior(kbd);

HSVDisplay.java in the examples directory shows a concrete example of how 
to use the KeyboardBehaviorJ3D.

Thanks to Doug Lindholm, Troy Sandblom (NCAR/RAP) and Curtis
Rueden (SSEC) for their code and help.  If you have suggestions for
improvement, let me know.

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
*************************************************************
Unidata WWW Server               http://www.unidata.ucar.edu/
McIDAS Demonstration Machine  http://mcdemo.unidata.ucar.edu/
*************************************************************