java.lang.Object
org.gvsig.tools.dispose.impl.AbstractDisposable
org.gvsig.fmap.mapcontext.layers.FLyrDefault
org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect
All Implemented Interfaces:
org.gvsig.fmap.dal.HasDataStore, ExtendedPropertiesSupport, FLayer, FLayerHidesArea, LayerListener, Classifiable, ClassifiableVectorial, InfoByPoint, SingleLayer, VectorLayer, Projected, LegendContentsChangedListener, ILabelable, org.gvsig.metadata.Metadata, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.dynobject.DynObject, org.gvsig.tools.observer.Observer, org.gvsig.tools.persistence.Persistent
Direct Known Subclasses:
DefaultGraphicLayer

public class FLyrVect extends FLyrDefault implements VectorLayer, LegendContentsChangedListener, org.gvsig.tools.observer.Observer
Capa básica Vectorial.
  • Field Details

  • Constructor Details

    • FLyrVect

      public FLyrVect()
  • Method Details

    • getTocImageIcon

      public String getTocImageIcon()
      Description copied from interface: FLayer
      Returns the image icon that will be shown in the TOC next to this layer.
      Specified by:
      getTocImageIcon in interface FLayer
      Overrides:
      getTocImageIcon in class FLyrDefault
      Returns:
      a String reference to the image icon, or null if there isn't any
    • getDataStore

      public org.gvsig.fmap.dal.DataStore getDataStore()
      Return the store associated to the layer.
      Specified by:
      getDataStore in interface org.gvsig.fmap.dal.HasDataStore
      Specified by:
      getDataStore in interface SingleLayer
      Returns:
      the store
    • setDataStore

      public void setDataStore(org.gvsig.fmap.dal.DataStore dataStore) throws LoadLayerException
      Asigna el data-store a la capa. Esta operacion no se deneria poder hacer desde fuera de la clase.
      Specified by:
      setDataStore in interface SingleLayer
      Parameters:
      dataStore -
      Throws:
      LoadLayerException
    • setDataStoreParameters

      public void setDataStoreParameters(org.gvsig.fmap.dal.DataStoreParameters parameters)
    • setVisible

      public void setVisible(boolean visibility)
      Description copied from interface: FLayer

      Changes the status of this layer to visible or not.

      One layer is visible if it's check box associated is selected. This means that layer will tried to be painted. If the data associated isn't available, then this property will change to false.

      Specified by:
      setVisible in interface FLayer
      Overrides:
      setVisible in class FLyrDefault
      Parameters:
      visibility - the boolean to be set
      See Also:
    • bindToDataStore

      protected void bindToDataStore(org.gvsig.fmap.dal.DataStore dataStore) throws LoadLayerException
      Enlaza la capa con el DataStore indicado.
      Parameters:
      dataStore -
      Throws:
      LoadLayerException
    • getFullEnvelope

      public org.gvsig.fmap.geom.primitive.Envelope getFullEnvelope() throws org.gvsig.fmap.dal.exception.ReadException
      Description copied from interface: FLayer
      Returns the full extension of the layer node.
      Specified by:
      getFullEnvelope in interface FLayer
      Returns:
      location and dimension of this layer node
      Throws:
      org.gvsig.fmap.dal.exception.ReadException - if fails the driver used in this method.
    • setBaseQuery

      public void setBaseQuery(org.gvsig.fmap.dal.feature.FeatureQuery baseQuery)
      Specified by:
      setBaseQuery in interface VectorLayer
    • getBaseQuery

      public org.gvsig.fmap.dal.feature.FeatureQuery getBaseQuery()
      Specified by:
      getBaseQuery in interface VectorLayer
    • addBaseFilter

      public void addBaseFilter(org.gvsig.tools.evaluator.Evaluator filter)
      Specified by:
      addBaseFilter in interface VectorLayer
    • addBaseFilter

      public void addBaseFilter(String filter)
      Specified by:
      addBaseFilter in interface VectorLayer
    • draw

      public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale) throws org.gvsig.fmap.dal.exception.ReadException
      Draws using IFeatureIterator. This method will replace the old draw(...) one.
      Specified by:
      draw in interface FLayer
      Parameters:
      image -
      g -
      viewPort -
      cancel -
      scale -
      See Also:
    • print

      public void print(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException
      Description copied from interface: FLayer
      Prints this layer according to some properties requested.
      Specified by:
      print in interface FLayer
      Parameters:
      g - for rendering 2-dimensional shapes, text and images on the Java(tm) platform
      viewPort - the information for drawing the layers
      cancel - an object thread that implements the Cancellable interface, and will allow to cancel the draw
      scale - the scale of the view. Must be between FLayer.getMinScale() and FLayer.getMaxScale().
      properties - a set with the settings to be applied to a whole print job and to all the docs in the print job
      Throws:
      org.gvsig.fmap.dal.exception.ReadException - if fails the driver used in this method.
      See Also:
    • setLegend

      public void setLegend(IVectorLegend legend) throws LegendLayerException
      Description copied from interface: ClassifiableVectorial

      Sets the layer's legend as a vector legend.

      Specified by:
      setLegend in interface ClassifiableVectorial
      Parameters:
      legend - the legend with vector data
      Throws:
      LegendLayerException - if fails setting the legend to this layer.
    • getLegend

      public ILegend getLegend()
      Devuelve la Leyenda de la capa.
      Specified by:
      getLegend in interface Classifiable
      Returns:
      Leyenda.
    • getShapeType

      public int getShapeType() throws org.gvsig.fmap.dal.exception.ReadException
      Description copied from interface: Classifiable

      Returns the type of the shape.

      All geometry types are defined in Geometry.TYPES. For getting the equivalent shape of a geometry type, you must use a method like

      invalid reference
      SHPFileWrite#getShapeType()
      .

      Specified by:
      getShapeType in interface Classifiable
      Returns:
      the type of this shape.
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
      See Also:
      • invalid reference
        Geometry
      • invalid reference
        Constant
    • getGeometryType

      public org.gvsig.fmap.geom.type.GeometryType getGeometryType() throws org.gvsig.fmap.dal.exception.ReadException
      Returns the layer's geometry type
      Specified by:
      getGeometryType in interface Classifiable
      Returns:
      the geometry type
      Throws:
      org.gvsig.fmap.dal.exception.ReadException - if there is an error getting the geometry type
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class FLyrDefault
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class FLyrDefault
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • toString

      public String toString()
      Sobreimplementación del método toString para que las bases de datos identifiquen la capa.
      Overrides:
      toString in class FLyrDefault
      Returns:
      DOCUMENT ME!
    • isEditing

      public boolean isEditing()
      Description copied from interface: FLayer

      Returns if this layer is editable.

      One layer is editable if user can modify its information with graphical tools.

      Specified by:
      isEditing in interface FLayer
      Overrides:
      isEditing in class FLyrDefault
      Returns:
      true if this layer is editable; false otherwise
      See Also:
    • setEditing

      public void setEditing(boolean b) throws StartEditionLayerException
      Description copied from interface: FLayer
      Do nothing.
      Specified by:
      setEditing in interface FLayer
      Overrides:
      setEditing in class FLyrDefault
      Parameters:
      b -
      Throws:
      StartEditionLayerException
    • clearSpatialCache

      public void clearSpatialCache()
    • isSpatialCacheEnabled

      public boolean isSpatialCacheEnabled()
    • setSpatialCacheEnabled

      public void setSpatialCacheEnabled(boolean spatialCacheEnabled)
    • getSpatialCache

      public SpatialCache getSpatialCache()
    • refreshSpatialCache

      public void refreshSpatialCache(org.gvsig.fmap.geom.primitive.Envelope envelope)
    • setMaxFeaturesInEditionCache

      public void setMaxFeaturesInEditionCache(int maxFeatures)
      Siempre es un numero mayor de 1000
      Parameters:
      maxFeatures -
    • isPropertiesMenuVisible

      public boolean isPropertiesMenuVisible()
      This method returns a boolean that is used by the FPopMenu to make visible the properties menu or not. It is visible by default, and if a later don't have to show this menu only has to override this method.
      Returns:
      If the properties menu is visible (or not)
    • reload

      public void reload() throws ReloadLayerException
      Description copied from interface: FLayer

      Tries recover a layer of a possible error.

      If it has any problem during the load, marks the availability to false and throws an exception.

      Specified by:
      reload in interface FLayer
      Overrides:
      reload in class FLyrDefault
      Throws:
      ReloadLayerException - if it's thrown a ReadException or an IOException during the load of this layer.
      See Also:
    • setLoadSelection

      protected void setLoadSelection(Object xml)
    • setLoadLegend

      protected void setLoadLegend(IVectorLegend legend)
    • putLoadSelection

      protected void putLoadSelection()
    • putLoadLegend

      protected void putLoadLegend() throws LegendLayerException
      Throws:
      LegendLayerException
    • cleanLoadOptions

      protected void cleanLoadOptions()
    • isWritable

      public boolean isWritable()
      Description copied from interface: FLayer

      Returns the writing status of this layer.

      One layer is writable if there is a writing driver for this layer.

      Specified by:
      isWritable in interface FLayer
      Overrides:
      isWritable in class FLyrDefault
      Returns:
      true if there is a writing driver for this layer; false otherwise
    • cloneLayer

      public FLayer cloneLayer() throws Exception
      Description copied from interface: FLayer

      This method can be used to have a fast cloned layer.

      The implementations should take care of not recreate this layer. Instead of this, is better to use the same source (driver) and deepclone the legend. Exception: the labels aren't deepcloned to avoid memory consumption.

      Note: Labels are memory consuming to speed up layers like PostGIS and so on.

      Specified by:
      cloneLayer in interface FLayer
      Overrides:
      cloneLayer in class FLyrDefault
      Returns:
      a layer that is a clonation of this layer
      Throws:
      Exception - any exception produced during the cloning of this layer.
    • isLabeled

      public boolean isLabeled()
      Description copied from interface: ILabelable
      Returns true if labels are drawn, or false otherwise.
      Specified by:
      isLabeled in interface ILabelable
      Returns:
      boolean telling if labels are drawn
    • setIsLabeled

      public void setIsLabeled(boolean isLabeled)
      Description copied from interface: ILabelable
      Enables or disables the label drawing.
      Specified by:
      setIsLabeled in interface ILabelable
      Parameters:
      isLabeled - , if true then labels will be drawn
    • getLabelingStrategy

      public ILabelingStrategy getLabelingStrategy()
      Description copied from interface: ILabelable
      Returns the current labeling strategy
      Specified by:
      getLabelingStrategy in interface ILabelable
      Returns:
      ILabelingStrategy
      See Also:
    • setLabelingStrategy

      public void setLabelingStrategy(ILabelingStrategy strategy)
      Description copied from interface: ILabelable
      Sets the new labeling strategy. Changes on the results will take effect next time the drawLabels(...) method is invoked.
      Specified by:
      setLabelingStrategy in interface ILabelable
      Parameters:
      strategy -
    • drawLabels

      public void drawLabels(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, double dpi) throws org.gvsig.fmap.dal.exception.ReadException
      Description copied from interface: ILabelable
      Causes the labels to be drawn. The policy of process is determined by the LabelingStrategy previously set.
      Specified by:
      drawLabels in interface ILabelable
      Parameters:
      image -
      g -
      viewPort -
      cancel -
      scale -
      dpi -
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • printLabels

      public void printLabels(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException
      Specified by:
      printLabels in interface ILabelable
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • allowLinks

      public boolean allowLinks()
      Return true, because a Vectorial Layer supports HyperLink
      Specified by:
      allowLinks in interface FLayer
      Overrides:
      allowLinks in class FLyrDefault
      Returns:
      false
    • load

      public void load() throws LoadLayerException
      Description copied from interface: FLayer

      Executes the initialization operations of this layer. This method is invoked only one time during the life of this layer and just before visualize it.

      Specified by:
      load in interface FLayer
      Overrides:
      load in class FLyrDefault
      Throws:
      LoadLayerException - if fails loading the layer.
      See Also:
    • getFeatureStore

      public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
      Specified by:
      getFeatureStore in interface VectorLayer
    • createFeatureQuery

      public org.gvsig.fmap.dal.feature.FeatureQuery createFeatureQuery()
      Specified by:
      createFeatureQuery in interface VectorLayer
    • queryByPoint

      public org.gvsig.fmap.dal.feature.FeatureSet queryByPoint(Point2D mapPoint, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • queryByPoint

      public org.gvsig.fmap.dal.feature.FeatureSet queryByPoint(org.gvsig.fmap.geom.primitive.Point point, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • createQueryByPoint

      public org.gvsig.fmap.dal.feature.FeatureQuery createQueryByPoint(double x, double y, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • queryByGeometry

      public org.gvsig.fmap.dal.feature.FeatureSet queryByGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Input geom must be in the CRS of the view.
      Parameters:
      geom -
      featureType -
      Returns:
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • createQueryByGeometry

      public org.gvsig.fmap.dal.feature.FeatureQuery createQueryByGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • queryByContainedInGeometry

      public org.gvsig.fmap.dal.feature.FeatureSet queryByContainedInGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • queryByEnvelope

      public org.gvsig.fmap.dal.feature.FeatureSet queryByEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      It return the FeatureSet that intersects with the envelope.
      Parameters:
      envelope - envelope that defines the area for the query.
      featureType - only the features with this feature type are used in the query.
      Returns:
      the set of features that intersect with the envelope.
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • queryByEnvelope

      public org.gvsig.fmap.dal.feature.FeatureSet queryByEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType, String[] names) throws org.gvsig.fmap.dal.exception.DataException
      It return the FeatureSet that intersects with the envelope.
      Parameters:
      envelope - envelope that defines the area for the query in viewport CRS
      featureType - only the features with this feature type are used in the query.
      names - the feature attributes that have to be checked.
      Returns:
      the set of features that intersect with the envelope.
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • queryByContainedInEnvelope

      public org.gvsig.fmap.dal.feature.FeatureSet queryByContainedInEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • queryByContainedInEnvelope

      public org.gvsig.fmap.dal.feature.FeatureSet queryByContainedInEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType, String[] names) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getInfo

      public org.gvsig.tools.dynobject.DynObjectSet getInfo(Point p, double tolerance, org.gvsig.tools.task.Cancellable cancel) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException
      Description copied from interface: InfoByPoint

      Executes a consultation about information of a point on the layer.

      There is an area around the point where will got the information.

      Specified by:
      getInfo in interface InfoByPoint
      Parameters:
      p - point where is the consultation
      tolerance - permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The coordinates also depend on the implementation.
      cancel - shared object that determines if this layer can continue being drawn
      Returns:
      a DynObjectSet. If the InfoByPoint Object is a vector layer it should return a FeatureSet.
      Throws:
      LoadLayerException - any exception produced using the driver.
      org.gvsig.fmap.dal.exception.DataException - TODO
    • getInfo

      public org.gvsig.tools.dynobject.DynObjectSet getInfo(Point p, double tolerance, org.gvsig.tools.task.Cancellable cancel, boolean fast) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException
      Description copied from interface: InfoByPoint

      Executes a consultation about information of a point on the layer.

      There is an area around the point where will got the information.

      Specified by:
      getInfo in interface InfoByPoint
      Parameters:
      p - point where is the consultation
      tolerance - permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The coordinates also depend on the implementation.
      cancel - shared object that determines if this layer can continue being drawn
      fast - if true try to reuse objects as much as possible to make the object iteration faster. If true, DynObjects got through the returned set must not be stored unless cloned.
      Returns:
      a DynObjectSet. If the InfoByPoint Object is a vector layer it should return a FeatureSet.
      Throws:
      LoadLayerException - any exception produced using the driver.
      org.gvsig.fmap.dal.exception.DataException - TODO
    • getInfo

      public org.gvsig.tools.dynobject.DynObjectSet getInfo(org.gvsig.fmap.geom.primitive.Point p, double tolerance) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException
      Description copied from interface: InfoByPoint

      Executes a consultation about information of a point on the layer.

      There is an area around the point where will got the information.

      Specified by:
      getInfo in interface InfoByPoint
      Parameters:
      p - point in map coordinates where is the consultation
      tolerance - permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The unit are in map coordinates.
      Throws:
      LoadLayerException
      org.gvsig.fmap.dal.exception.DataException
    • legendCleared

      public void legendCleared(LegendClearEvent event)
      Specified by:
      legendCleared in interface LegendContentsChangedListener
    • symbolChanged

      public boolean symbolChanged(SymbolLegendEvent e)
      Description copied from interface: LegendContentsChangedListener
      Invocado cuando se cambia en el legend el símbolo por defecto. Si cualquiera de los listeners devuelve false, el cambio no se realiza
      Specified by:
      symbolChanged in interface LegendContentsChangedListener
      Parameters:
      e - SymbolLegendEvent
      Returns:
      True si ha sido correcto.
    • update

      public void update(org.gvsig.tools.observer.Observable observable, Object notification)
      Specified by:
      update in interface org.gvsig.tools.observer.Observer
    • setLayerToSnap

      public void setLayerToSnap(boolean enable)
    • isLayerToSnap

      public boolean isLayerToSnap()
    • getMetadataChildren

      public Set getMetadataChildren()
      Specified by:
      getMetadataChildren in interface org.gvsig.metadata.Metadata
    • getMetadataID

      public Object getMetadataID() throws org.gvsig.metadata.exceptions.MetadataException
      Specified by:
      getMetadataID in interface org.gvsig.metadata.Metadata
      Throws:
      org.gvsig.metadata.exceptions.MetadataException
    • getTypeVectorLayer

      public org.gvsig.fmap.geom.type.GeometryType getTypeVectorLayer() throws org.gvsig.fmap.dal.exception.DataException, org.gvsig.tools.locator.LocatorException, org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException, org.gvsig.fmap.geom.type.GeometryTypeNotValidException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
      org.gvsig.tools.locator.LocatorException
      org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException
      org.gvsig.fmap.geom.type.GeometryTypeNotValidException
    • doDispose

      protected void doDispose() throws org.gvsig.tools.exception.BaseException
      Specified by:
      doDispose in class org.gvsig.tools.dispose.impl.AbstractDisposable
      Throws:
      org.gvsig.tools.exception.BaseException
    • fromViewPortCRSToSourceCRS

      public static org.gvsig.fmap.geom.primitive.Envelope fromViewPortCRSToSourceCRS(FLayer lyr, org.gvsig.fmap.geom.primitive.Envelope env)
      Returns envelope in layer's data source CRS from envelope provided in viewport CRS
      Parameters:
      lyr -
      env -
      Returns:
    • transformToSourceCRS

      public org.gvsig.fmap.geom.Geometry transformToSourceCRS(org.gvsig.fmap.geom.Geometry geom, boolean clone)
    • fromViewPortCRSToSourceCRS

      public static org.gvsig.fmap.geom.Geometry fromViewPortCRSToSourceCRS(FLayer lyr, org.gvsig.fmap.geom.Geometry geo, boolean clone)
      Returns geometry in layer's data source CRS from geometry provided in viewport CRS
      Parameters:
      lyr -
      geo -
      clone -
      Returns:
    • iterator

      public Iterator iterator()
    • getInfoString

      public String getInfoString()
      Description copied from interface: FLayer
      Returns an string with the information of this layer.
      Specified by:
      getInfoString in interface FLayer
      Overrides:
      getInfoString in class FLyrDefault
      Returns:
      the string that is to be this component's information
    • isTemporary

      public boolean isTemporary()
      Specified by:
      isTemporary in interface FLayer
      Overrides:
      isTemporary in class FLyrDefault
    • getDataStoreParameters

      public org.gvsig.fmap.dal.DataStoreParameters getDataStoreParameters()
    • getProjection

      public org.gvsig.crs.projection.lib.Projection getProjection()
      Description copied from interface: Projected

      Returns the current projection.

      Specified by:
      getProjection in interface Projected
      Overrides:
      getProjection in class FLyrDefault
      Returns:
      current projection
      See Also:
    • invalidate

      public void invalidate()
      Specified by:
      invalidate in interface FLayer
      Overrides:
      invalidate in class FLyrDefault
    • getProperty

      public Object getProperty(Object key)
      Description copied from interface: ExtendedPropertiesSupport

      Returns a reference to an object (property) associated to this layer.

      For example, you can attach a network definition to key "network" and check if a layer has a network loaded using getAssociatedObject("network") and that it's not null.

      Specified by:
      getProperty in interface ExtendedPropertiesSupport
      Overrides:
      getProperty in class FLyrDefault
      Parameters:
      key - the key associated to the property
      Returns:
      null if key is not found
      See Also: