|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ColorType>
net.sf.mpxj.mpp.ColorType
public enum ColorType
This enum represents the colors used by Microsoft Project.
| Enum Constant Summary | |
|---|---|
AQUA
|
|
AUTOMATIC
|
|
BLACK
|
|
BLUE
|
|
FUSCHIA
|
|
GRAY
|
|
GREEN
|
|
LIME
|
|
MAROON
|
|
NAVY
|
|
OLIVE
|
|
PURPLE
|
|
RED
|
|
SILVER
|
|
TEAL
|
|
WHITE
|
|
YELLOW
|
|
| Method Summary | |
|---|---|
Color |
getColor()
Retrieve a Java Color instance matching the color used in MS Project. |
static ColorType |
getInstance(int type)
Retrieve an instance of the enum based on its int value. |
static ColorType |
getInstance(Number type)
Retrieve an instance of the enum based on its int value. |
String |
getName()
Retrieve the color name. |
int |
getValue()
Accessor method used to retrieve the numeric representation of the enum. |
static ColorType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ColorType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| 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 |
| Enum Constant Detail |
|---|
public static final ColorType BLACK
public static final ColorType RED
public static final ColorType YELLOW
public static final ColorType LIME
public static final ColorType AQUA
public static final ColorType BLUE
public static final ColorType FUSCHIA
public static final ColorType WHITE
public static final ColorType MAROON
public static final ColorType GREEN
public static final ColorType OLIVE
public static final ColorType NAVY
public static final ColorType PURPLE
public static final ColorType TEAL
public static final ColorType GRAY
public static final ColorType SILVER
public static final ColorType AUTOMATIC
| Method Detail |
|---|
public static ColorType[] values()
for (ColorType c : ColorType.values()) System.out.println(c);
public static ColorType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static ColorType getInstance(int type)
type - int type
public static ColorType getInstance(Number type)
type - int type
public String getName()
public Color getColor()
public int getValue()
getValue in interface MpxjEnum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||