org.stellarium.astro
Enum HipStar.SpectralType
java.lang.Object
java.lang.Enum<HipStar.SpectralType>
org.stellarium.astro.HipStar.SpectralType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<HipStar.SpectralType>
- Enclosing class:
- HipStar
public static enum HipStar.SpectralType
- extends java.lang.Enum<HipStar.SpectralType>
Field Summary |
private java.awt.Color |
color
|
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
O
public static final HipStar.SpectralType O
B
public static final HipStar.SpectralType B
A
public static final HipStar.SpectralType A
F
public static final HipStar.SpectralType F
G
public static final HipStar.SpectralType G
K
public static final HipStar.SpectralType K
M
public static final HipStar.SpectralType M
R
public static final HipStar.SpectralType R
S
public static final HipStar.SpectralType S
N
public static final HipStar.SpectralType N
W
public static final HipStar.SpectralType W
X
public static final HipStar.SpectralType X
Default
public static final HipStar.SpectralType Default
color
private final java.awt.Color color
values
public static HipStar.SpectralType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (HipStar.SpectralType c : HipStar.SpectralType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HipStar.SpectralType valueOf(java.lang.String name)
- 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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getColor
public java.awt.Color getColor()