org.opengis.sld
Interface Rule
-
@XmlElement(value="Rule") public interface Rule
A rule consists of two important parts: a filter and a list of symbols. When it is time to draw a given feature, the rendering engine examines each rule in the FeatureStyle, first checking its Filter (or ElseFilter). If the Filter passes, then every Symbol for that rule is applied to the given feature.- Since:
- GeoAPI 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description InternationalStringgetAbstract()Returns a human readable, prose description of this rule.FiltergetFilter()Returns the filter that will limit the features for which thisRulewill fire.GraphicgetLegendGraphic()Returns a small Graphic that could be used by the rendering engine to draw a legend window.doublegetMaxScaleDenominator()Returns the maximum value (exclusive) in the denominator of the current map scale at which thisRulewill fire.doublegetMinScaleDenominator()Returns the minimum value (inclusive) in the denominator of the current map scale at which thisRulewill fire.java.lang.StringgetName()Returns a name for this rule.java.util.List<Symbol>getSymbols()This method returns a pointer to the "live" list of Symbol objects contained by thisRule.InternationalStringgetTitle()Returns the human readable title of this rule.booleanisElseFilter()Returns true if thisRuleis to fire only if no other rules in the containing style have fired yet.voidsetAbstract(InternationalString abs)Sets the human readable, prose description of this rule.voidsetElseFilter(boolean newValue)Sets the flag that indicates whether thisRuleis an "else filter".voidsetFilter(Filter filter)Sets the filter that will limit the features for which thisRulewill fire.voidsetLegendGraphic(Graphic g)Sets the small Graphic that may be used by the rendering engine to draw a legend window.voidsetMaxScaleDenominator(double d)Sets the maximum value (exclusive) in the denominator of the current map scale at which thisRulewill fire.voidsetMinScaleDenominator(double d)Sets the minimum value (inclusive) in the denominator of the current map scale at which thisRulewill fire.voidsetName(java.lang.String name)Sets the name for this rule.voidsetTitle(InternationalString name)Sets the human readable title of this rule.
-
-
-
Method Detail
-
getName
@XmlElement(value="Name") java.lang.String getName()
Returns a name for this rule. This can be any string that uniquely identifies this rule within a given canvas. It is not meant to be human-friendly. (The "title" property is meant to be human friendly.)
-
setName
@XmlElement(value="Name") void setName(java.lang.String name)
Sets the name for this rule. SeegetName()for details.
-
getTitle
@XmlElement(value="Title") InternationalString getTitle()
Returns the human readable title of this rule. This can be any string, but should be fairly short as it is intended to be used in list boxes or drop down menus or other selection interfaces.
-
setTitle
@XmlElement(value="Title") void setTitle(InternationalString name)
Sets the human readable title of this rule. SeegetTitle()for details.
-
getAbstract
@XmlElement(value="Abstract") InternationalString getAbstract()
Returns a human readable, prose description of this rule. This can be any string and can consist of any amount of text.
-
setAbstract
@XmlElement(value="Abstract") void setAbstract(InternationalString abs)
Sets the human readable, prose description of this rule. SeegetAbstract()for details.
-
getLegendGraphic
@XmlElement(value="LegendGraphic") Graphic getLegendGraphic()
Returns a small Graphic that could be used by the rendering engine to draw a legend window.A nice user interface may want to present the user with a legend that indicates how features of a given type are being portrayed. Through its
LegendGraphicproperty, aRulemay provide a custom picture to be used in such a legend window.
-
setLegendGraphic
@XmlElement(value="LegendGraphic") void setLegendGraphic(Graphic g)
Sets the small Graphic that may be used by the rendering engine to draw a legend window. SeegetLegendGraphic()for details.
-
getFilter
@XmlElement(value="Filter") Filter getFilter()
Returns the filter that will limit the features for which thisRulewill fire. This can only be non-null ifisElseFilter()returns false. If this value is null andisElseFilteris false, this means that thisRuleshould fire for all features.
-
setFilter
@XmlElement(value="Filter") void setFilter(Filter filter)
Sets the filter that will limit the features for which thisRulewill fire. SeegetFilter()for details.
-
isElseFilter
@XmlElement(value="ElseFilter") boolean isElseFilter()
Returns true if thisRuleis to fire only if no other rules in the containing style have fired yet. If this is true, then the filter must be null.
-
setElseFilter
@XmlElement(value="ElseFilter") void setElseFilter(boolean newValue)
Sets the flag that indicates whether thisRuleis an "else filter". A value of true indicates that this rule is to fire only if no other rules in the containing style have fired. SeeisElseFilter()for details.
-
getMinScaleDenominator
@XmlElement(value="MinScaleDenominator") double getMinScaleDenominator()
Returns the minimum value (inclusive) in the denominator of the current map scale at which thisRulewill fire. If, for example, theMinScaleDenominatorwere 10000, then this rule would only fire at scales of 1:X where X is greater than 10000. A value of zero indicates that there is no minimum.
-
setMinScaleDenominator
@XmlElement(value="MinScaleDenominator") void setMinScaleDenominator(double d)
Sets the minimum value (inclusive) in the denominator of the current map scale at which thisRulewill fire. SeegetMinScaleDenominator()for details.
-
getMaxScaleDenominator
@XmlElement(value="MaxScaleDenominator") double getMaxScaleDenominator()
Returns the maximum value (exclusive) in the denominator of the current map scale at which thisRulewill fire. If, for example, theMaxScaleDenominatorwere 98765, then this rule would only fire at scales of 1:X where X is less than 98765. A value ofDouble.POSITIVE_INFINITYindicates that there is no maximum.
-
setMaxScaleDenominator
@XmlElement(value="MaxScaleDenominator") void setMaxScaleDenominator(double d)
Sets the maximum value (exclusive) in the denominator of the current map scale at which thisRulewill fire. SeegetMaxScaleDenominator()for details.
-
getSymbols
java.util.List<Symbol> getSymbols()
This method returns a pointer to the "live" list of Symbol objects contained by thisRule. This list can be modified by the caller, so there is no need for asetSymbolsmethod.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG