|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.style.service.internal.AbstractStyleService
eu.esdihumboldt.hale.ui.style.service.internal.StyleServiceImpl
public class StyleServiceImpl
A default StyleService
implementation that will provide simple styles
for Lines, Points and Polygons if none have been loaded from an SLD.
Constructor Summary | |
---|---|
StyleServiceImpl(ProjectService projectService,
SchemaService schemaService)
Create a style service. |
Method Summary | |
---|---|
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)
This implementation will build a simple style if none is defined previously. |
void |
setBackground(org.eclipse.swt.graphics.RGB color)
Set the map background. |
Methods inherited from class eu.esdihumboldt.hale.ui.style.service.internal.AbstractStyleService |
---|
addListener, notifyBackgroundChanged, notifySettingsChanged, notifyStylesAdded, notifyStylesRemoved, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyleServiceImpl(ProjectService projectService, SchemaService schemaService)
projectService
- the project serviceschemaService
- the schema serviceMethod Detail |
---|
public org.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.StyleService.getNamedStyle(String)
public org.geotools.styling.Style getStyle(TypeDefinition type, DataSet dataSet)
type
- the type definitiondataSet
- the type data set
Style
for the given type.StyleService.getStyle(TypeDefinition, DataSet)
public org.geotools.styling.Style getDefinedStyle(TypeDefinition type)
StyleService
null
will be returned.
type
- the type definition
null
StyleService.getDefinedStyle(TypeDefinition)
public org.geotools.styling.Style getStyle()
StyleService
StyleService.getStyle()
public org.geotools.styling.Style getStyle(DataSet dataset)
StyleService
dataset
- the data set
StyleService.getStyle(DataSet)
public org.geotools.styling.Style getSelectionStyle(DataSet type)
StyleService
type
- the data set
StyleService.getSelectionStyle(DataSet)
public void addStyles(org.geotools.styling.Style... styles)
StyleService
styles
- the styles to addStyleService.addStyles(Style[])
public boolean addStyles(URL url)
StyleService
url
- the URL from which to load an SLD document.
StyleService.addStyles(URL)
public org.eclipse.swt.graphics.RGB getBackground()
StyleService
StyleService.getBackground()
public void setBackground(org.eclipse.swt.graphics.RGB color)
StyleService
color
- the map background colorStyleService.setBackground(RGB)
public void clearStyles()
StyleService
StyleService.clearStyles()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |