+ int[][] minC = new int[visibleFeatures.size()][3],
+ maxC = new int[visibleFeatures.size()][3];
+ Map<String, FeatureColourI> fcs = ourFr.getDisplayedFeatureCols();
+ int p = 0;
+ for (String s : visibleFeatures)
+ {
+ FeatureColourI color = fcs.get(s);
+ if (color.isSimpleColour())
+ {
+ minC[p] = new int[] { 133, 133, 133 };
+ maxC[p] = new int[] { color.getColour().getRed(),
+ color.getColour().getGreen(), color.getColour().getBlue() };
+ }
+ else
+ {
+ Color min = color.getMinColour(), max = color.getMaxColour();
+ minC[p] = new int[] { min.getRed(), min.getGreen(), min.getBlue() };
+ maxC[p] = new int[] { max.getRed(), max.getGreen(), max.getBlue() };
+ }
+ p++;
+ }
+ minColours = minC;
+ maxColours = maxC;