public class SingleLayerMapContent extends MapContent
Layer that is being passed
to a renderer. Calling the dispose method of this class does not dispose of the layer
unlike MapContent.dispose(). It does not permit subsequent changes to its layer
list.LOGGER, viewport| Constructor and Description |
|---|
SingleLayerMapContent(Layer layer)
Creates a new instance to hold the given layer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLayer(Layer layer)
Throws an
UnsupportedOperationException if called. |
void |
dispose()
Does nothing.
|
protected void |
finalize()
Does nothing.
|
void |
moveLayer(int sourcePosition,
int destPosition)
Throws an
UnsupportedOperationException if called. |
boolean |
removeLayer(Layer layer)
Throws an
UnsupportedOperationException if called. |
addLayers, addMapBoundsListener, addMapLayerListListener, addPropertyChangeListener, fireLayerAdded, fireLayerEvent, fireLayerMoved, fireLayerPreDispose, fireLayerRemoved, fireProperty, getCoordinateReferenceSystem, getMaxBounds, getTitle, getUserData, getViewport, layers, listenToMapLayers, removeMapBoundsListener, removeMapLayerListListener, removePropertyChangeListener, setTitle, setViewportpublic SingleLayerMapContent(Layer layer)
layer - the layerIllegalArgumentException - if layer is nullpublic boolean addLayer(Layer layer)
UnsupportedOperationException if called.addLayer in class MapContentpublic void moveLayer(int sourcePosition,
int destPosition)
UnsupportedOperationException if called.moveLayer in class MapContentsourcePosition - existing position of the layerdestPosition - new position of the layerpublic boolean removeLayer(Layer layer)
UnsupportedOperationException if called.removeLayer in class MapContentlayer - the layer to be removedpublic void dispose()
dispose in class MapContentprotected void finalize()
throws Throwable
finalize in class MapContentThrowableCopyright © 1996–2019 Geotools. All rights reserved.