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=c0237b256c1cc71c80278417c606a6f627bad292;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;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 new file mode 100644 index 000000000..c0237b256 --- /dev/null +++ b/bundles/org.simantics.trend/src/org/simantics/trend/configuration/TrendConstants.java @@ -0,0 +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]; + } + +}