|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectRuleImpl
public class RuleImpl
Provides the default implementation of Rule.
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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()
Rule
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
LegendGraphic
property, a Rule
may provide a custom picture
to be used in such a legend window.
getLegend
in interface Rule
public void setLegend(GraphicLegend legend)
public List<Symbolizer> symbolizers()
Rule
Please note that this list may be modified direct.
symbolizers
in interface Rule
@Deprecated public void addSymbolizer(Symbolizer symb)
@Deprecated public void setSymbolizers(Symbolizer[] syms)
Rule
syms
- 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()
Rule
public DescriptionImpl getDescription()
Rule
getDescription
in interface Rule
public void setDescription(Description description)
Rule
description
- Human readable title and abstract.public String getName()
Rule
getName
in interface Rule
public String getAbstract()
public void setName(String name)
Rule
name
- 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()
Rule
getFilter
in interface Rule
public void setFilter(Filter filter)
Rule
This filter is only consulted if isElseFilter is false.
public boolean isElseFilter()
Rule
Rule
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 Rule
public void setMaxScaleDenominator(double maxScaleDenominator)
maxScaleDenominator
- New value of property maxScaleDenominator.public double getMinScaleDenominator()
getMinScaleDenominator
in interface Rule
public void setMinScaleDenominator(double minScaleDenominator)
minScaleDenominator
- New value of property minScaleDenominator.public Object accept(StyleVisitor visitor, Object data)
Rule
accept
in interface Rule
visitor
- the style visitorpublic void accept(StyleVisitor visitor)
Rule
public Object clone()
clone
in class Object
org.geotools.styling.Rule#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.
hashCode
in class Object
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.
equals
in class Object
oth
- The other rule to compare with.
public String toString()
toString
in class Object
public OnLineResource getOnlineResource()
Rule
getOnlineResource
in interface Rule
public void setOnlineResource(OnLineResource online)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |