Class SwingViewpointToolbar

java.lang.Object
All Implemented Interfaces:
ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, NavigationStateListener, ViewpointStatusListener

public class SwingViewpointToolbar extends JPanel implements ItemListener, ViewpointStatusListener, NavigationStateListener
A toolbar for all viewpoint manipulation commands that offers convenient and common code.

Creating an instance of this class will automatically register it as viewpoint and navigation state listeners with the browser core. The end user is not required to do this.

External Resources

This toolbar uses images for the button icons rather than text. These are the images used. The path is found relative to the classpath.

  • Forward: images/navigation/ButtonForward.gif
  • Back: images/navigation/ButtonBack.gif
  • Home: images/navigation/ButtonHome.gif
  • Fit: images/navigation/ButtonFit.gif
  • Look At: images/navigation/ButtonLookat.gif
The toolbar always starts completely disabled. User code should not play with the enabled state as we will do that based on the feedback from the various status listeners... The actions returned are suitable for menu usage. Internally we have another set of actions that have a different style.
Version:
$Revision: 1.10 $
Author:
Justin Couch, Brad Vender
See Also: