Package org.geotools.styling.visitor
Class RenderingSelectorStyleVisitor
Object
DuplicatingStyleVisitor
RenderingSelectorStyleVisitor
- All Implemented Interfaces:
- StyleVisitor
- Direct Known Subclasses:
- LegendRenderingSelectorStyleVisitor,- MapRenderingSelectorStyleVisitor
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 SummaryFields inherited from class DuplicatingStyleVisitorcopyFilter, ff, pages, sf, STRICT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanCheck 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 rastersymbolizervoidCalled 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 textsymbolizerMethods 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
- 
Constructor Details- 
RenderingSelectorStyleVisitorpublic RenderingSelectorStyleVisitor()
 
- 
- 
Method Details- 
visitDescription 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
 
- 
visitDescription 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
 
- 
visitDescription 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
 
- 
visitDescription 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
 
- 
visitDescription 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
 
- 
visitDescription 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
 
- 
visitDescription 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
 
- 
visitDescription 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
 
- 
copy- Overrides:
- copyin class- DuplicatingStyleVisitor
 
- 
canRenderCheck 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
 
- 
canRenderInternalUsed 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.
 
 
-