class UniqueValues extends Composite
The UniqueValues Composite creates a Symbolizer for each unique value from a Layer's Field.
Layer layer = new Shapefile(file) UniqueValues sym = new UniqueValues(layer, "STATE_ABBR", "Greens")
| Fields inherited from class | Fields |
|---|---|
class Symbolizer |
filterFactory, styleBuilder, styleFactory, styleOptions |
| Constructor and description |
|---|
UniqueValues
(Layer layer, java.lang.Object field, java.lang.Object colors)Create a new UniqueValues Composite |
| Methods inherited from class | Name |
|---|---|
class Composite |
range, toString, where, zindex |
class Symbolizer |
and, apply, asSLD, asSLD, buildString, composite, createGeoToolsSymbolizer, getDefault, getDefault, getGeoToolsSymbolizers, getGtStyle, getSld, plus, prepare, prepare, range, range, sortBy, sortBy, where, zindex |
Create a new UniqueValues Composite
layer - The Layerfield - The Field or the Field's namecolors - A Closure (which takes index based on 0 and a value), a Palette name, or a List of Colors