Class NFEPathRenderer

    • Constructor Detail

      • NFEPathRenderer

        public NFEPathRenderer​(MapCanvas canvas,
                               NFEModel model,
                               long pathFeatureId)
        /** Allocates a new path layer renderer.
        Parameters:
        canvas - the MapCanvas where the layer will be rendered
        model - the feature layer's model
        pathFeatureId - the feature layer's ID
    • Method Detail

      • synchronizeWithModel

        public void synchronizeWithModel()
        Updates the state to reflect the feature layer's state and refreshes the view.
      • isShowFlow

        public boolean isShowFlow()
        Tells whether the line features flow is shown.
        Returns:
        true if the flow is shown
      • setShowFlow

        public void setShowFlow​(boolean showFlow)
        Sets whether the line features flow should be shown.
        Parameters:
        showFlow - true if the flow is shown
      • getGeoObjects

        protected java.util.Collection<NFEFeatureElementGeoObject> getGeoObjects​(java.awt.geom.Point2D point,
                                                                                 int granularity)
        Description copied from class: NFERenderer
        Gets all the GeoObjects interacting with the given point
        Specified by:
        getGeoObjects in class NFERenderer<NFEFeatureElementGeoObject>
        Parameters:
        point - a spatial point in screen coordinate system
        Returns:
        a collection containing all the GeoObjects interacting with the point
      • getGeoObjects

        protected java.util.Collection<NFEFeatureElementGeoObject> getGeoObjects​(java.awt.geom.Rectangle2D rect)
        Description copied from class: NFERenderer
        Gets all the GeoObjects interacting with the given rectangle
        Specified by:
        getGeoObjects in class NFERenderer<NFEFeatureElementGeoObject>
        Parameters:
        rect - a rectangle in screen coordinate system
        Returns:
        a collection containing all the GeoObjects interacting with the rectangle
      • belongsToTier

        protected boolean belongsToTier​(NFEFeatureElementGeoObject geoObj,
                                        java.lang.String tierName)
        Description copied from class: NFERenderer
        Tells whether the GeoObject is rendered by the given tier
        Specified by:
        belongsToTier in class NFERenderer<NFEFeatureElementGeoObject>
        Parameters:
        geoObj - a layer's GeoObject
        tierName - a tier name
        Returns:
        true if the GeoObject is rendered by (belongs to) the given tier
      • getPathFeature

        public NFEFeature getPathFeature()
        Returns the path feature.
        Returns:
        path feature
      • modelObjectsAdded

        public void modelObjectsAdded​(NFEModelObjectsEvent event)
        Description copied from interface: NFEModelListener
        Invoked when one or more model objects have been added
        Specified by:
        modelObjectsAdded in interface NFEModelListener
        Parameters:
        event - contains a collection of references to the model objects that have been added
      • modelObjectsRemoved

        public void modelObjectsRemoved​(NFEModelObjectsEvent event)
        Description copied from interface: NFEModelListener
        Invoked when one or more model objects have been removed
        Specified by:
        modelObjectsRemoved in interface NFEModelListener
        Parameters:
        event - contains a collection of references to the model objects that have been removed