X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.trend%2Fsrc%2Forg%2Fsimantics%2Ftrend%2Fconfiguration%2FTrendConstants.java;fp=bundles%2Forg.simantics.trend%2Fsrc%2Forg%2Fsimantics%2Ftrend%2Fconfiguration%2FTrendConstants.java;h=ede169534a89e7fb68926aaed7798a473d1ba28c;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=c0237b256c1cc71c80278417c606a6f627bad292;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git 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 index c0237b256..ede169534 100644 --- a/bundles/org.simantics.trend/src/org/simantics/trend/configuration/TrendConstants.java +++ b/bundles/org.simantics.trend/src/org/simantics/trend/configuration/TrendConstants.java @@ -1,40 +1,40 @@ -package org.simantics.trend.configuration; - -import java.awt.Color; - -/** - * @author Tuukka Lehtonen - */ -public class TrendConstants { - - /** - * @see #1314 - */ - public static final Color[] COLORS = { - new Color(0.00f, 0.00f, 1.00f), - new Color(0.00f, 0.50f, 0.00f), - new Color(1.00f, 0.00f, 0.00f), - new Color(0.00f, 0.75f, 0.75f), - new Color(0.75f, 0.00f, 0.75f), - new Color(0.75f, 0.75f, 0.00f), - new Color(0.25f, 0.25f, 0.25f), - new Color(0.75f, 0.25f, 0.25f), - new Color(0.95f, 0.95f, 0.00f), - new Color(0.25f, 0.25f, 0.75f), - new Color(0.75f, 0.75f, 0.75f), - new Color(0.00f, 1.00f, 0.00f), - new Color(0.76f, 0.57f, 0.17f), - new Color(0.54f, 0.63f, 0.22f), - new Color(0.34f, 0.57f, 0.92f), - new Color(1.00f, 0.10f, 0.60f), - new Color(0.88f, 0.75f, 0.73f), - new Color(0.10f, 0.49f, 0.47f), - new Color(0.66f, 0.34f, 0.65f), - new Color(0.99f, 0.41f, 0.23f), - }; - - public static final Color color(int index) { - return COLORS[index % COLORS.length]; - } - -} +package org.simantics.trend.configuration; + +import java.awt.Color; + +/** + * @author Tuukka Lehtonen + */ +public class TrendConstants { + + /** + * @see #1314 + */ + public static final Color[] COLORS = { + new Color(0.00f, 0.00f, 1.00f), + new Color(0.00f, 0.50f, 0.00f), + new Color(1.00f, 0.00f, 0.00f), + new Color(0.00f, 0.75f, 0.75f), + new Color(0.75f, 0.00f, 0.75f), + new Color(0.75f, 0.75f, 0.00f), + new Color(0.25f, 0.25f, 0.25f), + new Color(0.75f, 0.25f, 0.25f), + new Color(0.95f, 0.95f, 0.00f), + new Color(0.25f, 0.25f, 0.75f), + new Color(0.75f, 0.75f, 0.75f), + new Color(0.00f, 1.00f, 0.00f), + new Color(0.76f, 0.57f, 0.17f), + new Color(0.54f, 0.63f, 0.22f), + new Color(0.34f, 0.57f, 0.92f), + new Color(1.00f, 0.10f, 0.60f), + new Color(0.88f, 0.75f, 0.73f), + new Color(0.10f, 0.49f, 0.47f), + new Color(0.66f, 0.34f, 0.65f), + new Color(0.99f, 0.41f, 0.23f), + }; + + public static final Color color(int index) { + return COLORS[index % COLORS.length]; + } + +}