| Modifier | Constructor and Description |
|---|---|
protected |
RuleImpl()
Creates a new instance of DefaultRule
|
|
RuleImpl(Rule rule)
Copy constructor
|
protected |
RuleImpl(Symbolizer[] symbolizers)
Creates a new instance of DefaultRule
|
protected |
RuleImpl(Symbolizer[] symbolizers,
Description desc,
Graphic[] legends,
String name,
Filter filter,
boolean isElseFilter,
double maxScale,
double minScale) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(StyleVisitor visitor)
Used to traverse the style data structure.
|
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor
|
void |
addLegendGraphic(Graphic graphic)
Deprecated.
|
void |
addSymbolizer(Symbolizer symb)
Deprecated.
|
Object |
clone()
Creates a deep copy clone of the rule.
|
boolean |
equals(Object oth)
Compares this Rule with another for equality.
|
String |
getAbstract()
Getter for property abstractStr.
|
DescriptionImpl |
getDescription()
Description for this rule.
|
Filter |
getFilter()
This is the filter used to select content for this rule to display
|
GraphicLegend |
getLegend()
Returns a small Graphic that could be used by the rendering engine to draw a legend window.
|
Graphic[] |
getLegendGraphic()
A set of equivalent Graphics in different formats which can be used as a legend against
features stylized by the symbolizers in this rule.
|
double |
getMaxScaleDenominator()
Getter for property maxScaleDenominator.
|
double |
getMinScaleDenominator()
Getter for property minScaleDenominator.
|
String |
getName()
Returns a name for this rule.
|
OnLineResource |
getOnlineResource()
It is common to have a style coming from a external xml file, this method provide a way to
get the original source if there is one.
|
Symbolizer[] |
getSymbolizers()
Deprecated.
|
String |
getTitle()
Getter for property title.
|
boolean |
hasElseFilter()
Deprecated.
use isElseFilter instead.
|
int |
hashCode()
Generates a hashcode for the Rule.
|
boolean |
isElseFilter()
Returns true if this
Rule is to fire only if no other rules in the containing style
have fired yet. |
void |
setAbstract(String abstractStr)
Setter for property abstractStr.
|
void |
setDescription(Description description)
Description for this rule.
|
void |
setElseFilter(boolean defaultb) |
void |
setFilter(Filter filter)
Filter used to select content for this rule to display.
|
void |
setHasElseFilter()
Deprecated.
use setIsElseFilter(true)
|
void |
setIsElseFilter(boolean flag) |
void |
setLegend(GraphicLegend legend) |
void |
setLegendGraphic(Graphic[] graphics)
Deprecated.
|
void |
setMaxScaleDenominator(double maxScaleDenominator)
Setter for property maxScaleDenominator.
|
void |
setMinScaleDenominator(double minScaleDenominator)
Setter for property minScaleDenominator.
|
void |
setName(String name)
Sets the name of the rule.
|
void |
setOnlineResource(OnLineResource online) |
void |
setSymbolizers(Symbolizer[] syms)
Deprecated.
|
void |
setTitle(String title)
Setter for property title.
|
List<Symbolizer> |
symbolizers()
Symbolizers used, in order, to portray the features selected by this rule.
|
String |
toString() |
protected RuleImpl()
protected RuleImpl(Symbolizer[] symbolizers)
symbolizers - DOCUMENT ME!protected RuleImpl(Symbolizer[] symbolizers, Description desc, Graphic[] legends, String name, Filter filter, boolean isElseFilter, double maxScale, double minScale)
public RuleImpl(Rule rule)
public Graphic[] getLegendGraphic()
Rule@Deprecated public void addLegendGraphic(Graphic graphic)
@Deprecated public void setLegendGraphic(Graphic[] graphics)
graphics - An array of Graphic objects, any of which can be used as the legend.public GraphicLegend getLegend()
RuleA 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 LegendGraphic property, a
Rule may provide a custom picture to be used in such a legend window.
public void setLegend(GraphicLegend legend)
public List<Symbolizer> symbolizers()
RulePlease note that this list may be modified direct.
symbolizers in interface Rule@Deprecated public void addSymbolizer(Symbolizer symb)
@Deprecated public void setSymbolizers(Symbolizer[] syms)
Rulesyms - An array of symbolizers to be applied, in sequence, to all of the features
addressed by the FeatureTypeStyler which contains this rule.@Deprecated public Symbolizer[] getSymbolizers()
Rulepublic DescriptionImpl getDescription()
RulegetDescription in interface Rulepublic void setDescription(Description description)
Ruledescription - Human readable title and abstract.public String getName()
Rulepublic String getAbstract()
public void setName(String name)
Rulename - The name of the rule. This provides a way to identify a rule.public void setAbstract(String abstractStr)
abstractStr - New value of property abstractStr.public String getTitle()
public void setTitle(String title)
title - New value of property title.public Filter getFilter()
Rulepublic void setFilter(Filter filter)
RuleThis filter is only consulted if isElseFilter is false.
public boolean isElseFilter()
RuleRule is to fire only if no other rules in the containing style
have fired yet. If this is true, then the filter must be
Filter.EXCLUDES.isElseFilter in interface Rule@Deprecated public boolean hasElseFilter()
public void setIsElseFilter(boolean flag)
public void setElseFilter(boolean defaultb)
defaultb - if this rule should accept any features not already rendered@Deprecated public void setHasElseFilter()
public double getMaxScaleDenominator()
getMaxScaleDenominator in interface Rulepublic void setMaxScaleDenominator(double maxScaleDenominator)
maxScaleDenominator - New value of property maxScaleDenominator.public double getMinScaleDenominator()
getMinScaleDenominator in interface Rulepublic void setMinScaleDenominator(double minScaleDenominator)
minScaleDenominator - New value of property minScaleDenominator.public Object accept(StyleVisitor visitor, Object data)
Rulepublic void accept(StyleVisitor visitor)
Rulepublic Object clone()
public int hashCode()
For complex styles this can be an expensive operation since the hash code is computed using all the hashcodes of the object within the style.
public boolean equals(Object oth)
Two RuleImpls are equal if all their properties are equal.
For complex styles this can be an expensive operation since it checks all objects for equality.
public OnLineResource getOnlineResource()
RulegetOnlineResource in interface Rulepublic void setOnlineResource(OnLineResource online)
Copyright © 1996–2019 Geotools. All rights reserved.