Package org.geotools.renderer.style
Class Style
- Object
-
- Style
-
-
Constructor Summary
Constructors Constructor Description Style()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Style
clone()
double
getMaxScale()
Gets the maximum scale at which the geometry has to be painted with this style (inclusive)double
getMinScale()
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)
-
-
-
Method Detail
-
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)
-
-