Class LayerView

All Implemented Interfaces:
Disposable, Layerable, LayerManagerProxy

public class LayerView extends Layer
  • Constructor Details

    • LayerView

      public LayerView()
      Called by Java2XML
    • LayerView

      public LayerView(String layerName, LayerManager layerManager)
  • Method Details

    • 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 interface Layerable
      Overrides:
      setLayerManager in class Layer
      Parameters:
      layerManager - the LayerManager
    • getFullName

      public String getFullName()
    • setFeatureCollection

      public void setFeatureCollection(FeatureCollection featureCollection)
      Overrides:
      setFeatureCollection in class Layer
    • 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 class Layer
      Returns:
      the FeatureCollectionWrapper containing features
    • getLayer

      public Layer getLayer()
    • isSelectable

      public boolean isSelectable()
      Specified by:
      isSelectable in interface Layerable
      Overrides:
      isSelectable in class AbstractLayerable
      Returns:
      true if features in this layer can be selected.
    • isEditable

      public boolean isEditable()
      Specified by:
      isEditable in interface Layerable
      Overrides:
      isEditable in class AbstractLayerable
    • 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 interface Disposable
      Overrides:
      dispose in class Layer