Package org.geotools.api.style
Interface TraversingStyleVisitor
-
public interface TraversingStyleVisitor
An interface for classes that want to perform operations on a Style hierarchy. It forms part of a GoF Visitor Pattern implementation.A call to style.accept(StyleVisitor) will result in a call to one of the methods in this interface. The responsibility for traversing sub filters is intended to lie with the visitor (this is unusual, but permitted under the Visitor pattern).
A typical use would be to transcribe a style into a specific format, e.g. XML or SQL. Alternatively it may be to extract specific information from the Style structure, for example a list of all fills. Finally a a style visitor is often used (in conjunction with a factory) in the production of a copy; or slightly modified copy of the original style.
It is common practice for a StyleVisitor to also implement an ExpressionVisitor in order to traverse both data structures.
- Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, James Macgill, Ian Turton, Johann Sorel (Geomatys)
- See Also:
ExpressionVisitor
,StyleFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
visit(AnchorPoint anchorPoint, Object data)
Called when accept is called on a anchor pointObject
visit(ChannelSelection channelSelection, Object data)
Called when accept is called on a rasterChannelSelection
elementObject
visit(ColorMap colorMap, Object data)
Called when accept is called on a raster color mapObject
visit(ColorReplacement colorReplacement, Object data)
Called when accept is called on a color replacementObject
visit(ContrastEnhancement contrastEnhancement, Object data)
Called when accept is called on a raster ContrastEnhancement elementvoid
visit(ContrastMethod method, Object data)
Called when accept is called on a rasterContrastMethod
elementObject
visit(Description description, Object data)
Called when accept is called on a descriptionObject
visit(Displacement displacement, Object data)
Called when accept is called on a displacementObject
visit(ExtensionSymbolizer extension, Object data)
Called when accept is called on a extension symbolizerObject
visit(ExternalGraphic externalGraphic, Object data)
Called when accept is called on a external graphicObject
visit(ExternalMark externalMark, Object data)
Called when accept is called on a external markObject
visit(FeatureTypeStyle featureTypeStyle, Object data)
Called when accept is called on a FetaureTypeStyleObject
visit(Fill fill, Object data)
Called when accept is called on a fillObject
visit(Font font, Object data)
Called when accept is called on a fontObject
visit(GraphicFill graphicFill, Object data)
Called when accept is called on a graphic fillObject
visit(GraphicLegend graphicLegend, Object data)
Called when accept is called on a legend graphicObject
visit(Graphic graphic, Object data)
Called when accept is called on a graphicObject
visit(GraphicStroke graphicStroke, Object data)
Called when accept is called on a graphic strokeObject
visit(Halo halo, Object data)
Called when accept is called on a haloObject
visit(LinePlacement linePlacement, Object data)
Called when accept is called on a Line PlacementObject
visit(LineSymbolizer lineSymbolizer, Object data)
Called when accept is called on a linesymbolizerObject
visit(Mark mark, Object data)
Called when accept is called on a markObject
visit(PointPlacement pointPlacement, Object data)
Called when accept is called on a Point PlacementObject
visit(PointSymbolizer pointSymbolizer, Object data)
Called when accept is called on a pointsymbolizerObject
visit(PolygonSymbolizer polygonSymbolizer, Object data)
Called when accept is called on a polygon symbolizerObject
visit(RasterSymbolizer rasterSymbolizer, Object data)
Called when accept is called on a rastersymbolizerObject
visit(Rule rule, Object data)
Called when accept is called on a ruleObject
visit(SelectedChannelType selectChannelType, Object data)
Called when accept is called on a rasterSelectedChannelType
elementObject
visit(ShadedRelief shadedRelief, Object data)
Called when accept is called on a rasterShadedRelief
elementObject
visit(Stroke stroke, Object data)
Called when accept is called on a strokeObject
visit(Style style, Object data)
Called when accept is called on a Style.Object
visit(TextSymbolizer textSymbolizer, Object data)
Called when accept is called on a textsymbolizer
-
-
-
Method Detail
-
visit
Object visit(Style style, Object data)
Called when accept is called on a Style.- Parameters:
style
- The style to visit
-
visit
Object visit(FeatureTypeStyle featureTypeStyle, Object data)
Called when accept is called on a FetaureTypeStyle- Parameters:
featureTypeStyle
- the feature type styler to visit
-
visit
Object visit(Rule rule, Object data)
Called when accept is called on a rule- Parameters:
rule
- the rule to visit
-
visit
Object visit(PointSymbolizer pointSymbolizer, Object data)
Called when accept is called on a pointsymbolizer- Parameters:
pointSymbolizer
- the point symbolizer to visit
-
visit
Object visit(LineSymbolizer lineSymbolizer, Object data)
Called when accept is called on a linesymbolizer- Parameters:
lineSymbolizer
- the line symbolizer to visit
-
visit
Object visit(PolygonSymbolizer polygonSymbolizer, Object data)
Called when accept is called on a polygon symbolizer- Parameters:
polygonSymbolizer
- the polygon symbolizer to visit
-
visit
Object visit(TextSymbolizer textSymbolizer, Object data)
Called when accept is called on a textsymbolizer- Parameters:
textSymbolizer
- the text symbolizer to visit
-
visit
Object visit(RasterSymbolizer rasterSymbolizer, Object data)
Called when accept is called on a rastersymbolizer- Parameters:
rasterSymbolizer
- the raster symbolizer to visit
-
visit
Object visit(ExtensionSymbolizer extension, Object data)
Called when accept is called on a extension symbolizer- Parameters:
extension
- the extension symbolizer to visit
-
visit
Object visit(Description description, Object data)
Called when accept is called on a description- Parameters:
description
- the description to visit
-
visit
Object visit(Displacement displacement, Object data)
Called when accept is called on a displacement- Parameters:
displacement
- the displacement to visit
-
visit
Object visit(Fill fill, Object data)
Called when accept is called on a fill- Parameters:
fill
- the fill to be visited
-
visit
Object visit(Font font, Object data)
Called when accept is called on a font- Parameters:
font
- the font to be visited
-
visit
Object visit(Stroke stroke, Object data)
Called when accept is called on a stroke- Parameters:
stroke
- the stroke to visit
-
visit
Object visit(Graphic graphic, Object data)
Called when accept is called on a graphic- Parameters:
graphic
- the graphic to visit
-
visit
Object visit(GraphicFill graphicFill, Object data)
Called when accept is called on a graphic fill- Parameters:
graphicFill
- the graphic fill to visit
-
visit
Object visit(GraphicStroke graphicStroke, Object data)
Called when accept is called on a graphic stroke- Parameters:
graphicStroke
- the graphic stroke to visit
-
visit
Object visit(Mark mark, Object data)
Called when accept is called on a mark- Parameters:
mark
- the mark to visit
-
visit
Object visit(ExternalMark externalMark, Object data)
Called when accept is called on a external mark- Parameters:
externalMark
- the external mark to visit
-
visit
Object visit(ExternalGraphic externalGraphic, Object data)
Called when accept is called on a external graphic- Parameters:
externalGraphic
- the external graphic to visit
-
visit
Object visit(PointPlacement pointPlacement, Object data)
Called when accept is called on a Point Placement- Parameters:
pointPlacement
- the point placement to visit
-
visit
Object visit(AnchorPoint anchorPoint, Object data)
Called when accept is called on a anchor point- Parameters:
anchorPoint
- the anchor point to visit
-
visit
Object visit(LinePlacement linePlacement, Object data)
Called when accept is called on a Line Placement- Parameters:
linePlacement
- the line placement to visit
-
visit
Object visit(GraphicLegend graphicLegend, Object data)
Called when accept is called on a legend graphic- Parameters:
graphicLegend
- the legend graphic to visit
-
visit
Object visit(Halo halo, Object data)
Called when accept is called on a halo- Parameters:
halo
- the halo to visit
-
visit
Object visit(ColorMap colorMap, Object data)
Called when accept is called on a raster color map- Parameters:
colorMap
- the color map to visit
-
visit
Object visit(ColorReplacement colorReplacement, Object data)
Called when accept is called on a color replacement- Parameters:
colorReplacement
- the color replacement to visit
-
visit
Object visit(ContrastEnhancement contrastEnhancement, Object data)
Called when accept is called on a raster ContrastEnhancement element- Parameters:
contrastEnhancement
- theContrastEnhancement
to visit.
-
visit
Object visit(ChannelSelection channelSelection, Object data)
Called when accept is called on a rasterChannelSelection
element- Parameters:
channelSelection
- theChannelSelection
to visit.
-
visit
Object visit(SelectedChannelType selectChannelType, Object data)
Called when accept is called on a rasterSelectedChannelType
element- Parameters:
selectChannelType
- theSelectedChannelType
to visit.
-
visit
Object visit(ShadedRelief shadedRelief, Object data)
Called when accept is called on a rasterShadedRelief
element- Parameters:
shadedRelief
- theShadedRelief
to visit.
-
visit
void visit(ContrastMethod method, Object data)
Called when accept is called on a rasterContrastMethod
element- Parameters:
method
- theContrastMethod
to visit
-
-