public interface StyleService
StyleService
provides access to the Styles currently loaded.Modifier and Type | Method and Description |
---|---|
void |
addListener(StyleServiceListener listener)
Adds a style service listener.
|
void |
addStyles(org.geotools.styling.Style... styles)
Add styles to the style service.
|
boolean |
addStyles(URL url)
Add styles from a given URL.
|
void |
clearStyles()
Clear all styles
|
org.eclipse.swt.graphics.RGB |
getBackground()
Get the map background.
|
org.geotools.styling.Style |
getDefinedStyle(TypeDefinition type)
Get the defined style for the given type.
|
org.geotools.styling.Style |
getNamedStyle(String name) |
org.geotools.styling.Style |
getSelectionStyle(DataSet type)
Get a style combining all selection styles for the given data set.
|
org.geotools.styling.Style |
getStyle()
Get a style combining all registered styles.
|
org.geotools.styling.Style |
getStyle(DataSet dataset)
Get a style combining all styles for the given data set.
|
org.geotools.styling.Style |
getStyle(TypeDefinition type,
DataSet dataSet)
Get the style for a given type.
|
void |
removeListener(StyleServiceListener listener)
Removes a style service listener.
|
void |
setBackground(org.eclipse.swt.graphics.RGB color)
Set the map background.
|
org.geotools.styling.Style getStyle(TypeDefinition type, DataSet dataSet)
type
- the type definitiondataSet
- the type data setStyle
for the given type.org.geotools.styling.Style getStyle()
org.geotools.styling.Style getStyle(DataSet dataset)
dataset
- the data setorg.geotools.styling.Style getNamedStyle(String name)
name
- the String that identifies the Style
that should be
returned.Style
for the given name. Will return a new
Style
object if there is no Style of the given name.boolean addStyles(URL url)
url
- the URL from which to load an SLD document.void addStyles(org.geotools.styling.Style... styles)
styles
- the styles to addvoid clearStyles()
org.geotools.styling.Style getSelectionStyle(DataSet type)
type
- the data setorg.geotools.styling.Style getDefinedStyle(TypeDefinition type)
null
will be returned.type
- the type definitionnull
org.eclipse.swt.graphics.RGB getBackground()
void setBackground(org.eclipse.swt.graphics.RGB color)
color
- the map background colorvoid addListener(StyleServiceListener listener)
listener
- the listener to addvoid removeListener(StyleServiceListener listener)
listener
- the listener to removeBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a