|
||||||||||
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.
modules/library/main (gt-main.jar)
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)
|
Object |
accept(StyleVisitor visitor,
Object data)
|
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()
|
Filter |
getFilter()
|
GraphicLegend |
getLegend()
|
Graphic[] |
getLegendGraphic()
|
double |
getMaxScaleDenominator()
Getter for property maxScaleDenominator. |
double |
getMinScaleDenominator()
Getter for property minScaleDenominator. |
String |
getName()
|
OnLineResource |
getOnlineResource()
|
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()
|
void |
setAbstract(String abstractStr)
Setter for property abstractStr. |
void |
setDescription(Description description)
|
void |
setElseFilter(boolean defaultb)
|
void |
setFilter(Filter filter)
|
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)
|
void |
setOnlineResource(OnLineResource online)
|
void |
setSymbolizers(Symbolizer[] syms)
Deprecated. |
void |
setTitle(String title)
Setter for property title. |
List<Symbolizer> |
symbolizers()
|
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()
@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()
getLegend
in interface Rule
public void setLegend(GraphicLegend legend)
public List<Symbolizer> symbolizers()
symbolizers
in interface Rule
@Deprecated public void addSymbolizer(Symbolizer symb)
@Deprecated public void setSymbolizers(Symbolizer[] syms)
@Deprecated public Symbolizer[] getSymbolizers()
public DescriptionImpl getDescription()
getDescription
in interface Rule
public void setDescription(Description description)
public String getName()
getName
in interface Rule
public String getAbstract()
public void setName(String name)
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()
getFilter
in interface Rule
public void setFilter(Filter filter)
public boolean isElseFilter()
isElseFilter
in interface Rule
@Deprecated public boolean hasElseFilter()
public void setIsElseFilter(boolean flag)
public void setElseFilter(boolean defaultb)
@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)
accept
in interface Rule
public void accept(StyleVisitor visitor)
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()
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 |