Class ColorUtils


  • public final class ColorUtils
    extends java.lang.Object
    Class with utilities connected to Comet Colors
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CUSTOM_CONFIG_NAME_PREFIX
      Prefix for the custom config files.
    • Field Detail

      • CUSTOM_CONFIG_NAME_PREFIX

        public static final java.lang.String CUSTOM_CONFIG_NAME_PREFIX
        Prefix for the custom config files.
        See Also:
        Constant Field Values
    • Method Detail

      • getColors

        public static CometColors getColors()
                                     throws ConfigManagerException,
                                            javax.xml.bind.JAXBException
        Method to get the Comet Colors both from the standard and custom config
        Returns:
        returns merged Comet colors from the config and custom config
        Throws:
        ConfigManagerException
        javax.xml.bind.JAXBException
      • getConfigClass

        protected java.lang.Class<CometColors> getConfigClass()
      • getConfigMergedWithCustom

        protected T getConfigMergedWithCustom​(java.lang.String configFolder,
                                              java.lang.String configName)
                                       throws ConfigManagerException,
                                              javax.xml.bind.JAXBException
        Throws:
        ConfigManagerException
        javax.xml.bind.JAXBException
      • getConfig

        protected T getConfig​(java.lang.String configFolder,
                              java.lang.String configName)
                       throws ConfigManagerException,
                              javax.xml.bind.JAXBException
        Throws:
        ConfigManagerException
        javax.xml.bind.JAXBException