Class LayerView
- java.lang.Object
-
- com.vividsolutions.jump.workbench.model.AbstractLayerable
-
- com.vividsolutions.jump.workbench.model.GeoReferencedLayerable
-
- com.vividsolutions.jump.workbench.model.Layer
-
- com.vividsolutions.jump.workbench.model.LayerView
-
- All Implemented Interfaces:
Disposable,Layerable,LayerManagerProxy
public class LayerView extends Layer
-
-
Constructor Summary
Constructors Constructor Description LayerView()Called by Java2XMLLayerView(String layerName, LayerManager layerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Releases references to the data, to facilitate garbage collection.FeatureCollectionWrappergetFeatureCollectionWrapper()Returns a wrapper around the FeatureCollection which was added using #wrapFeatureCollection.StringgetFullName()LayergetLayer()StringgetLayerName()booleanisEditable()booleanisSelectable()voidsetFeatureCollection(FeatureCollection featureCollection)voidsetLayerManager(LayerManager layerManager)Called by Java2XMLvoidsetLayerName(String layerName)-
Methods inherited from class com.vividsolutions.jump.workbench.model.Layer
addFeatureSchemaOperation, addStyle, addUndo, cloneStyles, defaultLineColor, getBasicStyle, getDataSourceQuery, getDescription, getFeatureSchemaOperations, getLabelStyle, getStyle, getStyles, getStyles, getStylesIfEnabled, getVertexStyle, hasReadableDataSource, isDrawingLast, isFeatureCollectionModified, isSynchronizingLineColor, removeStyle, setDataSourceQuery, setDescription, setDrawingLast, setFeatureCollectionModified, setFeatureCollectionWrapper, setStyles, setSynchronizingLineColor, tryToInvalidateEnvelope
-
Methods inherited from class com.vividsolutions.jump.workbench.model.GeoReferencedLayerable
getBlackboard, getEnvelope, getSrsInfo, setEnvelope, setSrsInfo
-
Methods inherited from class com.vividsolutions.jump.workbench.model.AbstractLayerable
fireAppearanceChanged, fireLayerChanged, getLayerManager, getMaxScale, getMinScale, getName, getTask, isReadonly, isScaleDependentRenderingEnabled, isVisible, setEditable, setMaxScale, setMinScale, setName, setReadonly, setScaleDependentRenderingEnabled, setSelectable, setVisible, toString
-
-
-
-
Constructor Detail
-
LayerView
public LayerView()
Called by Java2XML
-
LayerView
public LayerView(String layerName, LayerManager layerManager)
-
-
Method Detail
-
getLayerName
public String getLayerName()
-
setLayerName
public void setLayerName(String layerName)
-
setLayerManager
public void setLayerManager(LayerManager layerManager)
Description copied from interface:LayerableCalled by Java2XML- Specified by:
setLayerManagerin interfaceLayerable- Overrides:
setLayerManagerin classLayer- Parameters:
layerManager- the LayerManager
-
getFullName
public String getFullName()
-
setFeatureCollection
public void setFeatureCollection(FeatureCollection featureCollection)
- Overrides:
setFeatureCollectionin classLayer
-
getFeatureCollectionWrapper
public FeatureCollectionWrapper getFeatureCollectionWrapper()
Description copied from class:LayerReturns a wrapper around the FeatureCollection which was added using #wrapFeatureCollection. The original FeatureCollection can be retrieved using FeatureCollectionWrapper#getWrappee. However, parties are encouraged to use the FeatureCollectionWrapper instead, so that feature additions and removals cause FeatureEvents to be fired (by the Layer).- Overrides:
getFeatureCollectionWrapperin classLayer- Returns:
- the FeatureCollectionWrapper containing features
-
getLayer
public Layer getLayer()
-
isSelectable
public boolean isSelectable()
- Specified by:
isSelectablein interfaceLayerable- Overrides:
isSelectablein classAbstractLayerable- Returns:
- true if features in this layer can be selected.
-
isEditable
public boolean isEditable()
- Specified by:
isEditablein interfaceLayerable- Overrides:
isEditablein classAbstractLayerable
-
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
-
-