Package org.geotools.api.style
Interface StyleVisitor
-
- All Known Implementing Classes:
AbstractStyleVisitor
,ChannelSelectionUpdateStyleVisitor
,DpiRescaleStyleVisitor
,DuplicatingStyleVisitor
,GraphicsAwareDpiRescaleStyleVisitor
,LegendRenderingSelectorStyleVisitor
,MapRenderingSelectorStyleVisitor
,MetaBufferEstimator
,OpacityFinder
,RasterSymbolizerHelper
,RenderingSelectorStyleVisitor
,RescaleStyleVisitor
,StyleAttributeExtractor
,StyleAttributeExtractorTruncated
,StyleVisitorAdapter
,StyleVisitorCoverageProcessingNodeAdapter
,SubchainStyleVisitorCoverageProcessingAdapter
,UomRescaleStyleVisitor
public interface StyleVisitor
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.- Author:
- James Macgill, Ian Turton
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
visit(AnchorPoint ap)
Called when accept is called on an anchor pointvoid
visit(ChannelSelection cs)
Called when accept is called on a rasterChannelSelection
elementvoid
visit(ColorMap colorMap)
Called when accept is called on a raster color mapvoid
visit(ColorMapEntry colorMapEntry)
Called when accept is called on a raster color map entryvoid
visit(ContrastEnhancement contrastEnhancement)
Called when accept is called on a raster ContrastEnhancement elementvoid
visit(Displacement dis)
Called when accept is called on a displacementvoid
visit(ExternalGraphic exgr)
Called when accept is called on an external graphicvoid
visit(FeatureTypeConstraint ftc)
Called when accept is called on a FeatureTypeConstraint.void
visit(FeatureTypeStyle fts)
Called when accept is called on a fetauretypestylevoid
visit(Fill fill)
Called when accept is called on a fillvoid
visit(Graphic gr)
Called when accept is called on a graphicvoid
visit(Halo halo)
Called when accept is called on a halovoid
visit(ImageOutline outline)
Called when accept is called on a rasterImageOutline
elementvoid
visit(LinePlacement lp)
Called when accept is called on a Line Placementvoid
visit(LineSymbolizer line)
Called when accept is called on a linesymbolizervoid
visit(Mark mark)
Called when accept is called on a markvoid
visit(NamedLayer layer)
Called when accept is called on a NamedLayer.void
visit(OverlapBehavior ob)
Called when accept is called on a rasterOverlapBehaviorEnum
elementvoid
visit(PointPlacement pp)
Called when accept is called on a Point Placementvoid
visit(PointSymbolizer ps)
Called when accept is called on a pointsymbolizervoid
visit(PolygonSymbolizer poly)
Called when accept is called on a polygon symbolizervoid
visit(RasterSymbolizer raster)
Called when accept is called on a rastersymbolizervoid
visit(Rule rule)
Called when accept is called on a rulevoid
visit(SelectedChannelType sct)
Called when accept is called on a rasterSelectedChannelType
elementvoid
visit(ShadedRelief sr)
Called when accept is called on a rasterShadedRelief
elementvoid
visit(Stroke stroke)
Called when accept is called on a strokevoid
visit(Style style)
Called when accept is called on a Style.void
visit(StyledLayerDescriptor sld)
Called when accept is called on a StyledLayerDescriptor.void
visit(Symbolizer sym)
since it is impossible to create a Symbolizer this method should generate an exception or warning.void
visit(TextSymbolizer text)
Called when accept is called on a textsymbolizervoid
visit(UserLayer layer)
Called when accept is called on a UserLayer.
-
-
-
Method Detail
-
visit
void visit(StyledLayerDescriptor sld)
Called when accept is called on a StyledLayerDescriptor.- Parameters:
sld
- The StyledLayerDescriptor to visit
-
visit
void visit(NamedLayer layer)
Called when accept is called on a NamedLayer.- Parameters:
layer
- The NamedLayer to visit
-
visit
void visit(UserLayer layer)
Called when accept is called on a UserLayer.- Parameters:
layer
- The UserLayer to visit
-
visit
void visit(FeatureTypeConstraint ftc)
Called when accept is called on a FeatureTypeConstraint.- Parameters:
ftc
- The FeatureTypeConstraint to visit
-
visit
void visit(Style style)
Called when accept is called on a Style.- Parameters:
style
- The style to visit
-
visit
void visit(Rule rule)
Called when accept is called on a rule- Parameters:
rule
- the rule to visit
-
visit
void visit(FeatureTypeStyle fts)
Called when accept is called on a fetauretypestyle- Parameters:
fts
- the feature type styler to visit
-
visit
void visit(Fill fill)
Called when accept is called on a fill- Parameters:
fill
- the fill to be visited
-
visit
void visit(Stroke stroke)
Called when accept is called on a stroke- Parameters:
stroke
- the stroke to visit
-
visit
void visit(Symbolizer sym)
since it is impossible to create a Symbolizer this method should generate an exception or warning.- Parameters:
sym
- the symbolizer to visit
-
visit
void visit(PointSymbolizer ps)
Called when accept is called on a pointsymbolizer- Parameters:
ps
- the point symbolizer to visit
-
visit
void visit(LineSymbolizer line)
Called when accept is called on a linesymbolizer- Parameters:
line
- the line symbolizer to visit
-
visit
void visit(PolygonSymbolizer poly)
Called when accept is called on a polygon symbolizer- Parameters:
poly
- the polygon symbolizer to visit
-
visit
void visit(TextSymbolizer text)
Called when accept is called on a textsymbolizer- Parameters:
text
- the text symbolizer to visit
-
visit
void visit(RasterSymbolizer raster)
Called when accept is called on a rastersymbolizer- Parameters:
raster
- the raster symbolizer to visit
-
visit
void visit(Graphic gr)
Called when accept is called on a graphic- Parameters:
gr
- the graphic to visit
-
visit
void visit(Mark mark)
Called when accept is called on a mark- Parameters:
mark
- the mark to visit
-
visit
void visit(ExternalGraphic exgr)
Called when accept is called on an external graphic- Parameters:
exgr
- the external graphic to visit
-
visit
void visit(PointPlacement pp)
Called when accept is called on a Point Placement- Parameters:
pp
- the point placement to visit
-
visit
void visit(AnchorPoint ap)
Called when accept is called on an anchor point- Parameters:
ap
- the anchor point to visit
-
visit
void visit(Displacement dis)
Called when accept is called on a displacement- Parameters:
dis
- the displacement to visit
-
visit
void visit(LinePlacement lp)
Called when accept is called on a Line Placement- Parameters:
lp
- the line placement to visit
-
visit
void visit(Halo halo)
Called when accept is called on a halo- Parameters:
halo
- the halo to visit
-
visit
void visit(ColorMap colorMap)
Called when accept is called on a raster color map- Parameters:
colorMap
- the color map to visit
-
visit
void visit(ColorMapEntry colorMapEntry)
Called when accept is called on a raster color map entry- Parameters:
colorMapEntry
- the color map to visit
-
visit
void visit(ContrastEnhancement contrastEnhancement)
Called when accept is called on a raster ContrastEnhancement element- Parameters:
contrastEnhancement
- theContrastEnhancement
to visit.
-
visit
void visit(ImageOutline outline)
Called when accept is called on a rasterImageOutline
element- Parameters:
outline
- theImageOutline
to visit.
-
visit
void visit(ChannelSelection cs)
Called when accept is called on a rasterChannelSelection
element- Parameters:
cs
- theChannelSelection
to visit.
-
visit
void visit(OverlapBehavior ob)
Called when accept is called on a rasterOverlapBehaviorEnum
element- Parameters:
ob
- theOverlapBehaviorEnum
to visit.
-
visit
void visit(SelectedChannelType sct)
Called when accept is called on a rasterSelectedChannelType
element- Parameters:
sct
- theSelectedChannelType
to visit.
-
visit
void visit(ShadedRelief sr)
Called when accept is called on a rasterShadedRelief
element- Parameters:
sr
- theShadedRelief
to visit.
-
-