org.geotools.styling
Interface StyleVisitor

All Known Implementing Classes:
DuplicatorStyleVisitor, OpacityFinder, StyleAttributeExtractor, XMLEncoder

public interface StyleVisitor

An interface for classes that want to perform operations on a Style hierarchy. It forms part of a GoF Visitor Patern 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 permited under the Visitor pattern). A typical use would be to transcribe a style into a specific format, e.g. XML or SQL. Alternativly it may be to extract specific information from the Style structure, for example a list of all fills.

Version:
$Id: StyleVisitor.java 17702 2006-01-23 00:08:55Z desruisseaux $
Author:
James Macgill, Ian Turton

Method Summary
 void visit(AnchorPoint ap)
          Called when accept is called on a anchor point
 void visit(Displacement dis)
          Called when accept is called on a displacement
 void visit(ExternalGraphic exgr)
          Called when accept is called on a external graphic
 void visit(FeatureTypeConstraint ftc)
          Called when accept is called on a FeatureTypeConstraint.
 void visit(FeatureTypeStyle fts)
          Called when accept is called on a fetauretypestyle
 void visit(Fill fill)
          Called when accept is called on a fill
 void visit(Graphic gr)
          Called when accept is called on a graphic
 void visit(Halo halo)
          Called when accept is called on a halo
 void visit(LinePlacement lp)
          Called when accept is called on a Line Placement
 void visit(LineSymbolizer line)
          Called when accept is called on a linesymbolizer
 void visit(Mark mark)
          Called when accept is called on a mark
 void visit(NamedLayer layer)
          Called when accept is called on a NamedLayer.
 void visit(PointPlacement pp)
          Called when accept is called on a Point Placement
 void visit(PointSymbolizer ps)
          Called when accept is called on a pointsymbolizer
 void visit(PolygonSymbolizer poly)
          Called when accept is called on a polygon symbolizer
 void visit(RasterSymbolizer raster)
          Called when accept is called on a rastersymbolizer
 void visit(Rule rule)
          Called when accept is called on a rule
 void visit(Stroke stroke)
          Called when accept is called on a stroke
 void 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 textsymbolizer
 void visit(UserLayer layer)
          Called when accept is called on a UserLayer.
 

Method Detail

visit

public void visit(StyledLayerDescriptor sld)
Called when accept is called on a StyledLayerDescriptor.

Parameters:
sld - The StyledLayerDescriptor to visit

visit

public void visit(NamedLayer layer)
Called when accept is called on a NamedLayer.

Parameters:
layer - The NamedLayer to visit

visit

public void visit(UserLayer layer)
Called when accept is called on a UserLayer.

Parameters:
layer - The UserLayer to visit

visit

public void visit(FeatureTypeConstraint ftc)
Called when accept is called on a FeatureTypeConstraint.

Parameters:
ftc - The FeatureTypeConstraint to visit

visit

public void visit(Style style)
Called when accept is called on a Style.

Parameters:
style - The style to visit

visit

public void visit(Rule rule)
Called when accept is called on a rule

Parameters:
rule - the rule to visit

visit

public void visit(FeatureTypeStyle fts)
Called when accept is called on a fetauretypestyle

Parameters:
fts - the feature type styler to visit

visit

public void visit(Fill fill)
Called when accept is called on a fill

Parameters:
fill - the fill to be visited

visit

public void visit(Stroke stroke)
Called when accept is called on a stroke

Parameters:
stroke - the stroke to visit

visit

public 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

public void visit(PointSymbolizer ps)
Called when accept is called on a pointsymbolizer

Parameters:
ps - the point symbolizer to visit

visit

public void visit(LineSymbolizer line)
Called when accept is called on a linesymbolizer

Parameters:
line - the line symbolizer to visit

visit

public void visit(PolygonSymbolizer poly)
Called when accept is called on a polygon symbolizer

Parameters:
poly - the polygon symbolizer to visit

visit

public void visit(TextSymbolizer text)
Called when accept is called on a textsymbolizer

Parameters:
text - the text symbolizer to visit

visit

public void visit(RasterSymbolizer raster)
Called when accept is called on a rastersymbolizer

Parameters:
raster - the raster symbolizer to visit

visit

public void visit(Graphic gr)
Called when accept is called on a graphic

Parameters:
gr - the graphic to visit

visit

public void visit(Mark mark)
Called when accept is called on a mark

Parameters:
mark - the mark to visit

visit

public void visit(ExternalGraphic exgr)
Called when accept is called on a external graphic

Parameters:
exgr - the external graphic to visit

visit

public void visit(PointPlacement pp)
Called when accept is called on a Point Placement

Parameters:
pp - the point placement to visit

visit

public void visit(AnchorPoint ap)
Called when accept is called on a anchor point

Parameters:
ap - the anchor point to visit

visit

public void visit(Displacement dis)
Called when accept is called on a displacement

Parameters:
dis - the displacement to visit

visit

public void visit(LinePlacement lp)
Called when accept is called on a Line Placement

Parameters:
lp - the line placement to visit

visit

public void visit(Halo halo)
Called when accept is called on a halo

Parameters:
halo - the halo to visit


Copyright © GeoTools. All Rights Reserved.