|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.styling.RuleImpl
public class RuleImpl
Provides the default implementation of Rule.
Constructor Summary | |
---|---|
protected |
RuleImpl()
Creates a new instance of DefaultRule |
|
RuleImpl(org.opengis.style.Rule rule)
Copy constructor |
protected |
RuleImpl(Symbolizer[] symbolizers)
Creates a new instance of DefaultRule |
protected |
RuleImpl(Symbolizer[] symbolizers,
org.opengis.style.Description desc,
Graphic[] legends,
java.lang.String name,
org.opengis.filter.Filter filter,
boolean isElseFilter,
double maxScale,
double minScale)
|
Method Summary | |
---|---|
void |
accept(StyleVisitor visitor)
Used to traverse the style data structure. |
java.lang.Object |
accept(org.opengis.style.StyleVisitor visitor,
java.lang.Object data)
|
void |
addLegendGraphic(Graphic graphic)
Deprecated. |
void |
addSymbolizer(Symbolizer symb)
Deprecated. |
java.lang.Object |
clone()
Creates a deep copy clone of the rule. |
boolean |
equals(java.lang.Object oth)
Compares this Rule with another for equality. |
java.lang.String |
getAbstract()
Getter for property abstractStr. |
DescriptionImpl |
getDescription()
Description for this rule. |
org.opengis.filter.Filter |
getFilter()
This is the filter used to select content for this rule to display |
org.opengis.style.GraphicLegend |
getLegend()
|
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. |
java.lang.String |
getName()
|
org.opengis.metadata.citation.OnLineResource |
getOnlineResource()
|
Symbolizer[] |
getSymbolizers()
Deprecated. |
java.lang.String |
getTitle()
Getter for property title. |
boolean |
hasElseFilter()
Deprecated. use isElseFilter instead. |
int |
hashCode()
Generates a hashcode for the Rule. |
boolean |
isElseFilter()
|
void |
setAbstract(java.lang.String abstractStr)
Setter for property abstractStr. |
void |
setDescription(org.opengis.style.Description description)
Description for this rule. |
void |
setElseFilter(boolean defaultb)
|
void |
setFilter(org.opengis.filter.Filter filter)
Filter used to select content for this rule to display. |
void |
setHasElseFilter()
Deprecated. use setIsElseFilter(true) |
void |
setIsElseFilter(boolean flag)
|
void |
setLegend(org.opengis.style.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(java.lang.String name)
Sets the name of the rule. |
void |
setOnlineResource(org.opengis.metadata.citation.OnLineResource online)
|
void |
setSymbolizers(Symbolizer[] syms)
Deprecated. |
void |
setTitle(java.lang.String title)
Setter for property title. |
java.util.List<Symbolizer> |
symbolizers()
Symbolizers used, in order, to portray the features selected by this rule. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RuleImpl()
protected RuleImpl(Symbolizer[] symbolizers)
symbolizers
- DOCUMENT ME!protected RuleImpl(Symbolizer[] symbolizers, org.opengis.style.Description desc, Graphic[] legends, java.lang.String name, org.opengis.filter.Filter filter, boolean isElseFilter, double maxScale, double minScale)
public RuleImpl(org.opengis.style.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 org.opengis.style.GraphicLegend getLegend()
getLegend
in interface org.opengis.style.Rule
public void setLegend(org.opengis.style.GraphicLegend legend)
public java.util.List<Symbolizer> symbolizers()
Rule
Please note that this list may be modified direct.
symbolizers
in interface org.opengis.style.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 org.opengis.style.Rule
public void setDescription(org.opengis.style.Description description)
Rule
description
- Human readable title and abstract.public java.lang.String getName()
getName
in interface org.opengis.style.Rule
public java.lang.String getAbstract()
public void setName(java.lang.String name)
Rule
name
- The name of the rule. This provides a way to identify a
rule.public void setAbstract(java.lang.String abstractStr)
abstractStr
- New value of property abstractStr.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- New value of property title.public org.opengis.filter.Filter getFilter()
Rule
getFilter
in interface org.opengis.style.Rule
public void setFilter(org.opengis.filter.Filter filter)
Rule
This filter is only consulted if isElseFilter is false.
public boolean isElseFilter()
isElseFilter
in interface org.opengis.style.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 org.opengis.style.Rule
public void setMaxScaleDenominator(double maxScaleDenominator)
maxScaleDenominator
- New value of property maxScaleDenominator.public double getMinScaleDenominator()
getMinScaleDenominator
in interface org.opengis.style.Rule
public void setMinScaleDenominator(double minScaleDenominator)
minScaleDenominator
- New value of property minScaleDenominator.public java.lang.Object accept(org.opengis.style.StyleVisitor visitor, java.lang.Object data)
accept
in interface org.opengis.style.Rule
public void accept(StyleVisitor visitor)
Rule
public java.lang.Object clone()
clone
in class java.lang.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 java.lang.Object
public boolean equals(java.lang.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 java.lang.Object
oth
- The other rule to compare with.
public java.lang.String toString()
toString
in class java.lang.Object
public org.opengis.metadata.citation.OnLineResource getOnlineResource()
getOnlineResource
in interface org.opengis.style.Rule
public void setOnlineResource(org.opengis.metadata.citation.OnLineResource online)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |