public enum Appearance extends Enum<Appearance>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Enum Constant and Description |
---|
BLUE
Blue.
|
BRIGHT
Bright.
|
DARK
Dark.
|
FOSIM
Green.
|
GRAY
Gray.
|
GREEN
Green.
|
LEGACY
Legacy, as the initial OTS had.
|
MOTUS
MOTUS mimic.
|
RED
Red.
|
Modifier and Type | Method and Description |
---|---|
Color |
getBackdrop()
Returns the backdrop color.
|
Color |
getBackground()
Returns the background color.
|
String |
getFont()
Returns the font name.
|
Color |
getForeground()
Returns the foreground color.
|
String |
getName()
Returns the name.
|
static Appearance |
valueOf(String name)
Returns 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.
|
public static final Appearance MOTUS
public static final Appearance FOSIM
public static final Appearance DARK
public static final Appearance GRAY
public static final Appearance BRIGHT
public static final Appearance LEGACY
public static final Appearance RED
public static final Appearance GREEN
public static final Appearance BLUE
public static Appearance[] values()
for (Appearance c : Appearance.values()) System.out.println(c);
public static Appearance valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final String getName()
public final Color getBackground()
public final Color getForeground()
public final Color getBackdrop()
public final String getFont()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.