|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.event.AbstractGTComponent org.geotools.styling.RuleImpl
Provides the default implementation of Rule.
Field Summary |
Fields inherited from class org.geotools.event.AbstractGTComponent |
notification |
Constructor Summary | |
protected |
RuleImpl()
Creates a new instance of DefaultRule |
protected |
RuleImpl(Symbolizer[] symbolizers)
Creates a new instance of DefaultRule |
Method Summary | |
void |
accept(StyleVisitor visitor)
|
void |
addLegendGraphic(Graphic graphic)
|
void |
addSymbolizer(Symbolizer symb)
|
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. |
Filter |
getFilter()
|
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()
Getter for property name. |
Symbolizer[] |
getSymbolizers()
The symbolizers contain the actual styling information for different geometry types. |
java.lang.String |
getTitle()
Getter for property title. |
boolean |
hasElseFilter()
|
int |
hashCode()
Generates a hashcode for the Rule. |
void |
setAbstract(java.lang.String abstractStr)
Setter for property abstractStr. |
void |
setFilter(Filter filter)
|
void |
setHasElseFilter()
|
void |
setIsElseFilter(boolean flag)
|
void |
setLegendGraphic(Graphic[] graphics)
A set of equivalent Graphics in different formats which can be used as a legend against features stylized by the symbolizers in this rule. |
void |
setMaxScaleDenominator(double maxScaleDenominator)
Setter for property maxScaleDenominator. |
void |
setMinScaleDenominator(double minScaleDenominator)
Setter for property minScaleDenominator. |
void |
setName(java.lang.String name)
Setter for property name. |
void |
setSymbolizers(Symbolizer[] syms)
The symbolizers contain the actual styling information for different geometry types. |
void |
setTitle(java.lang.String title)
Setter for property title. |
Methods inherited from class org.geotools.event.AbstractGTComponent |
changed, fireChanged, fireChildChanged, getNote, getParent, removed, setNote |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.event.GTComponent |
changed, getNote, getParent, removed, setNote |
Constructor Detail |
protected RuleImpl()
protected RuleImpl(Symbolizer[] symbolizers)
symbolizers
- DOCUMENT ME!Method Detail |
public Graphic[] getLegendGraphic()
Rule
getLegendGraphic
in interface Rule
public void addLegendGraphic(Graphic graphic)
public void setLegendGraphic(Graphic[] graphics)
setLegendGraphic
in interface Rule
graphics
- An array of Graphic objects, any of which can be used as
the legend.public void addSymbolizer(Symbolizer symb)
public void setSymbolizers(Symbolizer[] syms)
Rule
setSymbolizers
in interface Rule
syms
- An array of symbolizers to be applied, in sequence,
to all of the features addressed by the FeatureTypeStyler which
contains this rule.public Symbolizer[] getSymbolizers()
Rule
getSymbolizers
in interface Rule
public java.lang.String getAbstract()
getAbstract
in interface Rule
public void setAbstract(java.lang.String abstractStr)
setAbstract
in interface Rule
abstractStr
- New value of property abstractStr.public java.lang.String getName()
getName
in interface Rule
public void setName(java.lang.String name)
setName
in interface Rule
name
- New value of property name.public java.lang.String getTitle()
getTitle
in interface Rule
public void setTitle(java.lang.String title)
setTitle
in interface Rule
title
- New value of property title.public Filter getFilter()
getFilter
in interface Rule
public void setFilter(Filter filter)
setFilter
in interface Rule
public boolean hasElseFilter()
hasElseFilter
in interface Rule
public void setIsElseFilter(boolean flag)
setIsElseFilter
in interface Rule
public void setHasElseFilter()
public double getMaxScaleDenominator()
getMaxScaleDenominator
in interface Rule
public void setMaxScaleDenominator(double maxScaleDenominator)
setMaxScaleDenominator
in interface Rule
maxScaleDenominator
- New value of property maxScaleDenominator.public double getMinScaleDenominator()
getMinScaleDenominator
in interface Rule
public void setMinScaleDenominator(double minScaleDenominator)
setMinScaleDenominator
in interface Rule
minScaleDenominator
- New value of property minScaleDenominator.public void accept(StyleVisitor visitor)
accept
in interface Rule
public java.lang.Object clone()
clone
in interface org.opengis.util.Cloneable
clone
in class AbstractGTComponent
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.
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.
oth
- The other rule to compare with.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |