de.jreality.ui.viewerapp.actions.view
Class ToggleViewerFullScreen

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by de.jreality.ui.viewerapp.actions.AbstractJrAction
          extended by de.jreality.ui.viewerapp.actions.view.ToggleViewerFullScreen
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ToggleViewerFullScreen
extends AbstractJrAction

Toggles full screen of the ViewerApp's viewer component (where the scene is displayed).
There is only one instance of this action.

Author:
msommer
See Also:
Serialized Form

Field Summary
 
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
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
static ToggleViewerFullScreen sharedInstance(java.lang.String name, ViewerApp viewerApp)
          Returns a shared instance of this action depending on the specified viewerApp (i.e.
 
Methods inherited from class de.jreality.ui.viewerapp.actions.AbstractJrAction
createMenuItem, createToolboxItem, getIcon, setAcceleratorKey, setIcon, setName, setShortDescription
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sharedInstance

public static ToggleViewerFullScreen sharedInstance(java.lang.String name,
                                                    ViewerApp viewerApp)
Returns a shared instance of this action depending on the specified viewerApp (i.e. there is a shared instance for each viewerApp). The action's name is overwritten by the specified name.

Parameters:
name - name of the action
viewerApp - the viewerApp displaying the viewer
Returns:
shared instance of ToggleViewerFullScreen with specified name
Throws:
java.lang.UnsupportedOperationException - if viewerApp equals null

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Specified by:
actionPerformed in class AbstractJrAction