]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 package org.simantics.trend.configuration;\r
2 \r
3 import java.awt.Color;\r
4 \r
5 /**\r
6  * @author Tuukka Lehtonen\r
7  */\r
8 public class TrendConstants {\r
9 \r
10     /**\r
11      * @see <a href="https://www.simantics.org/redmine/issues/1314">#1314</a>\r
12      */\r
13     public static final Color[] COLORS = {\r
14         new Color(0.00f, 0.00f, 1.00f),\r
15         new Color(0.00f, 0.50f, 0.00f),\r
16         new Color(1.00f, 0.00f, 0.00f),\r
17         new Color(0.00f, 0.75f, 0.75f),\r
18         new Color(0.75f, 0.00f, 0.75f),\r
19         new Color(0.75f, 0.75f, 0.00f),\r
20         new Color(0.25f, 0.25f, 0.25f),\r
21         new Color(0.75f, 0.25f, 0.25f),\r
22         new Color(0.95f, 0.95f, 0.00f),\r
23         new Color(0.25f, 0.25f, 0.75f),\r
24         new Color(0.75f, 0.75f, 0.75f),\r
25         new Color(0.00f, 1.00f, 0.00f),\r
26         new Color(0.76f, 0.57f, 0.17f),\r
27         new Color(0.54f, 0.63f, 0.22f),\r
28         new Color(0.34f, 0.57f, 0.92f),\r
29         new Color(1.00f, 0.10f, 0.60f),\r
30         new Color(0.88f, 0.75f, 0.73f),\r
31         new Color(0.10f, 0.49f, 0.47f),\r
32         new Color(0.66f, 0.34f, 0.65f),\r
33         new Color(0.99f, 0.41f, 0.23f),\r
34     };\r
35 \r
36     public static final Color color(int index) {\r
37         return COLORS[index % COLORS.length];\r
38     }\r
39 \r
40 }\r