public abstract class StyleLayer extends Layer
The StyleLayer is expected to be subclassed; and is responsible for:
Modifier and Type | Field and Description |
---|---|
protected Style |
style
Style used for rendering
|
Constructor and Description |
---|
StyleLayer(Style style)
Creates a new instance of StyleLayer
|
StyleLayer(Style style,
String title) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Allows a Layer to clean up any listeners, or internal caches or resources it has added during
use.
|
Style |
getStyle()
Get the style for this layer.
|
void |
setStyle(Style style)
Sets the style for this layer.
|
addMapLayerListener, connectDataListener, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getBounds, getFeatureSource, getQuery, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString
protected Style style
public StyleLayer(Style style)
style
- the style used to control drawing of this layerpublic void dispose()
Layer
public Style getStyle()
If style has not been set, then null is returned.
public void setStyle(Style style)
style
- The new styleCopyright © 1996–2019 Geotools. All rights reserved.