Class NFEFeatureElementSelectionTool

    • Constructor Detail

      • NFEFeatureElementSelectionTool

        public NFEFeatureElementSelectionTool​(MapCanvas canvas,
                                              NFEModel model)
        Allocates a new feature element selection tool
        Parameters:
        canvas - the current MapCanvas
        model - the current NFE model
    • Method Detail

      • getSelectableGeoObjectPriority

        protected int getSelectableGeoObjectPriority​(GeoObject geoObj,
                                                     java.awt.geom.Point2D srsMousePoint)
        Description copied from class: NFESelectionTool
        Gets the GeoObject priority to be selected. Selection priority is needed as more than one element may be interacting with the mouse point when selecting.
        Specified by:
        getSelectableGeoObjectPriority in class NFESelectionTool
        Parameters:
        geoObj - a selectable GeoObject
        srsMousePoint - the mouse point in model's coordinate system
        Returns:
      • getSelectableLayers

        protected java.util.Collection<Layer> getSelectableLayers()
        Description copied from class: NFESelectionTool
        Gets all the layers containing GeoObjects that may be selected by the tool
        Specified by:
        getSelectableLayers in class NFESelectionTool
        Returns:
        a collection of layers
      • isPoint

        protected boolean isPoint​(GeoObject geoObj)
        Tells whether the GeoObject's shape is a point
        Parameters:
        geoObj - a GeoObject
        Returns:
        true if the GeoObject is a point