Interface LayerManager

  • All Superinterfaces:
    javax.swing.Action, java.awt.event.ActionListener, java.util.EventListener, Feature, Initializable, java.beans.PropertyChangeListener
    All Known Implementing Classes:
    LayerManagerPanel

    public interface LayerManager
    extends Feature
    • Method Detail

      • findLayerByTitle

        Layer findLayerByTitle​(java.lang.String layerTitle,
                               java.lang.String groupTitle)
      • addGroup

        void addGroup​(LayerPath pathToGroup)
      • removeLayer

        void removeLayer​(Layer layer)
      • redraw

        void redraw()
      • scrollToLayer

        void scrollToLayer​(Layer layer)
      • selectLayer

        void selectLayer​(Layer layer,
                         boolean tf)
      • getDefaultGroupPath

        LayerPath getDefaultGroupPath()
        Returns a path to the group node of the default layer group, which is the group holding the base layers.
        Returns:
        a path to the default group node.
      • removeLayers

        void removeLayers​(LayerList layerList)
      • removeLayer

        void removeLayer​(LayerPath path)
      • getLayerFromPath

        Layer getLayerFromPath​(LayerPath path)
        Returns the layer at the end of a specified path.
        Parameters:
        path - the path to the layer.
        Returns:
        the layer at the end of the path, or null if no layer is there.
      • expandGroup

        void expandGroup​(java.lang.String groupName)
        Expands the display of the group so that all layers are visibly listed.
        Parameters:
        groupName - the name of the group.
      • enableGroupSelection

        void enableGroupSelection​(LayerPath path,
                                  boolean tf)
        Enables or disables the ability to select a group as a whole and therby enable or disable all layers in that group. For some layer groups, such as the base group, it's not appropriate to turn them all on or all off.
        Parameters:
        path - the path to the group.
        tf - true if group selection should be allowed, false if group selection should not be allowed.
      • containsPath

        boolean containsPath​(LayerPath pathToGroup)
      • expandPath

        void expandPath​(LayerPath path)