Package org.xj3d.ui.awt.widgets
Class NextViewpointAction
java.lang.Object
javax.swing.AbstractAction
org.xj3d.ui.awt.widgets.NextViewpointAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
An action that moves to the next viewpoint on the main layer.
- Version:
- $Revision: 1.3 $
- Author:
- Alan Hudson
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionNextViewpointAction
(boolean standAlone, Icon icon, ViewpointManager manager) Create an instance of the action class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
An action has been performed.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
NextViewpointAction
Create an instance of the action class.- Parameters:
standAlone
- Is this standalone or in a menuicon
- The iconmanager
- The viewpoint manager
-
-
Method Details
-
actionPerformed
An action has been performed. This is the Go button being pressed. Grab the URL and check with the file to see if it exists first as a local file, and then try to make a URL of it. Finally, if this all works, call the abstract gotoLocation method.- Parameters:
evt
- The event that caused this method to be called.
-