|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
modules/library/api (gt-api.jar)
Method Summary | |
---|---|
void |
visit(AnchorPoint ap)
Called when accept is called on a anchor point |
void |
visit(ChannelSelection cs)
Called when accept is called on a raster ChannelSelection element |
void |
visit(ColorMap colorMap)
Called when accept is called on a raster color map |
void |
visit(ColorMapEntry colorMapEntry)
Called when accept is called on a raster color map entry |
void |
visit(ContrastEnhancement contrastEnhancement)
Called when accept is called on a raster ContrastEnhancement element |
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(ImageOutline outline)
Called when accept is called on a raster ImageOutline element |
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(OverlapBehavior ob)
Called when accept is called on a raster OverlapBehavior element |
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(SelectedChannelType sct)
Called when accept is called on a raster SelectedChannelType element |
void |
visit(ShadedRelief sr)
Called when accept is called on a raster ShadedRelief element |
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 |
---|
void visit(StyledLayerDescriptor sld)
sld
- The StyledLayerDescriptor to visitvoid visit(NamedLayer layer)
layer
- The NamedLayer to visitvoid visit(UserLayer layer)
layer
- The UserLayer to visitvoid visit(FeatureTypeConstraint ftc)
ftc
- The FeatureTypeConstraint to visitvoid visit(Style style)
style
- The style to visitvoid visit(Rule rule)
rule
- the rule to visitvoid visit(FeatureTypeStyle fts)
fts
- the feature type styler to visitvoid visit(Fill fill)
fill
- the fill to be visitedvoid visit(Stroke stroke)
stroke
- the stroke to visitvoid visit(Symbolizer sym)
sym
- the symbolizer to visitvoid visit(PointSymbolizer ps)
ps
- the point symbolizer to visitvoid visit(LineSymbolizer line)
line
- the line symbolizer to visitvoid visit(PolygonSymbolizer poly)
poly
- the polygon symbolizer to visitvoid visit(TextSymbolizer text)
text
- the text symbolizer to visitvoid visit(RasterSymbolizer raster)
raster
- the raster symbolizer to visitvoid visit(Graphic gr)
gr
- the graphic to visitvoid visit(Mark mark)
mark
- the mark to visitvoid visit(ExternalGraphic exgr)
exgr
- the external graphic to visitvoid visit(PointPlacement pp)
pp
- the point placement to visitvoid visit(AnchorPoint ap)
ap
- the anchor point to visitvoid visit(Displacement dis)
dis
- the displacement to visitvoid visit(LinePlacement lp)
lp
- the line placement to visitvoid visit(Halo halo)
halo
- the halo to visitvoid visit(ColorMap colorMap)
colorMap
- the color map to visitvoid visit(ColorMapEntry colorMapEntry)
colorMapEntry
- the color map to visitvoid visit(ContrastEnhancement contrastEnhancement)
contrastEnhancement
- the ContrastEnhancement
to visit.void visit(ImageOutline outline)
ImageOutline
element
outline
- the ImageOutline
to visit.void visit(ChannelSelection cs)
ChannelSelection
element
cs
- the ChannelSelection
to visit.void visit(OverlapBehavior ob)
OverlapBehavior
element
cs
- the OverlapBehavior
to visit.void visit(SelectedChannelType sct)
SelectedChannelType
element
cs
- the SelectedChannelType
to visit.void visit(ShadedRelief sr)
ShadedRelief
element
cs
- the ShadedRelief
to visit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |