edu.neu.ccs
Class Colors

java.lang.Object
  extended byedu.neu.ccs.Colors

public class Colors
extends Object

Class Colors

Class Colors cannot be instantiated.

This class replaces the class ColorNames which has been removed from the JPT.

Since:
2.3.2
Version:
2.4.0

Field Summary
static Color aliceblue
          Color aliceblue = AliceBlue.
static Color AliceBlue
          Color AliceBlue = 240, 248, 255 = #F0F8FF.
static Color antiquewhite
          Color antiquewhite = AntiqueWhite.
static Color AntiqueWhite
          Color AntiqueWhite = 250, 235, 215 = #FAEBD7.
static Color aqua
          Color aqua = Aqua.
static Color Aqua
          Color Aqua = 0, 255, 255 = #00FFFF.
static Color aquamarine
          Color aquamarine = Aquamarine.
static Color Aquamarine
          Color Aquamarine = 127, 255, 212 = #7FFFD4.
static Color azure
          Color azure = Azure.
static Color Azure
          Color Azure = 240, 255, 255 = #F0FFFF.
static Color background
          Color background = Background.
static Color Background
          Color Background = The default Background in this UI.
static Color beige
          Color beige = Beige.
static Color Beige
          Color Beige = 245, 245, 220 = #F5F5DC.
static Color bisque
          Color bisque = Bisque.
static Color Bisque
          Color Bisque = 255, 228, 196 = #FFE4C4.
static Color black
          Color black = Black.
static Color Black
          Color Black = 0, 0, 0 = #000000.
static Color blanchedalmond
          Color blanchedalmond = BlanchedAlmond.
static Color BlanchedAlmond
          Color BlanchedAlmond = 255, 235, 205 = #FFEBCD.
static Color blue
          Color blue = Blue.
static Color Blue
          Color Blue = 0, 0, 255 = #0000FF.
static Color blueviolet
          Color blueviolet = BlueViolet.
static Color BlueViolet
          Color BlueViolet = 138, 43, 226 = #8A2BE2.
static Color brown
          Color brown = Brown.
static Color Brown
          Color Brown = 165, 42, 42 = #A52A2A.
static Color burlywood
          Color burlywood = BurlyWood.
static Color BurlyWood
          Color BurlyWood = 222, 184, 135 = #DEB887.
static Color cadetblue
          Color cadetblue = CadetBlue.
static Color CadetBlue
          Color CadetBlue = 95, 158, 160 = #5F9EA0.
static Color chartreuse
          Color chartreuse = Chartreuse.
static Color Chartreuse
          Color Chartreuse = 127, 255, 0 = #7FFF00.
static Color chocolate
          Color chocolate = Chocolate.
static Color Chocolate
          Color Chocolate = 210, 105, 30 = #D2691E.
static Color coral
          Color coral = Coral.
static Color Coral
          Color Coral = 255, 127, 80 = #FF7F50.
static Color cornflowerblue
          Color cornflowerblue = CornflowerBlue.
static Color CornflowerBlue
          Color CornflowerBlue = 100, 149, 237 = #6495ED.
static Color cornsilk
          Color cornsilk = Cornsilk.
static Color Cornsilk
          Color Cornsilk = 255, 248, 220 = #FFF8DC.
static Color crimson
          Color crimson = Crimson.
static Color Crimson
          Color Crimson = 220, 20, 60 = #DC143C.
static Color cyan
          Color cyan = Cyan.
static Color Cyan
          Color Cyan = 0, 255, 255 = #00FFFF.
static Color darkblue
          Color darkblue = DarkBlue.
static Color DarkBlue
          Color DarkBlue = 0, 0, 139 = #00008B.
static Color darkcyan
          Color darkcyan = DarkCyan.
static Color DarkCyan
          Color DarkCyan = 0, 139, 139 = #008B8B.
static Color darkgoldenrod
          Color darkgoldenrod = DarkGoldenrod.
static Color DarkGoldenrod
          Color DarkGoldenrod = 184, 134, 11 = #B8860B.
static Color darkgray
          Color darkgray = DarkGray.
static Color DarkGray
          Color DarkGray = 169, 169, 169 = #A9A9A9.
static Color darkgreen
          Color darkgreen = DarkGreen.
static Color DarkGreen
          Color DarkGreen = 0, 100, 0 = #006400.
static Color darkkhaki
          Color darkkhaki = DarkKhaki.
static Color DarkKhaki
          Color DarkKhaki = 189, 183, 107 = #BDB76B.
static Color darkmagenta
          Color darkmagenta = DarkMagenta.
static Color DarkMagenta
          Color DarkMagenta = 139, 0, 139 = #8B008B.
static Color darkolivegreen
          Color darkolivegreen = DarkOliveGreen.
static Color DarkOliveGreen
          Color DarkOliveGreen = 85, 107, 47 = #556B2F.
static Color darkorange
          Color darkorange = DarkOrange.
static Color DarkOrange
          Color DarkOrange = 255, 140, 0 = #FF8C00.
static Color darkorchid
          Color darkorchid = DarkOrchid.
static Color DarkOrchid
          Color DarkOrchid = 153, 50, 204 = #9932CC.
static Color darkred
          Color darkred = DarkRed.
static Color DarkRed
          Color DarkRed = 139, 0, 0 = #8B0000.
static Color darksalmon
          Color darksalmon = DarkSalmon.
static Color DarkSalmon
          Color DarkSalmon = 233, 150, 122 = #E9967A.
static Color darkseagreen
          Color darkseagreen = DarkSeaGreen.
static Color DarkSeaGreen
          Color DarkSeaGreen = 143, 188, 139 = #8FBC8B.
static Color darkslateblue
          Color darkslateblue = DarkSlateBlue.
static Color DarkSlateBlue
          Color DarkSlateBlue = 72, 61, 139 = #483D8B.
static Color darkslategray
          Color darkslategray = DarkSlateGray.
static Color DarkSlateGray
          Color DarkSlateGray = 47, 79, 79 = #2F4F4F.
static Color darkturquoise
          Color darkturquoise = DarkTurquoise.
static Color DarkTurquoise
          Color DarkTurquoise = 0, 206, 209 = #00CED1.
static Color darkviolet
          Color darkviolet = DarkViolet.
static Color DarkViolet
          Color DarkViolet = 148, 0, 211 = #9400D3.
static Color deeppink
          Color deeppink = DeepPink.
static Color DeepPink
          Color DeepPink = 255, 20, 147 = #FF1493.
static Color deepskyblue
          Color deepskyblue = DeepSkyBlue.
static Color DeepSkyBlue
          Color DeepSkyBlue = 0, 191, 255 = #00BFFF.
static Color dimgray
          Color dimgray = DimGray.
static Color DimGray
          Color DimGray = 105, 105, 105 = #696969.
static Color dodgerblue
          Color dodgerblue = DodgerBlue.
static Color DodgerBlue
          Color DodgerBlue = 30, 144, 255 = #1E90FF.
static Color firebrick
          Color firebrick = Firebrick.
static Color Firebrick
          Color Firebrick = 178, 34, 34 = #B22222.
static Color floralwhite
          Color floralwhite = FloralWhite.
static Color FloralWhite
          Color FloralWhite = 255, 250, 240 = #FFFAF0.
static Color forestgreen
          Color forestgreen = ForestGreen.
static Color ForestGreen
          Color ForestGreen = 34, 139, 34 = #228B22.
static Color fuchsia
          Color fuchsia = Fuchsia.
static Color Fuchsia
          Color Fuchsia = 255, 0, 255 = #FF00FF.
static Color gainsboro
          Color gainsboro = Gainsboro.
static Color Gainsboro
          Color Gainsboro = 220, 220, 220 = #DCDCDC.
static Color ghostwhite
          Color ghostwhite = GhostWhite.
static Color GhostWhite
          Color GhostWhite = 248, 248, 255 = #F8F8FF.
static Color gold
          Color gold = Gold.
static Color Gold
          Color Gold = 255, 215, 0 = #FFD700.
static Color goldenrod
          Color goldenrod = Goldenrod.
static Color Goldenrod
          Color Goldenrod = 218, 165, 32 = #DAA520.
static Color gray
          Color gray = Gray.
static Color Gray
          Color Gray = 128, 128, 128 = #808080.
static Color green
          Color green = Green.
static Color Green
          Color Green = 0, 128, 0 = #008000.
static Color greenyellow
          Color greenyellow = GreenYellow.
static Color GreenYellow
          Color GreenYellow = 173, 255, 47 = #ADFF2F.
static Color honeydew
          Color honeydew = Honeydew.
static Color Honeydew
          Color Honeydew = 240, 255, 240 = #F0FFF0.
static Color hotpink
          Color hotpink = HotPink.
static Color HotPink
          Color HotPink = 255, 105, 180 = #FF69B4.
static Color indianred
          Color indianred = IndianRed.
static Color IndianRed
          Color IndianRed = 205, 92, 92 = #CD5C5C.
static Color indigo
          Color indigo = Indigo.
static Color Indigo
          Color Indigo = 75, 0, 130 = #4B0082.
static Color ivory
          Color ivory = Ivory.
static Color Ivory
          Color Ivory = 255, 255, 240 = #FFFFF0.
static Color khaki
          Color khaki = Khaki.
static Color Khaki
          Color Khaki = 240, 230, 140 = #F0E68C.
static Color lavender
          Color lavender = Lavender.
static Color Lavender
          Color Lavender = 230, 230, 250 = #E6E6FA.
static Color lavenderblush
          Color lavenderblush = LavenderBlush.
static Color LavenderBlush
          Color LavenderBlush = 255, 240, 245 = #FFF0F5.
static Color lawngreen
          Color lawngreen = LawnGreen.
static Color LawnGreen
          Color LawnGreen = 124, 252, 0 = #7CFC00.
static Color lemonchiffon
          Color lemonchiffon = LemonChiffon.
static Color LemonChiffon
          Color LemonChiffon = 255, 250, 205 = #FFFACD.
static Color lightblue
          Color lightblue = LightBlue.
static Color LightBlue
          Color LightBlue = 173, 216, 230 = #ADD8E6.
static Color lightcoral
          Color lightcoral = LightCoral.
static Color LightCoral
          Color LightCoral = 240, 128, 128 = #F08080.
static Color lightcyan
          Color lightcyan = LightCyan.
static Color LightCyan
          Color LightCyan = 224, 255, 255 = #E0FFFF.
static Color lightgoldenrodyellow
          Color lightgoldenrodyellow = LightGoldenrodYellow.
static Color LightGoldenrodYellow
          Color LightGoldenrodYellow = 250, 250, 210 = #FAFAD2.
static Color lightgray
          Color lightgray = LightGray.
static Color LightGray
          Color LightGray = 211, 211, 211 = #D3D3D3.
static Color lightgreen
          Color lightgreen = LightGreen.
static Color LightGreen
          Color LightGreen = 144, 238, 144 = #90EE90.
static Color lightpink
          Color lightpink = LightPink.
static Color LightPink
          Color LightPink = 255, 182, 193 = #FFB6C1.
static Color lightsalmon
          Color lightsalmon = LightSalmon.
static Color LightSalmon
          Color LightSalmon = 255, 160, 122 = #FFA07A.
static Color lightseagreen
          Color lightseagreen = LightSeaGreen.
static Color LightSeaGreen
          Color LightSeaGreen = 32, 178, 170 = #20B2AA.
static Color lightskyblue
          Color lightskyblue = LightSkyBlue.
static Color LightSkyBlue
          Color LightSkyBlue = 135, 206, 250 = #87CEFA.
static Color lightslategray
          Color lightslategray = LightSlateGray.
static Color LightSlateGray
          Color LightSlateGray = 119, 136, 153 = #778899.
static Color lightsteelblue
          Color lightsteelblue = LightSteelBlue.
static Color LightSteelBlue
          Color LightSteelBlue = 176, 196, 222 = #B0C4DE.
static Color lightyellow
          Color lightyellow = LightYellow.
static Color LightYellow
          Color LightYellow = 255, 255, 224 = #FFFFE0.
static Color lime
          Color lime = Lime.
static Color Lime
          Color Lime = 0, 255, 0 = #00FF00.
static Color limegreen
          Color limegreen = LimeGreen.
static Color LimeGreen
          Color LimeGreen = 50, 205, 50 = #32CD32.
static Color linen
          Color linen = Linen.
static Color Linen
          Color Linen = 250, 240, 230 = #FAF0E6.
private static String[] lowerCaseNameArray
          The array lowerCaseNameArray of initial data for lowerCaseNameColorSet.
private static SortedSet lowerCaseNameColorSet
          The sorted set lowerCaseNameColorSet that collects the lower case color names.
static Color magenta
          Color magenta = Magenta.
static Color Magenta
          Color Magenta = 255, 0, 255 = #FF00FF.
static Color maroon
          Color maroon = Maroon.
static Color Maroon
          Color Maroon = 128, 0, 0 = #800000.
static Color mediumaquamarine
          Color mediumaquamarine = MediumAquamarine.
static Color MediumAquamarine
          Color MediumAquamarine = 102, 205, 170 = #66CDAA.
static Color mediumblue
          Color mediumblue = MediumBlue.
static Color MediumBlue
          Color MediumBlue = 0, 0, 205 = #0000CD.
static Color mediumorchid
          Color mediumorchid = MediumOrchid.
static Color MediumOrchid
          Color MediumOrchid = 186, 85, 211 = #BA55D3.
static Color mediumpurple
          Color mediumpurple = MediumPurple.
static Color MediumPurple
          Color MediumPurple = 147, 112, 219 = #9370DB.
static Color mediumseagreen
          Color mediumseagreen = MediumSeaGreen.
static Color MediumSeaGreen
          Color MediumSeaGreen = 60, 179, 113 = #3CB371.
static Color mediumslateblue
          Color mediumslateblue = MediumSlateBlue.
static Color MediumSlateBlue
          Color MediumSlateBlue = 123, 104, 238 = #7B68EE.
static Color mediumspringgreen
          Color mediumspringgreen = MediumSpringGreen.
static Color MediumSpringGreen
          Color MediumSpringGreen = 0, 250, 154 = #00FA9A.
static Color mediumturquoise
          Color mediumturquoise = MediumTurquoise.
static Color MediumTurquoise
          Color MediumTurquoise = 72, 209, 204 = #48D1CC.
static Color mediumvioletred
          Color mediumvioletred = MediumVioletRed.
static Color MediumVioletRed
          Color MediumVioletRed = 199, 21, 133 = #C71585.
static Color midnightblue
          Color midnightblue = MidnightBlue.
static Color MidnightBlue
          Color MidnightBlue = 25, 25, 112 = #191970.
static Color mintcream
          Color mintcream = MintCream.
static Color MintCream
          Color MintCream = 245, 255, 250 = #F5FFFA.
static Color mistyrose
          Color mistyrose = MistyRose.
static Color MistyRose
          Color MistyRose = 255, 228, 225 = #FFE4E1.
static Color moccasin
          Color moccasin = Moccasin.
static Color Moccasin
          Color Moccasin = 255, 228, 181 = #FFE4B5.
private static String[] nameArray
          The array nameArray of initial data for nameColorSet.
private static Object[][] nameColorArray
          The array nameColorArray of initial data for nameColorMap.
private static SortedMap nameColorMap
          The sorted map nameColorMap that maps the lower case color names to colors.
private static SortedSet nameColorSet
          The sorted set nameColorSet that collects the mixed case color names.
static Color navajowhite
          Color navajowhite = NavajoWhite.
static Color NavajoWhite
          Color NavajoWhite = 255, 222, 173 = #FFDEAD.
static Color navy
          Color navy = Navy.
static Color Navy
          Color Navy = 0, 0, 128 = #000080.
static Color oldlace
          Color oldlace = OldLace.
static Color OldLace
          Color OldLace = 253, 245, 230 = #FDF5E6.
static Color olive
          Color olive = Olive.
static Color Olive
          Color Olive = 128, 128, 0 = #808000.
static Color olivedrab
          Color olivedrab = OliveDrab.
static Color OliveDrab
          Color OliveDrab = 107, 142, 35 = #6B8E23.
static Color orange
          Color orange = Orange.
static Color Orange
          Color Orange = 255, 165, 0 = #FFA500.
static Color orangered
          Color orangered = OrangeRed.
static Color OrangeRed
          Color OrangeRed = 255, 69, 0 = #FF4500.
static Color orchid
          Color orchid = Orchid.
static Color Orchid
          Color Orchid = 218, 112, 214 = #DA70D6.
static Color palegoldenrod
          Color palegoldenrod = PaleGoldenrod.
static Color PaleGoldenrod
          Color PaleGoldenrod = 238, 232, 170 = #EEE8AA.
static Color palegreen
          Color palegreen = PaleGreen.
static Color PaleGreen
          Color PaleGreen = 152, 251, 152 = #98FB98.
static Color paleturquoise
          Color paleturquoise = PaleTurquoise.
static Color PaleTurquoise
          Color PaleTurquoise = 175, 238, 238 = #AFEEEE.
static Color palevioletred
          Color palevioletred = PaleVioletRed.
static Color PaleVioletRed
          Color PaleVioletRed = 219, 112, 147 = #DB7093.
static Color papayawhip
          Color papayawhip = PapayaWhip.
static Color PapayaWhip
          Color PapayaWhip = 255, 239, 213 = #FFEFD5.
static Color peachpuff
          Color peachpuff = PeachPuff.
static Color PeachPuff
          Color PeachPuff = 255, 218, 185 = #FFDAB9.
static Color peru
          Color peru = Peru.
static Color Peru
          Color Peru = 205, 133, 63 = #CD853F.
static Color pink
          Color pink = Pink.
static Color Pink
          Color Pink = 255, 192, 203 = #FFC0CB.
static Color plum
          Color plum = Plum.
static Color Plum
          Color Plum = 221, 160, 221 = #DDA0DD.
static Color powderblue
          Color powderblue = PowderBlue.
static Color PowderBlue
          Color PowderBlue = 176, 224, 230 = #B0E0E6.
static Color purple
          Color purple = Purple.
static Color Purple
          Color Purple = 128, 0, 128 = #800080.
static Color red
          Color red = Red.
static Color Red
          Color Red = 255, 0, 0 = #FF0000.
static Color rosybrown
          Color rosybrown = RosyBrown.
static Color RosyBrown
          Color RosyBrown = 188, 143, 143 = #BC8F8F.
static Color royalblue
          Color royalblue = RoyalBlue.
static Color RoyalBlue
          Color RoyalBlue = 65, 105, 225 = #4169E1.
static Color saddlebrown
          Color saddlebrown = SaddleBrown.
static Color SaddleBrown
          Color SaddleBrown = 139, 69, 19 = #8B4513.
static Color salmon
          Color salmon = Salmon.
static Color Salmon
          Color Salmon = 250, 128, 114 = #FA8072.
static Color sandybrown
          Color sandybrown = SandyBrown.
static Color SandyBrown
          Color SandyBrown = 244, 164, 96 = #F4A460.
static Color seagreen
          Color seagreen = SeaGreen.
static Color SeaGreen
          Color SeaGreen = 46, 139, 87 = #2E8B57.
static Color seashell
          Color seashell = SeaShell.
static Color SeaShell
          Color SeaShell = 255, 245, 238 = #FFF5EE.
static Color sienna
          Color sienna = Sienna.
static Color Sienna
          Color Sienna = 160, 82, 45 = #A0522D.
static Color silver
          Color silver = Silver.
static Color Silver
          Color Silver = 192, 192, 192 = #C0C0C0.
static Color skyblue
          Color skyblue = SkyBlue.
static Color SkyBlue
          Color SkyBlue = 135, 206, 235 = #87CEEB.
static Color slateblue
          Color slateblue = SlateBlue.
static Color SlateBlue
          Color SlateBlue = 106, 90, 205 = #6A5ACD.
static Color slategray
          Color slategray = SlateGray.
static Color SlateGray
          Color SlateGray = 112, 128, 144 = #708090.
static Color snow
          Color snow = Snow.
static Color Snow
          Color Snow = 255, 250, 250 = #FFFAFA.
static Color springgreen
          Color springgreen = SpringGreen.
static Color SpringGreen
          Color SpringGreen = 0, 255, 127 = #00FF7F.
static Color steelblue
          Color steelblue = SteelBlue.
static Color SteelBlue
          Color SteelBlue = 70, 130, 180 = #4682B4.
static Color tan
          Color tan = Tan.
static Color Tan
          Color Tan = 210, 180, 140 = #D2B48C.
static Color teal
          Color teal = Teal.
static Color Teal
          Color Teal = 0, 128, 128 = #008080.
static Color thistle
          Color thistle = Thistle.
static Color Thistle
          Color Thistle = 216, 191, 216 = #D8BFD8.
static Color tomato
          Color tomato = Tomato.
static Color Tomato
          Color Tomato = 255, 99, 71 = #FF6347.
static Color transparent
          Color transparent = Transparent.
static Color Transparent
          Color Transparent = 255, 255, 255, 0 = #FFFFFF00.
static Color turquoise
          Color turquoise = Turquoise.
static Color Turquoise
          Color Turquoise = 64, 224, 208 = #40E0D0.
static Color violet
          Color violet = Violet.
static Color Violet
          Color Violet = 238, 130, 238 = #EE82EE.
static Color wheat
          Color wheat = Wheat.
static Color Wheat
          Color Wheat = 245, 222, 179 = #F5DEB3.
static Color white
          Color white = White.
static Color White
          Color White = 255, 255, 255 = #FFFFFF.
static Color whitesmoke
          Color whitesmoke = WhiteSmoke.
static Color WhiteSmoke
          Color WhiteSmoke = 245, 245, 245 = #F5F5F5.
static Color yellow
          Color yellow = Yellow.
static Color Yellow
          Color Yellow = 255, 255, 0 = #FFFF00.
static Color yellowgreen
          Color yellowgreen = YellowGreen.
static Color YellowGreen
          Color YellowGreen = 154, 205, 50 = #9ACD32.
 
Constructor Summary
private Colors()
           
 
Method Summary
static void addNameColorPair(String name, Color color)
          Adds a name-color pair to the internal name-color map using the given name and Color.
static Color getColorFromName(String name)
          Returns the Color corresponding to the given name or null if the name is not in the internal name-color map.
static String[] getColorNamesAsArray()
          Returns as a sorted String array the mixed case color names in the internal name-color map.
static String[] getLowerCaseColorNamesAsArray()
          Returns as a sorted String array the lower case color names in the internal name-color map.
static Color makeColorWithAlpha(Color color, int alpha)
          Returns a new color whose r, g, b components are taken from the given color and whose alpha is the given alpha.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AliceBlue

public static final Color AliceBlue
Color AliceBlue = 240, 248, 255 = #F0F8FF.


aliceblue

public static final Color aliceblue
Color aliceblue = AliceBlue.


AntiqueWhite

public static final Color AntiqueWhite
Color AntiqueWhite = 250, 235, 215 = #FAEBD7.


antiquewhite

public static final Color antiquewhite
Color antiquewhite = AntiqueWhite.


Aqua

public static final Color Aqua
Color Aqua = 0, 255, 255 = #00FFFF.


aqua

public static final Color aqua
Color aqua = Aqua.


Aquamarine

public static final Color Aquamarine
Color Aquamarine = 127, 255, 212 = #7FFFD4.


aquamarine

public static final Color aquamarine
Color aquamarine = Aquamarine.


Azure

public static final Color Azure
Color Azure = 240, 255, 255 = #F0FFFF.


azure

public static final Color azure
Color azure = Azure.


Background

public static final Color Background

Color Background = The default Background in this UI.

Computed as new JLabel().getBackground().


background

public static final Color background
Color background = Background.


Beige

public static final Color Beige
Color Beige = 245, 245, 220 = #F5F5DC.


beige

public static final Color beige
Color beige = Beige.


Bisque

public static final Color Bisque
Color Bisque = 255, 228, 196 = #FFE4C4.


bisque

public static final Color bisque
Color bisque = Bisque.


Black

public static final Color Black
Color Black = 0, 0, 0 = #000000.


black

public static final Color black
Color black = Black.


BlanchedAlmond

public static final Color BlanchedAlmond
Color BlanchedAlmond = 255, 235, 205 = #FFEBCD.


blanchedalmond

public static final Color blanchedalmond
Color blanchedalmond = BlanchedAlmond.


Blue

public static final Color Blue
Color Blue = 0, 0, 255 = #0000FF.


blue

public static final Color blue
Color blue = Blue.


BlueViolet

public static final Color BlueViolet
Color BlueViolet = 138, 43, 226 = #8A2BE2.


blueviolet

public static final Color blueviolet
Color blueviolet = BlueViolet.


Brown

public static final Color Brown
Color Brown = 165, 42, 42 = #A52A2A.


brown

public static final Color brown
Color brown = Brown.


BurlyWood

public static final Color BurlyWood
Color BurlyWood = 222, 184, 135 = #DEB887.


burlywood

public static final Color burlywood
Color burlywood = BurlyWood.


CadetBlue

public static final Color CadetBlue
Color CadetBlue = 95, 158, 160 = #5F9EA0.


cadetblue

public static final Color cadetblue
Color cadetblue = CadetBlue.


Chartreuse

public static final Color Chartreuse
Color Chartreuse = 127, 255, 0 = #7FFF00.


chartreuse

public static final Color chartreuse
Color chartreuse = Chartreuse.


Chocolate

public static final Color Chocolate
Color Chocolate = 210, 105, 30 = #D2691E.


chocolate

public static final Color chocolate
Color chocolate = Chocolate.


Coral

public static final Color Coral
Color Coral = 255, 127, 80 = #FF7F50.


coral

public static final Color coral
Color coral = Coral.


CornflowerBlue

public static final Color CornflowerBlue
Color CornflowerBlue = 100, 149, 237 = #6495ED.


cornflowerblue

public static final Color cornflowerblue
Color cornflowerblue = CornflowerBlue.


Cornsilk

public static final Color Cornsilk
Color Cornsilk = 255, 248, 220 = #FFF8DC.


cornsilk

public static final Color cornsilk
Color cornsilk = Cornsilk.


Crimson

public static final Color Crimson
Color Crimson = 220, 20, 60 = #DC143C.


crimson

public static final Color crimson
Color crimson = Crimson.


Cyan

public static final Color Cyan
Color Cyan = 0, 255, 255 = #00FFFF.


cyan

public static final Color cyan
Color cyan = Cyan.


DarkBlue

public static final Color DarkBlue
Color DarkBlue = 0, 0, 139 = #00008B.


darkblue

public static final Color darkblue
Color darkblue = DarkBlue.


DarkCyan

public static final Color DarkCyan
Color DarkCyan = 0, 139, 139 = #008B8B.


darkcyan

public static final Color darkcyan
Color darkcyan = DarkCyan.


DarkGoldenrod

public static final Color DarkGoldenrod
Color DarkGoldenrod = 184, 134, 11 = #B8860B.


darkgoldenrod

public static final Color darkgoldenrod
Color darkgoldenrod = DarkGoldenrod.


DarkGray

public static final Color DarkGray
Color DarkGray = 169, 169, 169 = #A9A9A9.


darkgray

public static final Color darkgray
Color darkgray = DarkGray.


DarkGreen

public static final Color DarkGreen
Color DarkGreen = 0, 100, 0 = #006400.


darkgreen

public static final Color darkgreen
Color darkgreen = DarkGreen.


DarkKhaki

public static final Color DarkKhaki
Color DarkKhaki = 189, 183, 107 = #BDB76B.


darkkhaki

public static final Color darkkhaki
Color darkkhaki = DarkKhaki.


DarkMagenta

public static final Color DarkMagenta
Color DarkMagenta = 139, 0, 139 = #8B008B.


darkmagenta

public static final Color darkmagenta
Color darkmagenta = DarkMagenta.


DarkOliveGreen

public static final Color DarkOliveGreen
Color DarkOliveGreen = 85, 107, 47 = #556B2F.


darkolivegreen

public static final Color darkolivegreen
Color darkolivegreen = DarkOliveGreen.


DarkOrange

public static final Color DarkOrange
Color DarkOrange = 255, 140, 0 = #FF8C00.


darkorange

public static final Color darkorange
Color darkorange = DarkOrange.


DarkOrchid

public static final Color DarkOrchid
Color DarkOrchid = 153, 50, 204 = #9932CC.


darkorchid

public static final Color darkorchid
Color darkorchid = DarkOrchid.


DarkRed

public static final Color DarkRed
Color DarkRed = 139, 0, 0 = #8B0000.


darkred

public static final Color darkred
Color darkred = DarkRed.


DarkSalmon

public static final Color DarkSalmon
Color DarkSalmon = 233, 150, 122 = #E9967A.


darksalmon

public static final Color darksalmon
Color darksalmon = DarkSalmon.


DarkSeaGreen

public static final Color DarkSeaGreen
Color DarkSeaGreen = 143, 188, 139 = #8FBC8B.


darkseagreen

public static final Color darkseagreen
Color darkseagreen = DarkSeaGreen.


DarkSlateBlue

public static final Color DarkSlateBlue
Color DarkSlateBlue = 72, 61, 139 = #483D8B.


darkslateblue

public static final Color darkslateblue
Color darkslateblue = DarkSlateBlue.


DarkSlateGray

public static final Color DarkSlateGray
Color DarkSlateGray = 47, 79, 79 = #2F4F4F.


darkslategray

public static final Color darkslategray
Color darkslategray = DarkSlateGray.


DarkTurquoise

public static final Color DarkTurquoise
Color DarkTurquoise = 0, 206, 209 = #00CED1.


darkturquoise

public static final Color darkturquoise
Color darkturquoise = DarkTurquoise.


DarkViolet

public static final Color DarkViolet
Color DarkViolet = 148, 0, 211 = #9400D3.


darkviolet

public static final Color darkviolet
Color darkviolet = DarkViolet.


DeepPink

public static final Color DeepPink
Color DeepPink = 255, 20, 147 = #FF1493.


deeppink

public static final Color deeppink
Color deeppink = DeepPink.


DeepSkyBlue

public static final Color DeepSkyBlue
Color DeepSkyBlue = 0, 191, 255 = #00BFFF.


deepskyblue

public static final Color deepskyblue
Color deepskyblue = DeepSkyBlue.


DimGray

public static final Color DimGray
Color DimGray = 105, 105, 105 = #696969.


dimgray

public static final Color dimgray
Color dimgray = DimGray.


DodgerBlue

public static final Color DodgerBlue
Color DodgerBlue = 30, 144, 255 = #1E90FF.


dodgerblue

public static final Color dodgerblue
Color dodgerblue = DodgerBlue.


Firebrick

public static final Color Firebrick
Color Firebrick = 178, 34, 34 = #B22222.


firebrick

public static final Color firebrick
Color firebrick = Firebrick.


FloralWhite

public static final Color FloralWhite
Color FloralWhite = 255, 250, 240 = #FFFAF0.


floralwhite

public static final Color floralwhite
Color floralwhite = FloralWhite.


ForestGreen

public static final Color ForestGreen
Color ForestGreen = 34, 139, 34 = #228B22.


forestgreen

public static final Color forestgreen
Color forestgreen = ForestGreen.


Fuchsia

public static final Color Fuchsia
Color Fuchsia = 255, 0, 255 = #FF00FF.


fuchsia

public static final Color fuchsia
Color fuchsia = Fuchsia.


Gainsboro

public static final Color Gainsboro
Color Gainsboro = 220, 220, 220 = #DCDCDC.


gainsboro

public static final Color gainsboro
Color gainsboro = Gainsboro.


GhostWhite

public static final Color GhostWhite
Color GhostWhite = 248, 248, 255 = #F8F8FF.


ghostwhite

public static final Color ghostwhite
Color ghostwhite = GhostWhite.


Gold

public static final Color Gold
Color Gold = 255, 215, 0 = #FFD700.


gold

public static final Color gold
Color gold = Gold.


Goldenrod

public static final Color Goldenrod
Color Goldenrod = 218, 165, 32 = #DAA520.


goldenrod

public static final Color goldenrod
Color goldenrod = Goldenrod.


Gray

public static final Color Gray
Color Gray = 128, 128, 128 = #808080.


gray

public static final Color gray
Color gray = Gray.


Green

public static final Color Green
Color Green = 0, 128, 0 = #008000.

Warning: The definition of Green as 0, 128, 0 follows current conventions on the web. The color Lime is 0, 255, 0.


green

public static final Color green
Color green = Green.

Warning: The definition of Green as 0, 128, 0 follows current conventions on the web. The color Lime is 0, 255, 0.


GreenYellow

public static final Color GreenYellow
Color GreenYellow = 173, 255, 47 = #ADFF2F.


greenyellow

public static final Color greenyellow
Color greenyellow = GreenYellow.


Honeydew

public static final Color Honeydew
Color Honeydew = 240, 255, 240 = #F0FFF0.


honeydew

public static final Color honeydew
Color honeydew = Honeydew.


HotPink

public static final Color HotPink
Color HotPink = 255, 105, 180 = #FF69B4.


hotpink

public static final Color hotpink
Color hotpink = HotPink.


IndianRed

public static final Color IndianRed
Color IndianRed = 205, 92, 92 = #CD5C5C.


indianred

public static final Color indianred
Color indianred = IndianRed.


Indigo

public static final Color Indigo
Color Indigo = 75, 0, 130 = #4B0082.


indigo

public static final Color indigo
Color indigo = Indigo.


Ivory

public static final Color Ivory
Color Ivory = 255, 255, 240 = #FFFFF0.


ivory

public static final Color ivory
Color ivory = Ivory.


Khaki

public static final Color Khaki
Color Khaki = 240, 230, 140 = #F0E68C.


khaki

public static final Color khaki
Color khaki = Khaki.


Lavender

public static final Color Lavender
Color Lavender = 230, 230, 250 = #E6E6FA.


lavender

public static final Color lavender
Color lavender = Lavender.


LavenderBlush

public static final Color LavenderBlush
Color LavenderBlush = 255, 240, 245 = #FFF0F5.


lavenderblush

public static final Color lavenderblush
Color lavenderblush = LavenderBlush.


LawnGreen

public static final Color LawnGreen
Color LawnGreen = 124, 252, 0 = #7CFC00.


lawngreen

public static final Color lawngreen
Color lawngreen = LawnGreen.


LemonChiffon

public static final Color LemonChiffon
Color LemonChiffon = 255, 250, 205 = #FFFACD.


lemonchiffon

public static final Color lemonchiffon
Color lemonchiffon = LemonChiffon.


LightBlue

public static final Color LightBlue
Color LightBlue = 173, 216, 230 = #ADD8E6.


lightblue

public static final Color lightblue
Color lightblue = LightBlue.


LightCoral

public static final Color LightCoral
Color LightCoral = 240, 128, 128 = #F08080.


lightcoral

public static final Color lightcoral
Color lightcoral = LightCoral.


LightCyan

public static final Color LightCyan
Color LightCyan = 224, 255, 255 = #E0FFFF.


lightcyan

public static final Color lightcyan
Color lightcyan = LightCyan.


LightGoldenrodYellow

public static final Color LightGoldenrodYellow
Color LightGoldenrodYellow = 250, 250, 210 = #FAFAD2.


lightgoldenrodyellow

public static final Color lightgoldenrodyellow
Color lightgoldenrodyellow = LightGoldenrodYellow.


LightGray

public static final Color LightGray
Color LightGray = 211, 211, 211 = #D3D3D3.


lightgray

public static final Color lightgray
Color lightgray = LightGray.


LightGreen

public static final Color LightGreen
Color LightGreen = 144, 238, 144 = #90EE90.


lightgreen

public static final Color lightgreen
Color lightgreen = LightGreen.


LightPink

public static final Color LightPink
Color LightPink = 255, 182, 193 = #FFB6C1.


lightpink

public static final Color lightpink
Color lightpink = LightPink.


LightSalmon

public static final Color LightSalmon
Color LightSalmon = 255, 160, 122 = #FFA07A.


lightsalmon

public static final Color lightsalmon
Color lightsalmon = LightSalmon.


LightSeaGreen

public static final Color LightSeaGreen
Color LightSeaGreen = 32, 178, 170 = #20B2AA.


lightseagreen

public static final Color lightseagreen
Color lightseagreen = LightSeaGreen.


LightSkyBlue

public static final Color LightSkyBlue
Color LightSkyBlue = 135, 206, 250 = #87CEFA.


lightskyblue

public static final Color lightskyblue
Color lightskyblue = LightSkyBlue.


LightSlateGray

public static final Color LightSlateGray
Color LightSlateGray = 119, 136, 153 = #778899.


lightslategray

public static final Color lightslategray
Color lightslategray = LightSlateGray.


LightSteelBlue

public static final Color LightSteelBlue
Color LightSteelBlue = 176, 196, 222 = #B0C4DE.


lightsteelblue

public static final Color lightsteelblue
Color lightsteelblue = LightSteelBlue.


LightYellow

public static final Color LightYellow
Color LightYellow = 255, 255, 224 = #FFFFE0.


lightyellow

public static final Color lightyellow
Color lightyellow = LightYellow.


Lime

public static final Color Lime
Color Lime = 0, 255, 0 = #00FF00.

The color Lime is 0, 255, 0 which is the traditional definition of the color Green. However, following current conventions on the web, Green is defined here as 0, 128, 0.


lime

public static final Color lime
Color lime = Lime.

The color Lime is 0, 255, 0 which is the traditional definition of the color Green. However, following current conventions on the web, Green is defined here as 0, 128, 0.


LimeGreen

public static final Color LimeGreen
Color LimeGreen = 50, 205, 50 = #32CD32.


limegreen

public static final Color limegreen
Color limegreen = LimeGreen.


Linen

public static final Color Linen
Color Linen = 250, 240, 230 = #FAF0E6.


linen

public static final Color linen
Color linen = Linen.


Magenta

public static final Color Magenta
Color Magenta = 255, 0, 255 = #FF00FF.


magenta

public static final Color magenta
Color magenta = Magenta.


Maroon

public static final Color Maroon
Color Maroon = 128, 0, 0 = #800000.


maroon

public static final Color maroon
Color maroon = Maroon.


MediumAquamarine

public static final Color MediumAquamarine
Color MediumAquamarine = 102, 205, 170 = #66CDAA.


mediumaquamarine

public static final Color mediumaquamarine
Color mediumaquamarine = MediumAquamarine.


MediumBlue

public static final Color MediumBlue
Color MediumBlue = 0, 0, 205 = #0000CD.


mediumblue

public static final Color mediumblue
Color mediumblue = MediumBlue.


MediumOrchid

public static final Color MediumOrchid
Color MediumOrchid = 186, 85, 211 = #BA55D3.


mediumorchid

public static final Color mediumorchid
Color mediumorchid = MediumOrchid.


MediumPurple

public static final Color MediumPurple
Color MediumPurple = 147, 112, 219 = #9370DB.


mediumpurple

public static final Color mediumpurple
Color mediumpurple = MediumPurple.


MediumSeaGreen

public static final Color MediumSeaGreen
Color MediumSeaGreen = 60, 179, 113 = #3CB371.


mediumseagreen

public static final Color mediumseagreen
Color mediumseagreen = MediumSeaGreen.


MediumSlateBlue

public static final Color MediumSlateBlue
Color MediumSlateBlue = 123, 104, 238 = #7B68EE.


mediumslateblue

public static final Color mediumslateblue
Color mediumslateblue = MediumSlateBlue.


MediumSpringGreen

public static final Color MediumSpringGreen
Color MediumSpringGreen = 0, 250, 154 = #00FA9A.


mediumspringgreen

public static final Color mediumspringgreen
Color mediumspringgreen = MediumSpringGreen.


MediumTurquoise

public static final Color MediumTurquoise
Color MediumTurquoise = 72, 209, 204 = #48D1CC.


mediumturquoise

public static final Color mediumturquoise
Color mediumturquoise = MediumTurquoise.


MediumVioletRed

public static final Color MediumVioletRed
Color MediumVioletRed = 199, 21, 133 = #C71585.


mediumvioletred

public static final Color mediumvioletred
Color mediumvioletred = MediumVioletRed.


MidnightBlue

public static final Color MidnightBlue
Color MidnightBlue = 25, 25, 112 = #191970.


midnightblue

public static final Color midnightblue
Color midnightblue = MidnightBlue.


MintCream

public static final Color MintCream
Color MintCream = 245, 255, 250 = #F5FFFA.


mintcream

public static final Color mintcream
Color mintcream = MintCream.


MistyRose

public static final Color MistyRose
Color MistyRose = 255, 228, 225 = #FFE4E1.


mistyrose

public static final Color mistyrose
Color mistyrose = MistyRose.


Moccasin

public static final Color Moccasin
Color Moccasin = 255, 228, 181 = #FFE4B5.


moccasin

public static final Color moccasin
Color moccasin = Moccasin.


NavajoWhite

public static final Color NavajoWhite
Color NavajoWhite = 255, 222, 173 = #FFDEAD.


navajowhite

public static final Color navajowhite
Color navajowhite = NavajoWhite.


Navy

public static final Color Navy
Color Navy = 0, 0, 128 = #000080.


navy

public static final Color navy
Color navy = Navy.


OldLace

public static final Color OldLace
Color OldLace = 253, 245, 230 = #FDF5E6.


oldlace

public static final Color oldlace
Color oldlace = OldLace.


Olive

public static final Color Olive
Color Olive = 128, 128, 0 = #808000.


olive

public static final Color olive
Color olive = Olive.


OliveDrab

public static final Color OliveDrab
Color OliveDrab = 107, 142, 35 = #6B8E23.


olivedrab

public static final Color olivedrab
Color olivedrab = OliveDrab.


Orange

public static final Color Orange
Color Orange = 255, 165, 0 = #FFA500.


orange

public static final Color orange
Color orange = Orange.


OrangeRed

public static final Color OrangeRed
Color OrangeRed = 255, 69, 0 = #FF4500.


orangered

public static final Color orangered
Color orangered = OrangeRed.


Orchid

public static final Color Orchid
Color Orchid = 218, 112, 214 = #DA70D6.


orchid

public static final Color orchid
Color orchid = Orchid.


PaleGoldenrod

public static final Color PaleGoldenrod
Color PaleGoldenrod = 238, 232, 170 = #EEE8AA.


palegoldenrod

public static final Color palegoldenrod
Color palegoldenrod = PaleGoldenrod.


PaleGreen

public static final Color PaleGreen
Color PaleGreen = 152, 251, 152 = #98FB98.


palegreen

public static final Color palegreen
Color palegreen = PaleGreen.


PaleTurquoise

public static final Color PaleTurquoise
Color PaleTurquoise = 175, 238, 238 = #AFEEEE.


paleturquoise

public static final Color paleturquoise
Color paleturquoise = PaleTurquoise.


PaleVioletRed

public static final Color PaleVioletRed
Color PaleVioletRed = 219, 112, 147 = #DB7093.


palevioletred

public static final Color palevioletred
Color palevioletred = PaleVioletRed.


PapayaWhip

public static final Color PapayaWhip
Color PapayaWhip = 255, 239, 213 = #FFEFD5.


papayawhip

public static final Color papayawhip
Color papayawhip = PapayaWhip.


PeachPuff

public static final Color PeachPuff
Color PeachPuff = 255, 218, 185 = #FFDAB9.


peachpuff

public static final Color peachpuff
Color peachpuff = PeachPuff.


Peru

public static final Color Peru
Color Peru = 205, 133, 63 = #CD853F.


peru

public static final Color peru
Color peru = Peru.


Pink

public static final Color Pink
Color Pink = 255, 192, 203 = #FFC0CB.


pink

public static final Color pink
Color pink = Pink.


Plum

public static final Color Plum
Color Plum = 221, 160, 221 = #DDA0DD.


plum

public static final Color plum
Color plum = Plum.


PowderBlue

public static final Color PowderBlue
Color PowderBlue = 176, 224, 230 = #B0E0E6.


powderblue

public static final Color powderblue
Color powderblue = PowderBlue.


Purple

public static final Color Purple
Color Purple = 128, 0, 128 = #800080.


purple

public static final Color purple
Color purple = Purple.


Red

public static final Color Red
Color Red = 255, 0, 0 = #FF0000.


red

public static final Color red
Color red = Red.


RosyBrown

public static final Color RosyBrown
Color RosyBrown = 188, 143, 143 = #BC8F8F.


rosybrown

public static final Color rosybrown
Color rosybrown = RosyBrown.


RoyalBlue

public static final Color RoyalBlue
Color RoyalBlue = 65, 105, 225 = #4169E1.


royalblue

public static final Color royalblue
Color royalblue = RoyalBlue.


SaddleBrown

public static final Color SaddleBrown
Color SaddleBrown = 139, 69, 19 = #8B4513.


saddlebrown

public static final Color saddlebrown
Color saddlebrown = SaddleBrown.


Salmon

public static final Color Salmon
Color Salmon = 250, 128, 114 = #FA8072.


salmon

public static final Color salmon
Color salmon = Salmon.


SandyBrown

public static final Color SandyBrown
Color SandyBrown = 244, 164, 96 = #F4A460.


sandybrown

public static final Color sandybrown
Color sandybrown = SandyBrown.


SeaGreen

public static final Color SeaGreen
Color SeaGreen = 46, 139, 87 = #2E8B57.


seagreen

public static final Color seagreen
Color seagreen = SeaGreen.


SeaShell

public static final Color SeaShell
Color SeaShell = 255, 245, 238 = #FFF5EE.


seashell

public static final Color seashell
Color seashell = SeaShell.


Sienna

public static final Color Sienna
Color Sienna = 160, 82, 45 = #A0522D.


sienna

public static final Color sienna
Color sienna = Sienna.


Silver

public static final Color Silver
Color Silver = 192, 192, 192 = #C0C0C0.


silver

public static final Color silver
Color silver = Silver.


SkyBlue

public static final Color SkyBlue
Color SkyBlue = 135, 206, 235 = #87CEEB.


skyblue

public static final Color skyblue
Color skyblue = SkyBlue.


SlateBlue

public static final Color SlateBlue
Color SlateBlue = 106, 90, 205 = #6A5ACD.


slateblue

public static final Color slateblue
Color slateblue = SlateBlue.


SlateGray

public static final Color SlateGray
Color SlateGray = 112, 128, 144 = #708090.


slategray

public static final Color slategray
Color slategray = SlateGray.


Snow

public static final Color Snow
Color Snow = 255, 250, 250 = #FFFAFA.


snow

public static final Color snow
Color snow = Snow.


SpringGreen

public static final Color SpringGreen
Color SpringGreen = 0, 255, 127 = #00FF7F.


springgreen

public static final Color springgreen
Color springgreen = SpringGreen.


SteelBlue

public static final Color SteelBlue
Color SteelBlue = 70, 130, 180 = #4682B4.


steelblue

public static final Color steelblue
Color steelblue = SteelBlue.


Tan

public static final Color Tan
Color Tan = 210, 180, 140 = #D2B48C.


tan

public static final Color tan
Color tan = Tan.


Teal

public static final Color Teal
Color Teal = 0, 128, 128 = #008080.


teal

public static final Color teal
Color teal = Teal.


Thistle

public static final Color Thistle
Color Thistle = 216, 191, 216 = #D8BFD8.


thistle

public static final Color thistle
Color thistle = Thistle.


Tomato

public static final Color Tomato
Color Tomato = 255, 99, 71 = #FF6347.


tomato

public static final Color tomato
Color tomato = Tomato.


Transparent

public static final Color Transparent
Color Transparent = 255, 255, 255, 0 = #FFFFFF00.


transparent

public static final Color transparent
Color transparent = Transparent.


Turquoise

public static final Color Turquoise
Color Turquoise = 64, 224, 208 = #40E0D0.


turquoise

public static final Color turquoise
Color turquoise = Turquoise.


Violet

public static final Color Violet
Color Violet = 238, 130, 238 = #EE82EE.


violet

public static final Color violet
Color violet = Violet.


Wheat

public static final Color Wheat
Color Wheat = 245, 222, 179 = #F5DEB3.


wheat

public static final Color wheat
Color wheat = Wheat.


White

public static final Color White
Color White = 255, 255, 255 = #FFFFFF.


white

public static final Color white
Color white = White.


WhiteSmoke

public static final Color WhiteSmoke
Color WhiteSmoke = 245, 245, 245 = #F5F5F5.


whitesmoke

public static final Color whitesmoke
Color whitesmoke = WhiteSmoke.


Yellow

public static final Color Yellow
Color Yellow = 255, 255, 0 = #FFFF00.


yellow

public static final Color yellow
Color yellow = Yellow.


YellowGreen

public static final Color YellowGreen
Color YellowGreen = 154, 205, 50 = #9ACD32.


yellowgreen

public static final Color yellowgreen
Color yellowgreen = YellowGreen.


nameArray

private static String[] nameArray

The array nameArray of initial data for nameColorSet.

The names installed in this array may be mixed case but no two names should map to the same all lower case string.


lowerCaseNameArray

private static String[] lowerCaseNameArray

The array lowerCaseNameArray of initial data for lowerCaseNameColorSet.

The names in this array must be distinct.


nameColorArray

private static Object[][] nameColorArray

The array nameColorArray of initial data for nameColorMap.

The names installed in this array must be in lower case.


nameColorSet

private static SortedSet nameColorSet
The sorted set nameColorSet that collects the mixed case color names.


lowerCaseNameColorSet

private static SortedSet lowerCaseNameColorSet
The sorted set lowerCaseNameColorSet that collects the lower case color names.


nameColorMap

private static SortedMap nameColorMap
The sorted map nameColorMap that maps the lower case color names to colors.

Constructor Detail

Colors

private Colors()
Method Detail

getColorFromName

public static Color getColorFromName(String name)

Returns the Color corresponding to the given name or null if the name is not in the internal name-color map.

The name parameter is converted to lower case prior to the search for an associated color. Hence the search is not case sensitive.

Parameters:
name - the name of the Color
Returns:
the Color associated with the name

getColorNamesAsArray

public static String[] getColorNamesAsArray()

Returns as a sorted String array the mixed case color names in the internal name-color map.

Returns:
the sorted mixed case color names

getLowerCaseColorNamesAsArray

public static String[] getLowerCaseColorNamesAsArray()

Returns as a sorted String array the lower case color names in the internal name-color map.

Returns:
the sorted lower case color names

addNameColorPair

public static void addNameColorPair(String name,
                                    Color color)

Adds a name-color pair to the internal name-color map using the given name and Color.

Does nothing if either parameter is null.

The first step in processing is to trim leading and trailing white space from the given name. Then, if name has zero length, does nothing. Next, if the first character of name is not a letter, then also does nothing. Finally, if the name agrees with one of the predefined names when compared independently of case, then also does nothing. In particular, this means that there is no way to change the predefined name-color pairings but that prior name-color pairings added via this method may be changed.

Parameters:
name - the string name to identify the color
color - the color to pair with the name

makeColorWithAlpha

public static Color makeColorWithAlpha(Color color,
                                       int alpha)

Returns a new color whose r, g, b components are taken from the given color and whose alpha is the given alpha.

Returns null if the given color is null

.

The given alpha is forced into the range 0 to 255.