Package xj3d.browser
Class SceneInfoAction
java.lang.Object
javax.swing.AbstractAction
xj3d.browser.SceneInfoAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,org.j3d.renderer.aviatrix3d.util.SceneGraphTraversalObserver
public class SceneInfoAction
extends AbstractAction
implements org.j3d.renderer.aviatrix3d.util.SceneGraphTraversalObserver
An action that prints information about the scene.
Currently prints to the console. Might be better as a Dialog.
- Version:
- $Revision: 1.7 $
- 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
ConstructorsConstructorDescriptionSceneInfoAction
(org.j3d.util.ErrorReporter console, org.j3d.aviatrix3d.management.DisplayCollection displayManager) Create an instance of the action class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
An action has been performed.void
observedNode
(org.j3d.aviatrix3d.SceneGraphObject parent, org.j3d.aviatrix3d.SceneGraphObject child, boolean shared, int depth) Notification of a scene graph object that has been traversed in the scene.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
SceneInfoAction
public SceneInfoAction(org.j3d.util.ErrorReporter console, org.j3d.aviatrix3d.management.DisplayCollection displayManager) Create an instance of the action class.- Parameters:
console
-displayManager
-
-
-
Method Details
-
observedNode
public void observedNode(org.j3d.aviatrix3d.SceneGraphObject parent, org.j3d.aviatrix3d.SceneGraphObject child, boolean shared, int depth) Notification of a scene graph object that has been traversed in the scene.- Specified by:
observedNode
in interfaceorg.j3d.renderer.aviatrix3d.util.SceneGraphTraversalObserver
- Parameters:
parent
- The parent node of this nodechild
- The child node that is being observedshared
- true if the object reference has already been traversed and this is beyond the first referencedepth
- The depth of traversal from the top of the tree. Starts at 0 for top.
-
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.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
evt
- The event that caused this method to be called.
-