Package org.opentrafficsim.swing.gui
Enum Class Appearance
- All Implemented Interfaces:
Serializable
,Comparable<Appearance>
,Constable
Contains a background color, foreground color and a font name, to be set throughout all components.
Copyright (c) 2013-2024 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Color
Returns the backdrop color.final Color
Returns the background color.final String
getFont()
Returns the font name.final Color
Returns the foreground color.final String
getName()
Returns the name.static Appearance
Returns the enum constant of this class with the specified name.static Appearance[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MOTUS
MOTUS mimic. Grid and nodes 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
-