]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.trend/src/org/simantics/trend/configuration/TrendConstants.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.trend / src / org / simantics / trend / configuration / TrendConstants.java
diff --git a/bundles/org.simantics.trend/src/org/simantics/trend/configuration/TrendConstants.java b/bundles/org.simantics.trend/src/org/simantics/trend/configuration/TrendConstants.java
new file mode 100644 (file)
index 0000000..c0237b2
--- /dev/null
@@ -0,0 +1,40 @@
+package org.simantics.trend.configuration;\r
+\r
+import java.awt.Color;\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ */\r
+public class TrendConstants {\r
+\r
+    /**\r
+     * @see <a href="https://www.simantics.org/redmine/issues/1314">#1314</a>\r
+     */\r
+    public static final Color[] COLORS = {\r
+        new Color(0.00f, 0.00f, 1.00f),\r
+        new Color(0.00f, 0.50f, 0.00f),\r
+        new Color(1.00f, 0.00f, 0.00f),\r
+        new Color(0.00f, 0.75f, 0.75f),\r
+        new Color(0.75f, 0.00f, 0.75f),\r
+        new Color(0.75f, 0.75f, 0.00f),\r
+        new Color(0.25f, 0.25f, 0.25f),\r
+        new Color(0.75f, 0.25f, 0.25f),\r
+        new Color(0.95f, 0.95f, 0.00f),\r
+        new Color(0.25f, 0.25f, 0.75f),\r
+        new Color(0.75f, 0.75f, 0.75f),\r
+        new Color(0.00f, 1.00f, 0.00f),\r
+        new Color(0.76f, 0.57f, 0.17f),\r
+        new Color(0.54f, 0.63f, 0.22f),\r
+        new Color(0.34f, 0.57f, 0.92f),\r
+        new Color(1.00f, 0.10f, 0.60f),\r
+        new Color(0.88f, 0.75f, 0.73f),\r
+        new Color(0.10f, 0.49f, 0.47f),\r
+        new Color(0.66f, 0.34f, 0.65f),\r
+        new Color(0.99f, 0.41f, 0.23f),\r
+    };\r
+\r
+    public static final Color color(int index) {\r
+        return COLORS[index % COLORS.length];\r
+    }\r
+\r
+}\r