public interface StyleVisitor
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.
ExpressionVisitor
,
StyleFactory
Modifier and Type | Method and Description |
---|---|
Object |
visit(AnchorPoint anchorPoint,
Object data)
Called when accept is called on a anchor point
|
Object |
visit(ChannelSelection channelSelection,
Object data)
Called when accept is called on a raster
ChannelSelection element |
Object |
visit(ColorMap colorMap,
Object data)
Called when accept is called on a raster color map
|
Object |
visit(ColorReplacement colorReplacement,
Object data)
Called when accept is called on a color replacement
|
Object |
visit(ContrastEnhancement contrastEnhancement,
Object data)
Called when accept is called on a raster ContrastEnhancement element
|
void |
visit(ContrastMethod method,
Object data) |
Object |
visit(Description description,
Object data)
Called when accept is called on a description
|
Object |
visit(Displacement displacement,
Object data)
Called when accept is called on a displacement
|
Object |
visit(ExtensionSymbolizer extension,
Object data)
Called when accept is called on a extension symbolizer
|
Object |
visit(ExternalGraphic externalGraphic,
Object data)
Called when accept is called on a external graphic
|
Object |
visit(ExternalMark externalMark,
Object data)
Called when accept is called on a external mark
|
Object |
visit(FeatureTypeStyle featureTypeStyle,
Object data)
Called when accept is called on a FetaureTypeStyle
|
Object |
visit(Fill fill,
Object data)
Called when accept is called on a fill
|
Object |
visit(Font font,
Object data)
Called when accept is called on a font
|
Object |
visit(GraphicFill graphicFill,
Object data)
Called when accept is called on a graphic fill
|
Object |
visit(GraphicLegend graphicLegend,
Object data)
Called when accept is called on a legend graphic
|
Object |
visit(Graphic graphic,
Object data)
Called when accept is called on a graphic
|
Object |
visit(GraphicStroke graphicStroke,
Object data)
Called when accept is called on a graphic stroke
|
Object |
visit(Halo halo,
Object data)
Called when accept is called on a halo
|
Object |
visit(LinePlacement linePlacement,
Object data)
Called when accept is called on a Line Placement
|
Object |
visit(LineSymbolizer lineSymbolizer,
Object data)
Called when accept is called on a linesymbolizer
|
Object |
visit(Mark mark,
Object data)
Called when accept is called on a mark
|
Object |
visit(PointPlacement pointPlacement,
Object data)
Called when accept is called on a Point Placement
|
Object |
visit(PointSymbolizer pointSymbolizer,
Object data)
Called when accept is called on a pointsymbolizer
|
Object |
visit(PolygonSymbolizer polygonSymbolizer,
Object data)
Called when accept is called on a polygon symbolizer
|
Object |
visit(RasterSymbolizer rasterSymbolizer,
Object data)
Called when accept is called on a rastersymbolizer
|
Object |
visit(Rule rule,
Object data)
Called when accept is called on a rule
|
Object |
visit(SelectedChannelType selectChannelType,
Object data)
Called when accept is called on a raster
SelectedChannelType element |
Object |
visit(ShadedRelief shadedRelief,
Object data)
Called when accept is called on a raster
ShadedRelief element |
Object |
visit(Stroke stroke,
Object data)
Called when accept is called on a stroke
|
Object |
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
|
Object visit(Style style, Object data)
style
- The style to visitObject visit(FeatureTypeStyle featureTypeStyle, Object data)
fts
- the feature type styler to visitObject visit(Rule rule, Object data)
rule
- the rule to visitObject visit(PointSymbolizer pointSymbolizer, Object data)
ps
- the point symbolizer to visitObject visit(LineSymbolizer lineSymbolizer, Object data)
line
- the line symbolizer to visitObject visit(PolygonSymbolizer polygonSymbolizer, Object data)
poly
- the polygon symbolizer to visitObject visit(TextSymbolizer textSymbolizer, Object data)
text
- the text symbolizer to visitObject visit(RasterSymbolizer rasterSymbolizer, Object data)
raster
- the raster symbolizer to visitObject visit(ExtensionSymbolizer extension, Object data)
extension
- the extension symbolizer to visitObject visit(Description description, Object data)
colorMap
- the description to visitObject visit(Displacement displacement, Object data)
disp
- the displacement to visitObject visit(Fill fill, Object data)
fill
- the fill to be visitedObject visit(Font font, Object data)
font
- the font to be visitedObject visit(Stroke stroke, Object data)
stroke
- the stroke to visitObject visit(Graphic graphic, Object data)
gr
- the graphic to visitObject visit(GraphicFill graphicFill, Object data)
gr
- the graphic fill to visitObject visit(GraphicStroke graphicStroke, Object data)
gr
- the graphic stroke to visitObject visit(Mark mark, Object data)
mark
- the mark to visitObject visit(ExternalMark externalMark, Object data)
exmk
- the external mark to visitObject visit(ExternalGraphic externalGraphic, Object data)
exgr
- the external graphic to visitObject visit(PointPlacement pointPlacement, Object data)
pp
- the point placement to visitObject visit(AnchorPoint anchorPoint, Object data)
ap
- the anchor point to visitObject visit(LinePlacement linePlacement, Object data)
lp
- the line placement to visitObject visit(GraphicLegend graphicLegend, Object data)
lp
- the legend graphic to visitObject visit(Halo halo, Object data)
halo
- the halo to visitObject visit(ColorMap colorMap, Object data)
colorMap
- the color map to visitObject visit(ColorReplacement colorReplacement, Object data)
colorMap
- the color replacement to visitObject visit(ContrastEnhancement contrastEnhancement, Object data)
contrastEnhancement
- the ContrastEnhancement
to visit.Object visit(ChannelSelection channelSelection, Object data)
ChannelSelection
elementcs
- the ChannelSelection
to visit.Object visit(SelectedChannelType selectChannelType, Object data)
SelectedChannelType
elementcs
- the SelectedChannelType
to visit.Object visit(ShadedRelief shadedRelief, Object data)
ShadedRelief
elementcs
- the ShadedRelief
to visit.void visit(ContrastMethod method, Object data)
normalize
- data
- Copyright © 1996–2019 Geotools. All rights reserved.