Revision: 7649
Author: victormote
Date: 2006-06-16 09:50:40 -0700 (Fri, 16 Jun 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7649&view=rev
Log Message:
-----------
Add doc about source of the color definitions, and make conformant to that.
Modified Paths:
--------------
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtColor.java
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtColor.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtColor.java 2006-06-16 16:27:10 UTC (rev 7648)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtColor.java 2006-06-16 16:50:40 UTC (rev 7649)
@@ -64,6 +64,9 @@
/**
* Keep this list in the same order as the name list above (i.e.
* alphabetical, to facilitate binary searches.
+ * See the <a href="http://www.w3.org/TR/CSS21/syndata.html#color-units">CSS
+ * color definitions</a> for what we think is the authoritative source of
+ * the color values.
*/
private static final DtColor[] vals = {
makeColorDT(new Color(0, 255, 255)), // aqua
@@ -71,7 +74,7 @@
makeColorDT(new Color(0, 0, 255)), // blue
makeColorDT(new Color(255, 0, 255)), // fuchsia
makeColorDT(new Color(128, 128, 128)), // gray
- makeColorDT(new Color(0, 255, 0)), // green
+ makeColorDT(new Color(0, 128, 0)), // green
makeColorDT(new Color(0, 255, 0)), // lime
makeColorDT(new Color(128, 0, 0)), // maroon
makeColorDT(new Color(0, 0, 128)), // navy
@@ -92,14 +95,11 @@
* color definitions.
new Color(240, 248, 255), // aliceblue
new Color(250, 235, 215), // antiquewhite
- new Color(0, 255, 255), // aqua
new Color(127, 255, 212), // aquamarine
new Color(240, 255, 255), // azure
new Color(245, 245, 220), // beige
new Color(255, 228, 196), // bisque
- new Color(0, 0, 0), // black
new Color(255, 235, 205), // blanchedalmond
- new Color(0, 0, 255), // blue
new Color(138, 43, 226), // blueviolet
new Color(165, 42, 42), // brown
new Color(222, 184, 135), // burlywood
@@ -138,13 +138,10 @@
new Color(178, 34, 34), // firebrick
new Color(255, 250, 240), // floralwhite
new Color(34, 139, 34), // forestgreen
- new Color(255, 0, 255), // fuchsia
new Color(220, 220, 220), // gainsboro
new Color(248, 248, 255), // ghostwhite
new Color(255, 215, 0), // gold
new Color(218, 165, 32), // goldenrod
- new Color(128, 128, 128), // gray
- new Color(0, 255, 0), // green
new Color(173, 255, 47), // greenyellow
new Color(128, 128, 128), // grey
new Color(240, 255, 240), // honeydew
@@ -172,11 +169,9 @@
new Color(119, 136, 153), // lightslategrey
new Color(176, 196, 222), // lightsteelblue
new Color(255, 255, 224), // lightyellow
- new Color(0, 255, 0), // lime
new Color(50, 205, 50), // limegreen
new Color(250, 240, 230), // linen
new Color(255, 0, 255), // magenta
- new Color(128, 0, 0), // maroon
new Color(102, 205, 170), // mediumaquamarine
new Color(0, 0, 205), // mediumblue
new Color(186, 85, 211), // mediumorchid
@@ -191,9 +186,7 @@
new Color(255, 228, 225), // mistyrose
new Color(255, 228, 181), // moccasin
new Color(255, 222, 173), // navajowhite
- new Color(0, 0, 128), // navy
new Color(253, 245, 230), // oldlace
- new Color(128, 128, 0), // olive
new Color(107, 142, 35), // olivedrab
new Color(255, 165, 0), // orange
new Color(255, 69, 0), // orangered
@@ -208,8 +201,6 @@
new Color(255, 192, 203), // pink
new Color(221, 160, 221), // plum
new Color(176, 224, 230), // powderblue
- new Color(128, 0, 128), // purple
- new Color(255, 0, 0), // red
new Color(188, 143, 143), // rosybrown
new Color(65, 105, 225), // royalblue
new Color(139, 69, 19), // saddlebrown
@@ -218,7 +209,6 @@
new Color(46, 139, 87), // seagreen
new Color(255, 245, 238), // seashell
new Color(160, 82, 45), // sienna
- new Color(192, 192, 192), // silver
new Color(135, 206, 235), // skyblue
new Color(106, 90, 205), // slateblue
new Color(112, 128, 144), // slategray
@@ -227,15 +217,12 @@
new Color(0, 255, 127), // springgreen
new Color(70, 130, 180), // steelblue
new Color(210, 180, 140), // tan
- new Color(0, 128, 128), // teal
new Color(216, 191, 216), // thistle
new Color(255, 99, 71), // tomato
new Color(64, 224, 208), // turquoise
new Color(238, 130, 238), // violet
new Color(245, 222, 179), // wheat
- new Color(255, 255, 255), // white
new Color(245, 245, 245), // whitesmoke
- new Color(255, 255, 0), // yellow
new Color(154, 205, 50) // yellowgreen
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|