de.jreality.ui.viewerapp.actions.view
Class ToggleViewerFullScreen
java.lang.Object
javax.swing.AbstractAction
de.jreality.ui.viewerapp.actions.AbstractJrAction
de.jreality.ui.viewerapp.actions.view.ToggleViewerFullScreen
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, 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
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 |
sharedInstance
public static ToggleViewerFullScreen sharedInstance(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 actionviewerApp
- the viewerApp displaying the viewer
- Returns:
- shared instance of ToggleViewerFullScreen with specified name
- Throws:
UnsupportedOperationException
- if viewerApp equals null
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
- Specified by:
actionPerformed
in class AbstractJrAction