A Symbolizer for label background. You can create a Halo from a Fill and radius:
 def halo = new Halo(new Fill("navy"), 2.5)
 
 Or with named parameters:
 
 def halo = new Halo(fill: new Fill("navy"), radius: 2.5)
  | Fields inherited from class | Fields | 
|---|---|
class Symbolizer | 
                            filterFactory, styleBuilder, styleFactory, styleOptions | 
                        
| Type | Name and description | 
|---|---|
private Fill  | 
                            fillThe Fill  | 
                        
private Expression  | 
                            radiusThe radius  | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            protected void | 
                            apply(Symbolizer sym)Apply this Symbolizer to the GeoTools Symbolizer 
  | 
                        
 | 
                            protected void | 
                            prepare(Rule rule)Prepare the GeoTools Rule by applying this Symbolizer 
  | 
                        
 | 
                            void | 
                            setRadius(java.lang.Object radius)Set the radius 
  | 
                        
 | 
                            java.lang.String | 
                            toString()The string representation 
  | 
                        
| Methods inherited from class | Name | 
|---|---|
class Symbolizer | 
                            and, apply, asSLD, asSLD, buildString, composite, createGeoToolsSymbolizer, getDefault, getDefault, getGeoToolsSymbolizers, getGtStyle, getSld, plus, prepare, prepare, range, range, sortBy, sortBy, where, zindex | 
                        
The Fill
The radius
Create a new Halo with named parameters.
 def halo = new Halo(fill: new Fill("navy"), radius: 2.5)
  map -  A Map of named parameters.Create a new Halo with a Fill and radius.
 def halo = new Halo(new Fill("navy"), 2.5)
  fill -  The Fillradius -  The radiusApply this Symbolizer to the GeoTools Symbolizer
sym -  The GeoTools SymbolizerPrepare the GeoTools Rule by applying this Symbolizer
rule -  The GeoTools RuleSet the radius
radius -  The radiusThe string representation
Groovy Documentation