Package org.geotools.renderer.style
Class Style
Object
Style
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
Style2D
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
double
Gets the maximum scale at which the geometry has to be painted with this style (inclusive)double
Gets the minimum scale at which the geometry has to be painted with this style (inclusive)boolean
isScaleInRange
(double scale) Checks whethere the style should be used for painting at scalescale
void
setMinMaxScale
(double minScale, double maxScale) Sets minimum and maximum scale, and performs integrity checks on these value (will throw and IllegalArgumentException in minScale > maxScale)
-
Field Details
-
maxScale
protected double maxScaleMaximum scale at which the geometry has to be painted with this style -
minScale
protected double minScaleMinimum scale at which the geometry has to be painted with this style
-
-
Constructor Details
-
Style
public Style()
-
-
Method Details
-
getMaxScale
public double getMaxScale()Gets the maximum scale at which the geometry has to be painted with this style (inclusive)- Returns:
- - the maximum painting scale
-
getMinScale
public double getMinScale()Gets the minimum scale at which the geometry has to be painted with this style (inclusive)- Returns:
- - the minimum painting scale
-
setMinMaxScale
public void setMinMaxScale(double minScale, double maxScale) Sets minimum and maximum scale, and performs integrity checks on these value (will throw and IllegalArgumentException in minScale > maxScale) -
isScaleInRange
public boolean isScaleInRange(double scale) Checks whethere the style should be used for painting at scalescale
- Parameters:
scale
- The scale queried- Returns:
- True if
scale
is whithin the scale range of this style (false otherwise)
-
clone
-