Interface IColorProvider


  • public interface IColorProvider
    This is a class that provides map of predefined and (or) users colors.
    It provides #getStyleColors(), #getWebColors(), #getSystemColors() and #getAllStyleColors() methods. The methods return a collection of color aliases. Such an alias may be fed to get a Color object associated with it.
    • Method Detail

      • getStyleColors

        Map<String,​Color> getStyleColors​(Version version)
        Retrieves color aliases that pertain to "Style" color group.
        Parameters:
        version - , the version, cannot be null
        Returns:
        map of color aliases
      • getStyleItemColors

        Map<String,​Color> getStyleItemColors​(org.eclipse.core.resources.IProject project)
        Retrieves color aliases that pertain to "Style" color group and defined in StyleElementType.COLOR type StyleItems.
        Parameters:
        project - , the project, cannot be null
        Returns:
        map of color aliases, defined in color type style items.
      • getSystemColors

        Map<String,​Color> getSystemColors​(Version version)
        Retrieves color aliases that pertain to "System" color group.
        Parameters:
        version - , the version, cannot be null
        Returns:
        map of color aliases
      • getWebColors

        Map<String,​Color> getWebColors​(Version version)
        Retrieves color aliases that pertain to "Web" color group.
        Parameters:
        version - , the version, cannot be null
        Returns:
        map of color aliases