public class MetaBufferEstimator extends FilterAttributeExtractor implements StyleVisitor
Modifier and Type | Field and Description |
---|---|
protected FilterAttributeExtractor |
attributeExtractor |
protected int |
buffer |
protected boolean |
estimateAccurate |
protected static Logger |
LOGGER
The logger for the rendering module.
|
attributeNames, featureType, propertyNames, usingDynamicProperties, usingVolatileFunctions
Constructor and Description |
---|
MetaBufferEstimator()
Builds an estimator suitable for styles without expressions
|
MetaBufferEstimator(Feature sample)
Builds an estimator suitable for styles with expression, will evaluate against the provided
feature
|
Modifier and Type | Method and Description |
---|---|
protected void |
evaluateWidth(Expression width) |
int |
getBuffer() |
protected double |
getDouble(Expression ex) |
protected int |
getPositiveValue(Expression ex) |
protected boolean |
isConstant(Expression ex) |
boolean |
isEstimateAccurate() |
protected boolean |
isNull(Expression exp) |
void |
reset()
Should you reuse this extractor multiple time, calling this method will reset the buffer and
flags
|
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 map)
Called when accept is called on a raster color map
|
void |
visit(ColorMapEntry entry)
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 rs)
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.
|
clear, getAttributeNames, getAttributeNameSet, getPropertyNameSet, isConstantExpression, isUsingDynamincProperties, visit, visit
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitNullFilter
protected static final Logger LOGGER
protected FilterAttributeExtractor attributeExtractor
protected boolean estimateAccurate
protected int buffer
public MetaBufferEstimator()
public MetaBufferEstimator(Feature sample)
public void reset()
public int getBuffer()
public boolean isEstimateAccurate()
public void visit(Style style)
StyleVisitor
visit
in interface StyleVisitor
style
- The style to visitpublic void visit(Rule rule)
StyleVisitor
visit
in interface StyleVisitor
rule
- the rule to visitpublic void visit(FeatureTypeStyle fts)
StyleVisitor
visit
in interface StyleVisitor
fts
- the feature type styler to visitpublic void visit(Fill fill)
StyleVisitor
visit
in interface StyleVisitor
fill
- the fill to be visitedpublic void visit(Stroke stroke)
StyleVisitor
visit
in interface StyleVisitor
stroke
- the stroke to visitStyleVisitor.visit(org.geotools.styling.Stroke)
protected boolean isNull(Expression exp)
public void visit(Symbolizer sym)
StyleVisitor
visit
in interface StyleVisitor
sym
- the symbolizer to visitStyleVisitor.visit(org.geotools.styling.Symbolizer)
public void visit(RasterSymbolizer rs)
StyleVisitor
visit
in interface StyleVisitor
rs
- the raster symbolizer to visitpublic void visit(PointSymbolizer ps)
StyleVisitor
visit
in interface StyleVisitor
ps
- the point symbolizer to visitStyleVisitor.visit(org.geotools.styling.PointSymbolizer)
public void visit(LineSymbolizer line)
StyleVisitor
visit
in interface StyleVisitor
line
- the line symbolizer to visitStyleVisitor.visit(org.geotools.styling.LineSymbolizer)
public void visit(PolygonSymbolizer poly)
StyleVisitor
visit
in interface StyleVisitor
poly
- the polygon symbolizer to visitStyleVisitor.visit(org.geotools.styling.PolygonSymbolizer)
public void visit(TextSymbolizer text)
StyleVisitor
visit
in interface StyleVisitor
text
- the text symbolizer to visitStyleVisitor.visit(org.geotools.styling.TextSymbolizer)
public void visit(Graphic gr)
StyleVisitor
visit
in interface StyleVisitor
gr
- the graphic to visitStyleVisitor.visit(org.geotools.styling.Graphic)
protected void evaluateWidth(Expression width)
protected int getPositiveValue(Expression ex)
protected double getDouble(Expression ex)
protected boolean isConstant(Expression ex)
public void visit(Mark mark)
StyleVisitor
visit
in interface StyleVisitor
mark
- the mark to visitStyleVisitor.visit(org.geotools.styling.Mark)
public void visit(ExternalGraphic exgr)
StyleVisitor
visit
in interface StyleVisitor
exgr
- the external graphic to visitStyleVisitor.visit(org.geotools.styling.ExternalGraphic)
public void visit(PointPlacement pp)
StyleVisitor
visit
in interface StyleVisitor
pp
- the point placement to visitStyleVisitor.visit(org.geotools.styling.PointPlacement)
public void visit(AnchorPoint ap)
StyleVisitor
visit
in interface StyleVisitor
ap
- the anchor point to visitStyleVisitor.visit(org.geotools.styling.AnchorPoint)
public void visit(Displacement dis)
StyleVisitor
visit
in interface StyleVisitor
dis
- the displacement to visitStyleVisitor.visit(org.geotools.styling.Displacement)
public void visit(LinePlacement lp)
StyleVisitor
visit
in interface StyleVisitor
lp
- the line placement to visitStyleVisitor.visit(org.geotools.styling.LinePlacement)
public void visit(Halo halo)
StyleVisitor
visit
in interface StyleVisitor
halo
- the halo to visitStyleVisitor.visit(org.geotools.styling.Halo)
public void visit(StyledLayerDescriptor sld)
StyleVisitor
visit
in interface StyleVisitor
sld
- The StyledLayerDescriptor to visitpublic void visit(NamedLayer layer)
StyleVisitor
visit
in interface StyleVisitor
layer
- The NamedLayer to visitpublic void visit(UserLayer layer)
StyleVisitor
visit
in interface StyleVisitor
layer
- The UserLayer to visitpublic void visit(FeatureTypeConstraint ftc)
StyleVisitor
visit
in interface StyleVisitor
ftc
- The FeatureTypeConstraint to visitpublic void visit(ColorMap map)
StyleVisitor
visit
in interface StyleVisitor
map
- the color map to visitpublic void visit(ColorMapEntry entry)
StyleVisitor
visit
in interface StyleVisitor
entry
- the color map to visitpublic void visit(ContrastEnhancement contrastEnhancement)
StyleVisitor
visit
in interface StyleVisitor
contrastEnhancement
- the ContrastEnhancement
to visit.public void visit(ImageOutline outline)
StyleVisitor
ImageOutline
elementvisit
in interface StyleVisitor
outline
- the ImageOutline
to visit.public void visit(ChannelSelection cs)
StyleVisitor
ChannelSelection
elementvisit
in interface StyleVisitor
cs
- the ChannelSelection
to visit.public void visit(OverlapBehavior ob)
StyleVisitor
OverlapBehavior
elementvisit
in interface StyleVisitor
public void visit(SelectedChannelType sct)
StyleVisitor
SelectedChannelType
elementvisit
in interface StyleVisitor
public void visit(ShadedRelief sr)
StyleVisitor
ShadedRelief
elementvisit
in interface StyleVisitor
Copyright © 1996–2019 Geotools. All rights reserved.