Class FeatureLayerImpl

  • All Implemented Interfaces:
    FeatureLayer

    public class FeatureLayerImpl
    extends java.lang.Object
    implements FeatureLayer
    Default implementation of FeatureLayer.
    Since:
    12.1
    • Constructor Summary

      Constructors 
      Constructor Description
      FeatureLayerImpl()
      Constructs a FeatureLayer instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFeature​(Feature feature)
      Adds a feature to the feature layer.
      Feature getFeature​(long featureId)
      Returns the feature with the input feature ID.
      long[] getFeatureIds()
      Returns all the feature IDs in this feature layer.
      Feature[] getFeatures()
      Returns all the features in this feature layer.
      Feature[] getFeaturesOnLink​(long linkId)
      Returns the features associated with the input link.
      Feature[] getFeaturesOnNode​(long nodeId)
      Returns the features associated with the input node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FeatureLayerImpl

        public FeatureLayerImpl()
        Constructs a FeatureLayer instance.
    • Method Detail

      • getFeature

        public Feature getFeature​(long featureId)
        Description copied from interface: FeatureLayer
        Returns the feature with the input feature ID.
        Specified by:
        getFeature in interface FeatureLayer
        Returns:
      • getFeaturesOnNode

        public Feature[] getFeaturesOnNode​(long nodeId)
        Description copied from interface: FeatureLayer
        Returns the features associated with the input node.
        Specified by:
        getFeaturesOnNode in interface FeatureLayer
        Parameters:
        nodeId - ID of the node
        Returns:
      • getFeaturesOnLink

        public Feature[] getFeaturesOnLink​(long linkId)
        Description copied from interface: FeatureLayer
        Returns the features associated with the input link.
        Specified by:
        getFeaturesOnLink in interface FeatureLayer
        Parameters:
        linkId - ID of the link
        Returns:
      • getFeatureIds

        public long[] getFeatureIds()
        Description copied from interface: FeatureLayer
        Returns all the feature IDs in this feature layer.
        Specified by:
        getFeatureIds in interface FeatureLayer
        Returns: