public enum ColorType extends Enum<ColorType> implements MpxjEnum
Enum Constant and Description |
---|
AQUA |
AUTOMATIC |
BLACK |
BLUE |
FUSCHIA |
GRAY |
GREEN |
LIME |
MAROON |
NAVY |
OLIVE |
PURPLE |
RED |
SILVER |
TEAL |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullpublic static ColorType getInstance(int type)
type
- int typepublic static ColorType getInstance(Number type)
type
- int typepublic String getName()
public Color getColor()
Copyright © 2000–2025 Packwood Software. All rights reserved.