public class SwitchBackgroundColor extends AbstractJrAction
Modifier and Type | Field and Description |
---|---|
static Color[] |
defaultColor
Deprecated.
use
ViewerApp.defaultBackgroundColor instead |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
SwitchBackgroundColor(String name,
SceneGraphComponent sceneRoot,
Color... colors)
Sets the scene root's background color.
|
SwitchBackgroundColor(String name,
ViewerApp viewerApp,
Color... colors) |
SwitchBackgroundColor(String name,
Viewer viewer,
Color... colors) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
createMenuItem, createToolboxItem, getIcon, setAcceleratorKey, setIcon, setName, setShortDescription
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static Color[] defaultColor
ViewerApp.defaultBackgroundColor
insteadpublic SwitchBackgroundColor(String name, SceneGraphComponent sceneRoot, Color... colors)
name
- name of the actionsceneRoot
- the root of the scene graphcolors
- list of colors with length = 1 or 4public SwitchBackgroundColor(String name, ViewerApp viewerApp, Color... colors)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class AbstractJrAction