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, setViewport
public SingleLayerMapContent(Layer layer)
layer
- the layerIllegalArgumentException
- if layer
is null
public boolean addLayer(Layer layer)
UnsupportedOperationException
if called.addLayer
in class MapContent
public void moveLayer(int sourcePosition, int destPosition)
UnsupportedOperationException
if called.moveLayer
in class MapContent
sourcePosition
- existing position of the layerdestPosition
- new position of the layerpublic boolean removeLayer(Layer layer)
UnsupportedOperationException
if called.removeLayer
in class MapContent
layer
- the layer to be removedtrue
if the layer was removedpublic void dispose()
dispose
in class MapContent
protected void finalize() throws Throwable
finalize
in class MapContent
Throwable
Copyright © 1996–2021 Geotools. All rights reserved.