Enum Class Color
- All Implemented Interfaces:
Serializable
,Comparable<Color>
,Constable
This
enum
type is generated from XML,
UID 463, marshal size 8;
Color has 160 enumerations total.
The color values 1 to 15 are defined in the HTML 3.0 specification; color values 20 to 159 are defined in the SVG 1.0 specification- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOlive DrabSlate GrayLight Slate GrayAlice BlueAntique WhiteAzureBeigeBisqueBlackBlanched AlmondBlueBlue VGABlue VioletBrownBurly WoodChocolateMaroonCoralCornsilkCornflower BlueCrimsonCyanCyan VGADark BlueDark Golden RodDark GrayDark GreenDark KhakiDark MagentaDark OrangeDark OrchidDark RedDark SalmonDark Sea GreenDark Slate GrayDark VioletMedium Slate BlueChartreuseDeep PinkDeep Sky BlueDodger BlueAquamarineFire BrickFloral WhiteForest GreenFuchsiaGainsboroGhost WhiteGoldGolden RodGreenGreen VGAGreen YellowGreyGrey VGAHoney DewHot PinkDark CyanIndian RedIndigoIvoryKhakiLavenderLavender BlushLemon ChiffonLight BlueLight CoralLight CyanLight Golden Rod YellowLight GrayLight GreenLight PinkLight SalmonLight Sea GreenLight Sky BlueLight Steel BlueLight YellowLimeLime GreenLime VGALinenCadet BlueDark Olive GreenMagentaMagenta VGAMaroon VGAMedium BlueMedium OrchidMedium PurpleMedium Sea GreenMedium Spring GreenMedium TurquoiseMedium Violet RedMidnight BlueMint CreamMisty RoseMoccasinNavajo WhiteNavyNavy VGANot SpecifiedOld LaceOlive VGAOrangeOrange RedOrchidPale Golden RodPale GreenPale TurquoisePale Violet RedPapaya WhipPeach PuffPeruPinkPlumPowder BluePurple VGAGrayPurpleRedRed VGAMedium AquamarineReservedReservedReservedReservedRosy BrownRoyal BlueSaddle BrownSalmonSandy BrownSea GreenSea ShellLawn GreenOliveSiennaSilverSilver VGASky BlueSnowSpring GreenDim GraySteel BlueSlate BlueDark TurquoiseTanTealTeal VGAThistleDark Slate BlueTomatoTurquoiseVioletWheatWhiteWhite SmokeWhite VGAYellowYellow GreenYellow VGA -
Method Summary
Modifier and TypeMethodDescriptionProvide enumeration descriptionstatic int
bit width for this enumerationstatic Color
getEnumForValue
(int value) Provide enumeration for a given valueint
Returns size of this serialized (marshalled) object in bytesgetName()
Provide nameboolean
getTRACE()
Whether tracing is on or off for this objectint
getValue()
Provide enumeration valuevoid
marshal
(DataOutputStream dos) Marshal value to DataOutputStreamvoid
marshal
(ByteBuffer byteBuffer) Marshal value to ByteBuffervoid
setTRACE
(boolean value) Set tracing on/off for this objecttoString()
Provide simple identifierstatic Color
Unmarshal value to DataInputStreamstatic Color
unmarshalEnum
(ByteBuffer byteBuffer) Unmarshal enumeration value to ByteBufferstatic Color
Returns the enum constant of this class with the specified name.static Color[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_SPECIFIED
Not Specified -
WHITE_VGA
White VGA -
RED_VGA
Red VGA -
YELLOW_VGA
Yellow VGA -
LIME_VGA
Lime VGA -
CYAN_VGA
Cyan VGA -
BLUE_VGA
Blue VGA -
MAGENTA_VGA
Magenta VGA -
GREY_VGA
Grey VGA -
SILVER_VGA
Silver VGA -
MAROON_VGA
Maroon VGA -
OLIVE_VGA
Olive VGA -
GREEN_VGA
Green VGA -
TEAL_VGA
Teal VGA -
NAVY_VGA
Navy VGA -
PURPLE_VGA
Purple VGA -
RESERVED
Reserved -
RESERVED_2
Reserved -
RESERVED_3
Reserved -
RESERVED_4
Reserved -
BLACK
Black -
NAVY
Navy -
DARK_BLUE
Dark Blue -
MEDIUM_BLUE
Medium Blue -
BLUE
Blue -
DARK_GREEN
Dark Green -
GREEN
Green -
TEAL
Teal -
IDENTIFICATION_FRIEND_OR_FOE
Dark Cyan -
DEEP_SKY_BLUE
Deep Sky Blue -
SUPPLEMENTAL_EMISSION_ENTITY_STATE
Dark Turquoise -
MEDIUM_SPRING_GREEN
Medium Spring Green -
LIME
Lime -
SPRING_GREEN
Spring Green -
CYAN
Cyan -
MIDNIGHT_BLUE
Midnight Blue -
DODGER_BLUE
Dodger Blue -
LIGHT_SEA_GREEN
Light Sea Green -
FOREST_GREEN
Forest Green -
SEA_GREEN
Sea Green -
DARK_SLATE_GRAY
Dark Slate Gray -
LIME_GREEN
Lime Green -
MEDIUM_SEA_GREEN
Medium Sea Green -
TURQUOISE
Turquoise -
ROYAL_BLUE
Royal Blue -
STEEL_BLUE
Steel Blue -
TIME_SPACE_POSITION_INFORMATION
Dark Slate Blue -
MEDIUM_TURQUOISE
Medium Turquoise -
INDIGO
Indigo -
LIVE_ENTITY_FIRE
Dark Olive Green -
LIVE_ENTITY_DETONATION
Cadet Blue -
CREATE_ENTITY_RELIABLE
Cornflower Blue -
REMOVE_ENTITY_RELIABLE
Medium Aquamarine -
START_RESUME_RELIABLE
Dim Gray -
STOP_FREEZE_RELIABLE
Slate Blue -
ACKNOWLEDGE_RELIABLE
Olive Drab -
ACTION_REQUEST_RELIABLE
Slate Gray -
ACTION_RESPONSE_RELIABLE
Light Slate Gray -
DATA_QUERY_RELIABLE
Medium Slate Blue -
SET_DATA_RELIABLE
Lawn Green -
DATA_RELIABLE
Chartreuse -
EVENT_REPORT_RELIABLE
Aquamarine -
COMMENT_RELIABLE
Maroon -
RECORD_RELIABLE
Purple -
SET_RECORD_RELIABLE
Olive -
RECORD_QUERY_RELIABLE
Gray -
GREY
Grey -
SKY_BLUE
Sky Blue -
LIGHT_SKY_BLUE
Light Sky Blue -
BLUE_VIOLET
Blue Violet -
DARK_RED
Dark Red -
DARK_MAGENTA
Dark Magenta -
SADDLE_BROWN
Saddle Brown -
DARK_SEA_GREEN
Dark Sea Green -
LIGHT_GREEN
Light Green -
MEDIUM_PURPLE
Medium Purple -
DARK_VIOLET
Dark Violet -
PALE_GREEN
Pale Green -
DARK_ORCHID
Dark Orchid -
YELLOW_GREEN
Yellow Green -
SIENNA
Sienna -
BROWN
Brown -
DARK_GRAY
Dark Gray -
LIGHT_BLUE
Light Blue -
GREEN_YELLOW
Green Yellow -
PALE_TURQUOISE
Pale Turquoise -
LIGHT_STEEL_BLUE
Light Steel Blue -
POWDER_BLUE
Powder Blue -
FIRE_BRICK
Fire Brick -
DARK_GOLDEN_ROD
Dark Golden Rod -
MEDIUM_ORCHID
Medium Orchid -
ROSY_BROWN
Rosy Brown -
DARK_KHAKI
Dark Khaki -
SILVER
Silver -
MEDIUM_VIOLET_RED
Medium Violet Red -
INDIAN_RED
Indian Red -
PERU
Peru -
CHOCOLATE
Chocolate -
TAN
Tan -
LIGHT_GRAY
Light Gray -
PALE_VIOLET_RED
Pale Violet Red -
THISTLE
Thistle -
ORCHID
Orchid -
GOLDEN_ROD
Golden Rod -
CRIMSON
Crimson -
GAINSBORO
Gainsboro -
PLUM
Plum -
BURLY_WOOD
Burly Wood -
LIGHT_CYAN
Light Cyan -
LAVENDER
Lavender -
DARK_SALMON
Dark Salmon -
VIOLET
Violet -
PALE_GOLDEN_ROD
Pale Golden Rod -
LIGHT_CORAL
Light Coral -
KHAKI
Khaki -
ALICE_BLUE
Alice Blue -
HONEY_DEW
Honey Dew -
AZURE
Azure -
SANDY_BROWN
Sandy Brown -
WHEAT
Wheat -
BEIGE
Beige -
WHITE_SMOKE
White Smoke -
MINT_CREAM
Mint Cream -
GHOST_WHITE
Ghost White -
SALMON
Salmon -
ANTIQUE_WHITE
Antique White -
LINEN
Linen -
LIGHT_GOLDEN_ROD_YELLOW
Light Golden Rod Yellow -
OLD_LACE
Old Lace -
RED
Red -
FUCHSIA
Fuchsia -
MAGENTA
Magenta -
DEEP_PINK
Deep Pink -
ORANGE_RED
Orange Red -
TOMATO
Tomato -
HOT_PINK
Hot Pink -
CORAL
Coral -
DARK_ORANGE
Dark Orange -
LIGHT_SALMON
Light Salmon -
ORANGE
Orange -
LIGHT_PINK
Light Pink -
PINK
Pink -
GOLD
Gold -
PEACH_PUFF
Peach Puff -
NAVAJO_WHITE
Navajo White -
MOCCASIN
Moccasin -
BISQUE
Bisque -
MISTY_ROSE
Misty Rose -
BLANCHED_ALMOND
Blanched Almond -
PAPAYA_WHIP
Papaya Whip -
LAVENDER_BLUSH
Lavender Blush -
SEA_SHELL
Sea Shell -
CORNSILK
Cornsilk -
LEMON_CHIFFON
Lemon Chiffon -
FLORAL_WHITE
Floral White -
SNOW
Snow -
YELLOW
Yellow -
LIGHT_YELLOW
Light Yellow -
IVORY
Ivory -
WHITE
White
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Provide enumeration value- Returns:
- integer value
-
getDescription
-
getEnumBitWidth
public static int getEnumBitWidth()bit width for this enumeration- Returns:
- number of bits wide
-
getEnumForValue
Provide enumeration for a given value- Parameters:
value
- integer value of interest- Returns:
- enumeration corresponding to numeric value
-
setTRACE
public void setTRACE(boolean value) Set tracing on/off for this object- Parameters:
value
- whether tracing is on or off
-
getTRACE
public boolean getTRACE()Whether tracing is on or off for this object- Returns:
- whether tracing is on or off
-
marshal
Marshal value to DataOutputStream- Parameters:
dos
- DataOutputStream for output- Throws:
IOException
- input-output error- See Also:
-
marshal
Marshal value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for output- Throws:
IOException
- input-output errorException
- See Also:
-
unmarshalEnum
Unmarshal value to DataInputStream- Parameters:
dis
- DataInputStream for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
unmarshalEnum
Unmarshal enumeration value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
getName
-
toString
-