Package org.opentrafficsim.swing.gui
Enum Appearance
- All Implemented Interfaces:
Serializable,Comparable<Appearance>
Contains a background color, foreground color and a font name, to be set throughout all components.
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfinal ColorReturns the backdrop color.final ColorReturns the background color.final StringgetFont()Returns the font name.final ColorReturns the foreground color.final StringgetName()Returns the name.static AppearanceReturns the enum constant of this type with the specified name.static Appearance[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MOTUS
MOTUS mimic. Grid not visible. -
FOSIM
Green. -
DARK
Dark. -
GRAY
Gray. -
BRIGHT
Bright. -
LEGACY
Legacy, as the initial OTS had. -
RED
Red. -
GREEN
Green. -
BLUE
Blue.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Returns the name.- Returns:
- String; name
-
getBackground
Returns the background color.- Returns:
- Color; color
-
getForeground
Returns the foreground color.- Returns:
- Color; color
-
getBackdrop
Returns the backdrop color.- Returns:
- Color; color
-
getFont
Returns the font name.- Returns:
- String; font name
-