org.deegree.services.wms
Class StyleRegistry
java.lang.Object
java.util.TimerTask
org.deegree.services.wms.StyleRegistry
- All Implemented Interfaces:
- Runnable
public class StyleRegistry
- extends TimerTask
StyleRegistry
- Version:
- $Revision: 31413 $, $Date: 2011-08-02 14:29:56 +0200 (Tue, 02 Aug 2011) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Method Summary |
Style |
get(String layerName,
String styleName)
|
ArrayList<Style> |
getAll(String layerName)
|
Style |
getLegendStyle(String layerName,
String styleName)
|
boolean |
hasStyle(String layerName,
String styleName)
|
boolean |
load(String layerName,
File file)
|
void |
load(String layerName,
List<DirectStyleType> styles,
XMLAdapter adapter)
|
void |
load(String layerName,
XMLAdapter adapter,
List<SLDStyleType> styles)
|
boolean |
loadLegend(String layerName,
File file)
|
void |
put(String layerName,
Style style,
boolean clear)
|
void |
putAsDefault(String layerName,
Style style)
|
void |
putLegend(String layerName,
Style style,
boolean clear)
|
boolean |
register(String layerName,
File file,
boolean isSoleStyle)
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StyleRegistry
public StyleRegistry(DeegreeWorkspace workspace)
put
public void put(String layerName,
Style style,
boolean clear)
- Parameters:
layerName
- style
- clear
- if true, all other styles will be removed for the layer
putLegend
public void putLegend(String layerName,
Style style,
boolean clear)
- Parameters:
layerName
- style
- clear
-
putAsDefault
public void putAsDefault(String layerName,
Style style)
- Parameters:
layerName
- style
-
getLegendStyle
public Style getLegendStyle(String layerName,
String styleName)
- Parameters:
layerName
- styleName
- may be null, in which case the default style will be searched for
- Returns:
- null, if not available
hasStyle
public boolean hasStyle(String layerName,
String styleName)
- Parameters:
layerName
- styleName
-
- Returns:
- true, if the layer has a style with the name
get
public Style get(String layerName,
String styleName)
- Parameters:
layerName
- styleName
- may be null, in which case the default style will be searched for
- Returns:
- null, if not available
getAll
public ArrayList<Style> getAll(String layerName)
- Parameters:
layerName
-
- Returns:
- all styles for the layer
load
public boolean load(String layerName,
File file)
- Parameters:
layerName
- file
-
- Returns:
- true, if actually loaded
loadLegend
public boolean loadLegend(String layerName,
File file)
- Parameters:
layerName
- file
-
- Returns:
- true, if actually loaded
load
public void load(String layerName,
List<DirectStyleType> styles,
XMLAdapter adapter)
- Parameters:
layerName
- styles
- adapter
-
load
public void load(String layerName,
XMLAdapter adapter,
List<SLDStyleType> styles)
- Parameters:
layerName
- styles
- adapter
-
register
public boolean register(String layerName,
File file,
boolean isSoleStyle)
- Parameters:
layerName
- file
- isSoleStyle
- if true, all styles will be cleared upon update
- Returns:
- true, if actually loaded
run
public void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in class TimerTask
Copyright © 2011. All Rights Reserved.