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 void
dispose()
Releases references to the data, to facilitate garbage collection.FeatureCollectionWrapper
getFeatureCollectionWrapper()
Returns a wrapper around the FeatureCollection which was added using #wrapFeatureCollection.String
getFullName()
Layer
getLayer()
String
getLayerName()
boolean
isEditable()
boolean
isSelectable()
void
setFeatureCollection(FeatureCollection featureCollection)
void
setLayerManager(LayerManager layerManager)
Called by Java2XMLvoid
setLayerName(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:Layerable
Called by Java2XML- Specified by:
setLayerManager
in interfaceLayerable
- Overrides:
setLayerManager
in classLayer
- Parameters:
layerManager
- the LayerManager
-
getFullName
public String getFullName()
-
setFeatureCollection
public void setFeatureCollection(FeatureCollection featureCollection)
- Overrides:
setFeatureCollection
in classLayer
-
getFeatureCollectionWrapper
public FeatureCollectionWrapper getFeatureCollectionWrapper()
Description copied from class:Layer
Returns 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:
getFeatureCollectionWrapper
in classLayer
- Returns:
- the FeatureCollectionWrapper containing features
-
getLayer
public Layer getLayer()
-
isSelectable
public boolean isSelectable()
- Specified by:
isSelectable
in interfaceLayerable
- Overrides:
isSelectable
in classAbstractLayerable
- Returns:
- true if features in this layer can be selected.
-
isEditable
public boolean isEditable()
- Specified by:
isEditable
in interfaceLayerable
- Overrides:
isEditable
in classAbstractLayerable
-
dispose
public void dispose()
Description copied from class:Layer
Releases 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:
dispose
in interfaceDisposable
- Overrides:
dispose
in classLayer
-
-