org.geotools.styling
Class StyleAttributeExtractor

java.lang.Object
  extended byorg.geotools.filter.FilterAttributeExtractor
      extended byorg.geotools.styling.StyleAttributeExtractor
All Implemented Interfaces:
FilterVisitor, StyleVisitor

public class StyleAttributeExtractor
extends FilterAttributeExtractor
implements StyleVisitor

A simple visitor whose purpose is to extract the set of attributes used by a Style, that is, those that the Style expects to find in order to work properly

Author:
wolf

Field Summary
 
Fields inherited from class org.geotools.filter.FilterAttributeExtractor
attributeNames
 
Constructor Summary
StyleAttributeExtractor()
           
 
Method Summary
 boolean getDefaultGeometryUsed()
          reads the read-only-property.
 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 rs)
          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.
 
Methods inherited from class org.geotools.filter.FilterAttributeExtractor
clear, getAttributeNames, getAttributeNameSet, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleAttributeExtractor

public StyleAttributeExtractor()
Method Detail

getDefaultGeometryUsed

public boolean getDefaultGeometryUsed()
reads the read-only-property. See GEOS-469

Returns:
true if any of the symbolizers visted use the default geometry.

visit

public void visit(Style style)
Description copied from interface: StyleVisitor
Called when accept is called on a Style.

Specified by:
visit in interface StyleVisitor
Parameters:
style - The style to visit
See Also:
StyleVisitor.visit(org.geotools.styling.Style)

visit

public void visit(Rule rule)
Description copied from interface: StyleVisitor
Called when accept is called on a rule

Specified by:
visit in interface StyleVisitor
Parameters:
rule - the rule to visit
See Also:
StyleVisitor.visit(org.geotools.styling.Rule)

visit

public void visit(FeatureTypeStyle fts)
Description copied from interface: StyleVisitor
Called when accept is called on a fetauretypestyle

Specified by:
visit in interface StyleVisitor
Parameters:
fts - the feature type styler to visit
See Also:
StyleVisitor.visit(org.geotools.styling.FeatureTypeStyle)

visit

public void visit(Fill fill)
Description copied from interface: StyleVisitor
Called when accept is called on a fill

Specified by:
visit in interface StyleVisitor
Parameters:
fill - the fill to be visited
See Also:
StyleVisitor.visit(org.geotools.styling.Fill)

visit

public void visit(Stroke stroke)
Description copied from interface: StyleVisitor
Called when accept is called on a stroke

Specified by:
visit in interface StyleVisitor
Parameters:
stroke - the stroke to visit
See Also:
StyleVisitor.visit(org.geotools.styling.Stroke)

visit

public void visit(Symbolizer sym)
Description copied from interface: StyleVisitor
since it is impossible to create a Symbolizer this method should generate an exception or warning.

Specified by:
visit in interface StyleVisitor
Parameters:
sym - the symbolizer to visit
See Also:
StyleVisitor.visit(org.geotools.styling.Symbolizer)

visit

public void visit(RasterSymbolizer rs)
Description copied from interface: StyleVisitor
Called when accept is called on a rastersymbolizer

Specified by:
visit in interface StyleVisitor
Parameters:
rs - the raster symbolizer to visit

visit

public void visit(PointSymbolizer ps)
Description copied from interface: StyleVisitor
Called when accept is called on a pointsymbolizer

Specified by:
visit in interface StyleVisitor
Parameters:
ps - the point symbolizer to visit
See Also:
StyleVisitor.visit(org.geotools.styling.PointSymbolizer)

visit

public void visit(LineSymbolizer line)
Description copied from interface: StyleVisitor
Called when accept is called on a linesymbolizer

Specified by:
visit in interface StyleVisitor
Parameters:
line - the line symbolizer to visit
See Also:
StyleVisitor.visit(org.geotools.styling.LineSymbolizer)

visit

public void visit(PolygonSymbolizer poly)
Description copied from interface: StyleVisitor
Called when accept is called on a polygon symbolizer

Specified by:
visit in interface StyleVisitor
Parameters:
poly - the polygon symbolizer to visit
See Also:
StyleVisitor.visit(org.geotools.styling.PolygonSymbolizer)

visit

public void visit(TextSymbolizer text)
Description copied from interface: StyleVisitor
Called when accept is called on a textsymbolizer

Specified by:
visit in interface StyleVisitor
Parameters:
text - the text symbolizer to visit
See Also:
StyleVisitor.visit(org.geotools.styling.TextSymbolizer)

visit

public void visit(Graphic gr)
Description copied from interface: StyleVisitor
Called when accept is called on a graphic

Specified by:
visit in interface StyleVisitor
Parameters:
gr - the graphic to visit
See Also:
StyleVisitor.visit(org.geotools.styling.Graphic)

visit

public void visit(Mark mark)
Description copied from interface: StyleVisitor
Called when accept is called on a mark

Specified by:
visit in interface StyleVisitor
Parameters:
mark - the mark to visit
See Also:
StyleVisitor.visit(org.geotools.styling.Mark)

visit

public void visit(ExternalGraphic exgr)
Description copied from interface: StyleVisitor
Called when accept is called on a external graphic

Specified by:
visit in interface StyleVisitor
Parameters:
exgr - the external graphic to visit
See Also:
StyleVisitor.visit(org.geotools.styling.ExternalGraphic)

visit

public void visit(PointPlacement pp)
Description copied from interface: StyleVisitor
Called when accept is called on a Point Placement

Specified by:
visit in interface StyleVisitor
Parameters:
pp - the point placement to visit
See Also:
StyleVisitor.visit(org.geotools.styling.PointPlacement)

visit

public void visit(AnchorPoint ap)
Description copied from interface: StyleVisitor
Called when accept is called on a anchor point

Specified by:
visit in interface StyleVisitor
Parameters:
ap - the anchor point to visit
See Also:
StyleVisitor.visit(org.geotools.styling.AnchorPoint)

visit

public void visit(Displacement dis)
Description copied from interface: StyleVisitor
Called when accept is called on a displacement

Specified by:
visit in interface StyleVisitor
Parameters:
dis - the displacement to visit
See Also:
StyleVisitor.visit(org.geotools.styling.Displacement)

visit

public void visit(LinePlacement lp)
Description copied from interface: StyleVisitor
Called when accept is called on a Line Placement

Specified by:
visit in interface StyleVisitor
Parameters:
lp - the line placement to visit
See Also:
StyleVisitor.visit(org.geotools.styling.LinePlacement)

visit

public void visit(Halo halo)
Description copied from interface: StyleVisitor
Called when accept is called on a halo

Specified by:
visit in interface StyleVisitor
Parameters:
halo - the halo to visit
See Also:
StyleVisitor.visit(org.geotools.styling.Halo)

visit

public void visit(StyledLayerDescriptor sld)
Description copied from interface: StyleVisitor
Called when accept is called on a StyledLayerDescriptor.

Specified by:
visit in interface StyleVisitor
Parameters:
sld - The StyledLayerDescriptor to visit

visit

public void visit(NamedLayer layer)
Description copied from interface: StyleVisitor
Called when accept is called on a NamedLayer.

Specified by:
visit in interface StyleVisitor
Parameters:
layer - The NamedLayer to visit

visit

public void visit(UserLayer layer)
Description copied from interface: StyleVisitor
Called when accept is called on a UserLayer.

Specified by:
visit in interface StyleVisitor
Parameters:
layer - The UserLayer to visit

visit

public void visit(FeatureTypeConstraint ftc)
Description copied from interface: StyleVisitor
Called when accept is called on a FeatureTypeConstraint.

Specified by:
visit in interface StyleVisitor
Parameters:
ftc - The FeatureTypeConstraint to visit


Copyright © GeoTools. All Rights Reserved.