Class Theme

  • All Implemented Interfaces:
    SubSystem

    @Singleton
    public class Theme
    extends java.lang.Object
    implements SubSystem
    Enum that contains available themes.

    Change config setting Theme.Base to select one.

    • Constructor Summary

      Constructors 
      Constructor Description
      Theme​(PlanFiles files, PlanConfig config, net.playeranalytics.plugin.server.PluginLogger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disable()
      Performs disable actions for the subsystem
      void enable()
      Performs enable actions for the subsystem.
      java.lang.String[] getPieColors​(ThemeVal variable)  
      java.lang.String getValue​(ThemeVal variable)  
      java.lang.String replaceThemeColors​(java.lang.String resourceString)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Theme

        @Inject
        public Theme​(PlanFiles files,
                     PlanConfig config,
                     net.playeranalytics.plugin.server.PluginLogger logger)
    • Method Detail

      • getValue

        public java.lang.String getValue​(ThemeVal variable)
      • getPieColors

        public java.lang.String[] getPieColors​(ThemeVal variable)
      • enable

        public void enable()
        Description copied from interface: SubSystem
        Performs enable actions for the subsystem.
        Specified by:
        enable in interface SubSystem
      • disable

        public void disable()
        Description copied from interface: SubSystem
        Performs disable actions for the subsystem
        Specified by:
        disable in interface SubSystem
      • replaceThemeColors

        public java.lang.String replaceThemeColors​(java.lang.String resourceString)