public enum Palette extends Enum<Palette>
| Enum Constant and Description |
|---|
BLUE |
BROWN |
GREEN |
INDIGO |
LIME |
ORANGE |
PURPLE |
RED |
TEAL |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
static Palette |
color(int index)
Returns the color at the specified index.
|
String |
getHover() |
String |
getNormal() |
static Palette |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Palette[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Palette YELLOW
public static final Palette LIME
public static final Palette GREEN
public static final Palette BLUE
public static final Palette TEAL
public static final Palette ORANGE
public static final Palette INDIGO
public static final Palette PURPLE
public static final Palette RED
public static final Palette BROWN
public static Palette[] values()
for (Palette c : Palette.values()) System.out.println(c);
public static Palette 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 static Palette color(int index)
index - the index to usepublic String getNormal()
public String getHover()
Copyright © 2016–2019. All rights reserved.