/** * Utility to call apply properties to a list of ColorMap-s This will return the ones that * actually have a pattern. This way the properties dialog for the symbol can prune out the ones * that the user removed. * * @param mappings List of ColorMap-s * @return The list of ColorMaps-s that actually have a pattern. */ public static List applyProperties(List mappings) { List goodMappings = new ArrayList(); for (int i = 0; i < mappings.size(); i++) { ColorMap colorMap = (ColorMap) mappings.get(i); colorMap.applyProperties(); if (colorMap.hasPattern()) { goodMappings.add(colorMap); } } return goodMappings; }