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

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

public class Maximize
extends AbstractJrAction

Toggles full screen of the ViewerApp.
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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Method Summary
 void actionPerformed(ActionEvent e)
           
static Maximize sharedInstance(String name, Frame frame)
          Returns a shared instance of this action depending on the specified frame (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 Maximize sharedInstance(String name,
                                      Frame frame)
Returns a shared instance of this action depending on the specified frame (i.e. there is a shared instance for each frame). The action's name is overwritten by the specified name.

Parameters:
name - name of the action
frame - the frame to toggle
Returns:
shared instance of ToggleFullScreen with specified name
Throws:
UnsupportedOperationException - if frame equals null

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener
Specified by:
actionPerformed in class AbstractJrAction