Interface SelectableLayer

    • Method Detail

      • isSelected

        boolean isSelected​(GeoObject obj)
        Checks if an object is selected
        Returns:
        true if the provided object is selected
      • clearSelection

        boolean clearSelection()
        Clears all selected objects
        Returns:
        true if changes where made
      • numSelected

        int numSelected()
        Returns the number of selected objects
        Returns:
        the number of selected objects
      • getSelection

        java.util.List<GeoObject> getSelection()
        Returns all selected objects
        Returns:
      • getSelection

        java.util.List<GeoObject> getSelection​(GeoObject obj)
        Returns selected objects that are children of the provided objects GeoObject's isSubElementOf() determines if an object is children of another object
        Parameters:
        obj -
        Returns:
      • setSelection

        boolean setSelection​(java.util.List<GeoObject> objs)
        Clears selection before setting the provided objects as selected
        Parameters:
        objs -
        Returns:
      • select

        boolean select​(java.util.List<GeoObject> objs)
        Adds the provided objects to the selection list
        Parameters:
        objs -
        Returns:
      • unselect

        boolean unselect​(java.util.List<GeoObject> objs)
        Removes the provided objects from the selection list
        Parameters:
        objs -
        Returns:
      • addSelectionListener

        void addSelectionListener​(SelectionListener l)
        Adds a SelectionListener
        Parameters:
        l -
      • removeSelectionListener

        void removeSelectionListener​(SelectionListener l)
        Removes the given SelectionListener
        Parameters:
        l -