Class IconRepositoryManager

    • Constructor Detail

      • IconRepositoryManager

        public IconRepositoryManager()
    • Method Detail

      • setIconMapping

        public String setIconMapping​(Vertex vertex,
                                     String newIconId)
        Description copied from interface: IconManager
        Sets a new icon mapping from the Vertex to the newIconId.
        Specified by:
        setIconMapping in interface IconManager
        Parameters:
        vertex - the vertex to map
        newIconId - the icon id to map the vertex to
        Returns:
        the icon key of the vertex if this IconManager was able to save the mapping, null otherwise
      • removeIconMapping

        public boolean removeIconMapping​(Vertex vertex)
        Description copied from interface: IconManager
        Removes the icon mapping for the Vertex if defined.
        Specified by:
        removeIconMapping in interface IconManager
        Parameters:
        vertex - the Vertex to remove the icon mapping for
        Returns:
        true if the mapping was removed, false if no icon mapping was found for the provided Vertex and therefore could not be removed
      • getSVGIconId

        public String getSVGIconId​(Vertex vertex)
        Description copied from interface: IconManager
        Returns the icon id assigned to the provided Vertex.
        Specified by:
        getSVGIconId in interface IconManager
        Parameters:
        vertex - the vertex to get the icon id for
        Returns:
        the icon id assigned to the provided Vertex
      • getSVGIconId

        public String getSVGIconId​(String iconKey)
        Description copied from interface: IconManager
        Returns the icon id assigned to the provided iconKey.
        Specified by:
        getSVGIconId in interface IconManager
        Parameters:
        iconKey - the iconKey to look up
        Returns:
        the icon id assigned to the provided iconKey
      • getSVGIconFiles

        public List<String> getSVGIconFiles()
        Description copied from interface: IconManager
        Returns the list of available svg-files, e.g. 'theme://svg/file.svg'.
        Specified by:
        getSVGIconFiles in interface IconManager
        Returns:
        the list of available svg-files, e.g. 'theme://svg/file.svg'