Class SpatialDSLayer
java.lang.Object
com.vividsolutions.jump.workbench.model.AbstractLayerable
com.vividsolutions.jump.workbench.model.GeoReferencedLayerable
com.vividsolutions.jump.workbench.model.Layer
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDSLayer
- All Implemented Interfaces:
Disposable, Layerable, LayerManagerProxy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpatialDSLayer(String name, Color fillColor, FeatureCollection featureCollection, LayerManager layerManager, WorkbenchContext workbenchContext) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Releases references to the data, to facilitate garbage collection.Methods inherited from class Layer
addFeatureSchemaOperation, addStyle, addUndo, cloneStyles, defaultLineColor, getBasicStyle, getDataSourceQuery, getDescription, getFeatureCollectionWrapper, getFeatureSchemaOperations, getLabelStyle, getStyle, getStyles, getStyles, getStylesIfEnabled, getVertexStyle, hasReadableDataSource, isDrawingLast, isFeatureCollectionModified, isSynchronizingLineColor, removeStyle, setDataSourceQuery, setDescription, setDrawingLast, setFeatureCollection, setFeatureCollectionModified, setFeatureCollectionWrapper, setLayerManager, setStyles, setSynchronizingLineColor, tryToInvalidateEnvelopeMethods inherited from class GeoReferencedLayerable
getBlackboard, getEnvelope, getSrsInfo, setEnvelope, setSrsInfoMethods inherited from class AbstractLayerable
fireAppearanceChanged, fireLayerChanged, getLayerManager, getMaxScale, getMinScale, getName, getTask, isEditable, isReadonly, isScaleDependentRenderingEnabled, isSelectable, isVisible, setEditable, setMaxScale, setMinScale, setName, setReadonly, setScaleDependentRenderingEnabled, setSelectable, setVisible, toString
-
Field Details
-
workbenchContext
-
-
Constructor Details
-
SpatialDSLayer
public SpatialDSLayer() -
SpatialDSLayer
public SpatialDSLayer(String name, Color fillColor, FeatureCollection featureCollection, LayerManager layerManager, WorkbenchContext workbenchContext)
-
-
Method Details
-
dispose
public void dispose()Description copied from class:LayerReleases references to the data, to facilitate garbage collection. Important for MDI apps like the JUMP Workbench. Called when the last JInternalFrame viewing the LayerManager is closed (i.e. internal frame's responsibility). To conserve memory, if layers are frequently added and removed from the LayerManager, parties may want to call #dispose themselves rather than waiting for the internal frame to be closed.- Specified by:
disposein interfaceDisposable- Overrides:
disposein classLayer
-