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