org.geotools.renderer.lite
Class LiteFeatureTypeStyle
Object
LiteFeatureTypeStyle
public final class LiteFeatureTypeStyle
- extends Object
This is a simple class that contains the information needed to render a layer.
Basically, for a SLD, you create one of these for each of the FeatureTypeStyles inside it.
LiteRenderer uses this to do the actual renderering.
It contains: a. a BufferedImage so lite knows where to do the drawing b. a list of rules (minimal
# -- ie. remove the ones that dont apply to this scale) c. "else" rule list
To process this, you would a) foreach FEATURE b) foreach LiteFeatureTypeStyle c) d) combine the images
This was setup so you can "parallelize" literenderer in the simple way -- only read data once.
The old implementation would re-read the data for each one FeatureTypeStyle.
NOTE: a) the SLD spec says that each FeatureTypeStyle is rendered in order & independently b) If
you have a request like LAYERS=a,a&STYLES=a_style1,a_styel2 then you could optimize to something
like this (!!)
NOTE: a) this also sets up the image -- clears it et al.
- Author:
- dblasby
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myImage
public BufferedImage myImage
ruleList
public Rule[] ruleList
elseRules
public Rule[] elseRules
graphics
public Graphics2D graphics
transformation
public Expression transformation
LiteFeatureTypeStyle
public LiteFeatureTypeStyle(BufferedImage image,
AffineTransform at,
List ruleList,
List elseRule,
RenderingHints hints,
Expression transformation)
LiteFeatureTypeStyle
public LiteFeatureTypeStyle(Graphics2D graphics,
List ruleList,
List elseRuleList,
Expression transformation)
- use this for only the 1st FTS. We dont actually create an image for it -- we just use the
graphics. WATCH OUT FOR THIS. NOTE: image=null in this case
- Parameters:
graphics
- ruleList
- elseRuleList
-
Copyright © 1996-2014 Geotools. All Rights Reserved.