public class StyleHandler
extends java.lang.Object
Constructor and Description |
---|
StyleHandler(Config conf)
Constructor of style handler.
|
Modifier and Type | Method and Description |
---|---|
org.geotools.styling.Style |
createStandardPolygonStyle()
Method to create a new (standard) style for polygons.
|
org.geotools.styling.Style |
loadStyle(java.lang.String sldPath)
Method to load a style.
|
void |
saveStyle(org.geotools.styling.Style style,
java.lang.String filePath)
Method to save a style to a sld. file.
|
java.io.File |
toSLDFile(java.io.File file)
Method to figure out, if a valid SLD file is available.
|
public StyleHandler(Config conf) throws java.net.MalformedURLException
conf
- Configurationjava.net.MalformedURLException
public org.geotools.styling.Style loadStyle(java.lang.String sldPath)
sldPath
- Path to style filepublic void saveStyle(org.geotools.styling.Style style, java.lang.String filePath)
style
- Style to be savedfilePath
- Path to create filepublic java.io.File toSLDFile(java.io.File file)
file
- SLD filepublic org.geotools.styling.Style createStandardPolygonStyle()