Package org.geotools.map
Class StyleLayer
-
- Direct Known Subclasses:
FeatureLayer
,RasterLayer
public abstract class StyleLayer extends Layer
Layer responsible for rendering under control of a user supplied Style object.The StyleLayer is expected to be subclassed; and is responsible for:
- style: Style
- Since:
- 8.0
-
-
Constructor Summary
Constructors Constructor Description StyleLayer(Style style)
Creates a new instance of StyleLayerStyleLayer(Style style, String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class Layer
addMapLayerListener, connectDataListener, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getBounds, getFeatureSource, getQuery, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString
-
-
-
-
Field Detail
-
style
protected Style style
Style used for rendering
-
-
Method Detail
-
dispose
public void dispose()
Description copied from class:Layer
Allows a Layer to clean up any listeners, or internal caches or resources it has added during use.
-
getStyle
public Style getStyle()
Get the style for this layer.If style has not been set, then null is returned.
-
setStyle
public void setStyle(Style style)
Sets the style for this layer.- Parameters:
style
- The new style
-
-