de.jreality.ui.viewerapp.actions.view
Class SwitchBackgroundColor
java.lang.Object
javax.swing.AbstractAction
de.jreality.ui.viewerapp.actions.AbstractJrAction
de.jreality.ui.viewerapp.actions.view.SwitchBackgroundColor
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class SwitchBackgroundColor
- extends AbstractJrAction
Switches the background color of a scene graph's root,
which is used as the background color of the displaying viewer.
- 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 |
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 |
defaultColor
public static java.awt.Color[] defaultColor
- Deprecated. use
ViewerApp.defaultBackgroundColor
instead
SwitchBackgroundColor
public SwitchBackgroundColor(java.lang.String name,
SceneGraphComponent sceneRoot,
java.awt.Color... colors)
- Sets the scene root's background color.
- Parameters:
name
- name of the actionsceneRoot
- the root of the scene graphcolors
- list of colors with length = 1 or 4
SwitchBackgroundColor
public SwitchBackgroundColor(java.lang.String name,
ViewerApp viewerApp,
java.awt.Color... colors)
- See Also:
SwitchBackgroundColor(String, SceneGraphComponent, Color[])
SwitchBackgroundColor
public SwitchBackgroundColor(java.lang.String name,
Viewer viewer,
java.awt.Color... colors)
- See Also:
SwitchBackgroundColor(String, SceneGraphComponent, Color[])
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Specified by:
actionPerformed
in class AbstractJrAction