Package be.gaudry.model.drawing.color
Enum Class EColors
- All Implemented Interfaces:
Serializable
,Comparable<EColors>
,Constable
Enumeration of some named
colors
matching the dotNet predefined Colors.
Provided by the broldev.core.model project.- Since:
- 1.0 May 29, 2008, broldev.core.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 May 29, 2008
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionalpha(float opacity)
An opacity value of 1.0 means that the color is completely opaque and an alpha value of 0.0 means that the color is completely transparent.color()
color(float opacity)
toString()
Returns a RGB string representation of this named color on the "r=%d, g=%d, b=%d" format, or "null".static EColors
Returns the enum constant of this class with the specified name.static EColors[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVEBORDER
-
ACTIVECAPTION
-
ACTIVECAPTIONTEXT
-
APPWORKSPACE
-
CONTROL
-
CONTROLDARK
-
CONTROLDARKDARK
-
CONTROLLIGHT
-
CONTROLLIGHTLIGHT
-
CONTROLTEXT
-
DESKTOP
-
GRAYTEXT
-
HIGHLIGHT
-
HIGHLIGHTTEXT
-
HOTTRACK
-
INACTIVEBORDER
-
INACTIVECAPTION
-
INACTIVECAPTIONTEXT
-
INFO
-
INFOTEXT
-
MENU
-
MENUTEXT
-
SCROLLBAR
-
WINDOW
-
WINDOWFRAME
-
WINDOWTEXT
-
ALICEBLUE
-
ANTIQUEWHITE
-
AQUA
-
AQUAMARINE
-
AZURE
-
BEIGE
-
BISQUE
-
BLACK
-
BLANCHEDALMOND
-
BLUE
-
BLUEVIOLET
-
BROWN
-
BURLYWOOD
-
CADETBLUE
-
CHARTREUSE
-
CHOCOLATE
-
CORAL
-
CORNFLOWERBLUE
-
CORNSILK
-
CRIMSON
-
CYAN
-
DARKBLUE
-
DARKCYAN
-
DARKGOLDENROD
-
DARKGRAY
-
DARKGREEN
-
DARKKHAKI
-
DARKMAGENTA
-
DARKOLIVEGREEN
-
DARKORANGE
-
DARKORCHID
-
DARKRED
-
DARKSALMON
-
DARKSEAGREEN
-
DARKSLATEBLUE
-
DARKSLATEGRAY
-
DARKTURQUOISE
-
DARKVIOLET
-
DEEPPINK
-
DEEPSKYBLUE
-
DIMGRAY
-
DODGERBLUE
-
FIREBRICK
-
FLORALWHITE
-
FORESTGREEN
-
FUCHSIA
-
GAINSBORO
-
GHOSTWHITE
-
GOLD
-
GOLDENROD
-
GRAY
-
GREEN
-
GREENYELLOW
-
HONEYDEW
-
HOTPINK
-
INDIANRED
-
INDIGO
-
IVORY
-
KHAKI
-
LAVENDER
-
LAVENDERBLUSH
-
LAWNGREEN
-
LEMONCHIFFON
-
LIGHTBLUE
-
LIGHTCORAL
-
LIGHTCYAN
-
LIGHTGOLDENRODYELLOW
-
LIGHTGRAY
-
LIGHTGREEN
-
LIGHTPINK
-
LIGHTSALMON
-
LIGHTSEAGREEN
-
LIGHTSKYBLUE
-
LIGHTSLATEGRAY
-
LIGHTSTEELBLUE
-
LIGHTYELLOW
-
LIME
-
LIMEGREEN
-
LINEN
-
MAGENTA
-
MAROON
-
MEDIUMAQUAMARINE
-
MEDIUMBLUE
-
MEDIUMORCHID
-
MEDIUMPURPLE
-
MEDIUMSEAGREEN
-
MEDIUMSLATEBLUE
-
MEDIUMSPRINGGREEN
-
MEDIUMTURQUOISE
-
MEDIUMVIOLETRED
-
MIDNIGHTBLUE
-
MINTCREAM
-
MISTYROSE
-
MOCCASIN
-
NAVAJOWHITE
-
NAVY
-
OLDLACE
-
OLIVE
-
OLIVEDRAB
-
ORANGE
-
ORANGERED
-
ORCHID
-
PALEGOLDENROD
-
PALEGREEN
-
PALETURQUOISE
-
PALEVIOLETRED
-
PAPAYAWHIP
-
PEACHPUFF
-
PERU
-
PINK
-
PLUM
-
POWDERBLUE
-
PURPLE
-
RED
-
ROSYBROWN
-
ROYALBLUE
-
SADDLEBROWN
-
SALMON
-
SANDYBROWN
-
SEAGREEN
-
SEASHELL
-
SIENNA
-
SILVER
-
SKYBLUE
-
SLATEBLUE
-
SLATEGRAY
-
SNOW
-
SPRINGGREEN
-
STEELBLUE
-
TAN
-
TEAL
-
THISTLE
-
TOMATO
-
TURQUOISE
-
VIOLET
-
WHEAT
-
WHITE
-
WHITESMOKE
-
YELLOW
-
YELLOWGREEN
-
BUTTONFACE
-
BUTTONHIGHLIGHT
-
BUTTONSHADOW
-
GRADIENTACTIVECAPTION
-
GRADIENTINACTIVECAPTION
-
MENUBAR
-
MENUHIGHLIGHT
-
-
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
-
alpha
An opacity value of 1.0 means that the color is completely opaque and an alpha value of 0.0 means that the color is completely transparent.- Parameters:
opacity
- opacity value- Returns:
- the
Color
with the desired opacity - Throws:
IllegalArgumentException
- if opacity is outside of the range 0.0 to 1.0, inclusive
-
color
- Returns:
- the Color matching this named color item
-
color
- Parameters:
opacity
- opacity value- Returns:
- the Color matching this named color item with the desired opacity
- Throws:
IllegalArgumentException
- if opacity is outside of the range 0.0 to 1.0, inclusive
-
toString
Returns a RGB string representation of this named color on the "r=%d, g=%d, b=%d" format, or "null".
-