Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.awt.widgets
Class HomeViewpointAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xj3d.ui.awt.widgets.HomeViewpointAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class HomeViewpointAction
extends javax.swing.AbstractAction

An action that moves to the Home viewpoint on the main layer.

Version:
$Revision: 1.3 $
Author:
Alan Hudson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
HomeViewpointAction(boolean standAlone, javax.swing.Icon icon, ViewpointManager manager)
          Create an instance of the action class.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          An action has been performed.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HomeViewpointAction

public HomeViewpointAction(boolean standAlone,
                           javax.swing.Icon icon,
                           ViewpointManager manager)
Create an instance of the action class.

Parameters:
standAlone - Is this standalone or in a menu
icon - The icon
manager - The viewpoint manager
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
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.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium