org.deegree.style.se.unevaluated
Class Style
java.lang.Object
org.deegree.style.se.unevaluated.Style
public class Style
- extends Object
Style
- Version:
- $Revision: 31255 $, $Date: 2011-07-12 12:08:02 +0200 (Tue, 12 Jul 2011) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Constructor Summary |
Style()
Uses first geometry and default style. |
Style(Collection<Pair<Continuation<LinkedList<Symbolizer<?>>>,DoublePair>> rules,
Map<Symbolizer<TextStyling>,Continuation<StringBuffer>> labels,
Map<Symbolizer<TextStyling>,String> xmlTexts,
String name,
QName featureTypeName)
|
Style(Color c)
Uses first geometry and default style in specified color. |
Style(Symbolizer<?> symbolizer,
Continuation<StringBuffer> label,
String name,
String xmlText)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Style
public Style(Collection<Pair<Continuation<LinkedList<Symbolizer<?>>>,DoublePair>> rules,
Map<Symbolizer<TextStyling>,Continuation<StringBuffer>> labels,
Map<Symbolizer<TextStyling>,String> xmlTexts,
String name,
QName featureTypeName)
- Parameters:
rules
- labels
- xmlTexts
- name
- featureTypeName
-
Style
public Style(Symbolizer<?> symbolizer,
Continuation<StringBuffer> label,
String name,
String xmlText)
- Parameters:
symbolizer
- label
- name
- xmlText
-
Style
public Style()
- Uses first geometry and default style.
Style
public Style(Color c)
- Uses first geometry and default style in specified color.
filter
public Style filter(double scale)
- Parameters:
scale
-
- Returns:
- a filtered list of symbolizers
evaluate
public LinkedList<Triple<Styling,LinkedList<Geometry>,String>> evaluate(Feature f,
XPathEvaluator<Feature> evaluator)
- Parameters:
f
-
- Returns:
- a pair suitable for rendering
getRules
public LinkedList<Pair<Continuation<LinkedList<Symbolizer<?>>>,DoublePair>> getRules()
- Returns:
- the live list of rules
getName
public String getName()
- Returns:
- the name
setName
public void setName(String name)
- Parameters:
name
-
getFeatureType
public QName getFeatureType()
- Returns:
- the name of the feature type (or null if not constrained)
getBases
public ArrayList<LinkedList<Styling>> getBases()
- Returns:
- the base stylings for all symbolizers sorted by rules
getBasesWithScales
public LinkedList<Triple<LinkedList<Styling>,DoublePair,LinkedList<String>>> getBasesWithScales()
- Returns:
- the base stylings for all symbolizers sorted by rules and the corresponding scale denominators
isSimple
public boolean isSimple()
- Returns:
- true, if no filters and no expressions are used
getRuleTypes
public LinkedList<Class<?>> getRuleTypes()
- Returns:
- Polygon.class, if the IsSurface function is used, Point.class for IsPoint and LineString.class for
IsCurve
getRuleTitles
public LinkedList<String> getRuleTitles()
- Returns:
- "", if no title was set
setLegendFile
public void setLegendFile(File file)
- Parameters:
file
-
setLegendURL
public void setLegendURL(URL url)
getLegendFile
public File getLegendFile()
- Returns:
- the legend file or null, if not set
getLegendURL
public URL getLegendURL()
setPrefersGetLegendGraphicUrl
public void setPrefersGetLegendGraphicUrl(boolean prefers)
prefersGetLegendGraphicUrl
public boolean prefersGetLegendGraphicUrl()
Copyright © 2011. All Rights Reserved.