A new release of VisAD today includes a new visad/MouseHelper.java
that includes methods setFunctionMap() and setEnableCombos() that
enable you to control the mapping from mouse buttons and ctrl and
shift keys to various interactions (e.g. image rotation and zoom,
cursor movement, direct manipulation).
You can use these methods to change the mapping from mouse buttons,
depending on the current state of your application.
Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706
hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html