11package geoscript.style
22
33import geoscript.feature.Feature
4- import geoscript.filter.Color
4+ import geoscript.filter.Color as FColor
55import geoscript.filter.Filter
66import geoscript.layer.Cursor
77import geoscript.layer.Layer
@@ -24,7 +24,7 @@ class UniqueValues extends Composite {
2424 * @param field The Field or the Field's name
2525 * @param colors A Closure (which takes index based on 0 and a value), a Palette name, or a List of Colors
2626 */
27- UniqueValues (Layer layer , def field , def colors = {index , value -> Color . getRandomPastel()}) {
27+ UniqueValues (Layer layer , def field , def colors = {index , value -> FColor . getRandomPastel()}) {
2828 super (createSymbolizers(layer, field instanceof Field ? field. name : field as String , colors))
2929 }
3030
@@ -35,7 +35,7 @@ class UniqueValues extends Composite {
3535 * @param colors A Closure (which takes index based on 0 and a value), a Palette name, or a List of Colors
3636 * @return A Symbolizer
3737 */
38- private static List createSymbolizers (Layer layer , String field , def colors = {index , value -> Color . getRandomPastel()}) {
38+ private static List createSymbolizers (Layer layer , String field , def colors = {index , value -> FColor . getRandomPastel()}) {
3939
4040 // Collect the unique values
4141 Set uniqueValueSet = new HashSet ()
@@ -53,7 +53,7 @@ class UniqueValues extends Composite {
5353 // If the colors argument is a String treat it
5454 // like a Palette
5555 if (colors instanceof String ) {
56- colors = Color . getPaletteColors(colors)
56+ colors = FColor . getPaletteColors(colors)
5757 }
5858
5959 // Create the list of Rules
@@ -77,7 +77,7 @@ class UniqueValues extends Composite {
7777
7878 // Make sure color is a java.awt.Color
7979 if (color instanceof String ) {
80- color = new Color (color)
80+ color = new FColor (color)
8181 }
8282
8383 // Increment our counter
0 commit comments