Package org.geotools.styling.visitor
Class RenderingSelectorStyleVisitor
- Object
- 
- DuplicatingStyleVisitor
- 
- RenderingSelectorStyleVisitor
 
 
- 
- All Implemented Interfaces:
- StyleVisitor
 - Direct Known Subclasses:
- LegendRenderingSelectorStyleVisitor,- MapRenderingSelectorStyleVisitor
 
 public abstract class RenderingSelectorStyleVisitor extends DuplicatingStyleVisitor This abstract class applies the include VendorOptions to a Style eg.mapOnly|legendOnly|normal The visitor provides generic methods to avoid including in the deep copy of the Style being passed to it the FeatureTypeStyle or the Rule or the Symbolizer for which the vendorOptions defined doesn't allow the rendering.
- 
- 
Field Summary- 
Fields inherited from class DuplicatingStyleVisitorcopyFilter, ff, pages, sf, STRICT
 
- 
 - 
Constructor SummaryConstructors Constructor Description RenderingSelectorStyleVisitor()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancanRender(Map<String,String> vendorOptions)Check if the vendorOptions being passed allows the element they belong to, to be included in the deep copy of the style.protected abstract booleancanRenderInternal(String value)Used by subclass to provide custom logic to check if the SLD element should be included in the copyprotected Symbolizercopy(Symbolizer symbolizer)voidvisit(FeatureTypeStyle fts)Called when accept is called on a fetauretypestylevoidvisit(LineSymbolizer line)Called when accept is called on a linesymbolizervoidvisit(PointSymbolizer ps)Called when accept is called on a pointsymbolizervoidvisit(PolygonSymbolizer poly)Called when accept is called on a polygon symbolizervoidvisit(RasterSymbolizer raster)Called when accept is called on a rastersymbolizervoidvisit(Rule rule)Called when accept is called on a rulevoidvisit(Symbolizer sym)since it is impossible to create a Symbolizer this method should generate an exception or warning.voidvisit(TextSymbolizer text)Called when accept is called on a textsymbolizer- 
Methods inherited from class DuplicatingStyleVisitorcopy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copyExpressions, copyFonts, getCopy, setStrict, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
- 
 
- 
- 
- 
Method Detail- 
visitpublic void visit(FeatureTypeStyle fts) Description copied from interface:StyleVisitorCalled when accept is called on a fetauretypestyle- Specified by:
- visitin interface- StyleVisitor
- Overrides:
- visitin class- DuplicatingStyleVisitor
- Parameters:
- fts- the feature type styler to visit
 
 - 
visitpublic void visit(Rule rule) Description copied from interface:StyleVisitorCalled when accept is called on a rule- Specified by:
- visitin interface- StyleVisitor
- Overrides:
- visitin class- DuplicatingStyleVisitor
- Parameters:
- rule- the rule to visit
 
 - 
visitpublic void visit(Symbolizer sym) Description copied from interface:StyleVisitorsince it is impossible to create a Symbolizer this method should generate an exception or warning.- Specified by:
- visitin interface- StyleVisitor
- Overrides:
- visitin class- DuplicatingStyleVisitor
- Parameters:
- sym- the symbolizer to visit
 
 - 
visitpublic void visit(PointSymbolizer ps) Description copied from interface:StyleVisitorCalled when accept is called on a pointsymbolizer- Specified by:
- visitin interface- StyleVisitor
- Overrides:
- visitin class- DuplicatingStyleVisitor
- Parameters:
- ps- the point symbolizer to visit
 
 - 
visitpublic void visit(LineSymbolizer line) Description copied from interface:StyleVisitorCalled when accept is called on a linesymbolizer- Specified by:
- visitin interface- StyleVisitor
- Overrides:
- visitin class- DuplicatingStyleVisitor
- Parameters:
- line- the line symbolizer to visit
 
 - 
visitpublic void visit(PolygonSymbolizer poly) Description copied from interface:StyleVisitorCalled when accept is called on a polygon symbolizer- Specified by:
- visitin interface- StyleVisitor
- Overrides:
- visitin class- DuplicatingStyleVisitor
- Parameters:
- poly- the polygon symbolizer to visit
 
 - 
visitpublic void visit(TextSymbolizer text) Description copied from interface:StyleVisitorCalled when accept is called on a textsymbolizer- Specified by:
- visitin interface- StyleVisitor
- Overrides:
- visitin class- DuplicatingStyleVisitor
- Parameters:
- text- the text symbolizer to visit
 
 - 
visitpublic void visit(RasterSymbolizer raster) Description copied from interface:StyleVisitorCalled when accept is called on a rastersymbolizer- Specified by:
- visitin interface- StyleVisitor
- Overrides:
- visitin class- DuplicatingStyleVisitor
- Parameters:
- raster- the raster symbolizer to visit
 
 - 
copyprotected Symbolizer copy(Symbolizer symbolizer) - Overrides:
- copyin class- DuplicatingStyleVisitor
 
 - 
canRenderprotected boolean canRender(Map<String,String> vendorOptions) Check if the vendorOptions being passed allows the element they belong to, to be included in the deep copy of the style.- Parameters:
- vendorOptions- the vendorOptions map
- Returns:
- true if the element can be included false otherwise
 
 - 
canRenderInternalprotected abstract boolean canRenderInternal(String value) Used by subclass to provide custom logic to check if the SLD element should be included in the copy- Parameters:
- value- the value of the- mapOnly|legendOnly|normal 
- Returns:
- true if the element should be included in the copy, false otherwise.
 
 
- 
 
-