public class TLcySLDLayerStyle extends Object implements ILcyLayerStyle
null
, and there is only one style.
To retrieve and apply the style, use an ILcyLayerStyleProvider
.Constructor and Description |
---|
TLcySLDLayerStyle()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ILcdChangeListener aListener)
Registers the given listener so it will receive change events from this source.
|
Object |
clone()
Creates a copy of the style.
|
TLcdSLDFeatureTypeStyle |
getStyle(String aFeatureTypeName)
Convenience method that returns the style with the given
feature type name
from all styles.
|
Set<TLcdSLDFeatureTypeStyle> |
getStyles()
Returns the set of feature type styles that are used by this layer style.
|
void |
removeChangeListener(ILcdChangeListener aListener)
Removes the specified listener so it is no longer notified.
|
public TLcySLDLayerStyle()
getStyles()
.public Set<TLcdSLDFeatureTypeStyle> getStyles()
TLcdSLDFeatureTypeStyle
instance of this set. If you want to modify such a
TLcdSLDFeatureTypeStyle
instance, you should use the clone
method of the
TLcdSLDFeatureTypeStyle
and modify the clone. Then you remove the original style
from the set, and add the modified clone.public Object clone()
ILcyLayerStyle
Creates a copy of the style. When a layer style is cloned, its listeners should not be cloned as well.
A clone of an ILcyLayerStyle
is not linked to any layer.
clone
in interface ILcyLayerStyle
clone
in interface ILcdCloneable
clone
in class Object
Object.clone()
public TLcdSLDFeatureTypeStyle getStyle(String aFeatureTypeName)
aFeatureTypeName
- The feature type name of the style to retrievepublic void addChangeListener(ILcdChangeListener aListener)
ILcdChangeSource
Registers the given listener so it will receive change events from this source.
In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source,
you can use a ALcdWeakChangeListener
instance as change listener.
addChangeListener
in interface ILcdChangeSource
aListener
- The listener to be notified when a change has happened.ILcdChangeSource.removeChangeListener(ILcdChangeListener)
,
ALcdWeakChangeListener
public void removeChangeListener(ILcdChangeListener aListener)
ILcdChangeSource
removeChangeListener
in interface ILcdChangeSource
aListener
- The listener to remove.