Package adams.gui.laf

Class AbstractLookAndFeel

    • Constructor Detail

      • AbstractLookAndFeel

        public AbstractLookAndFeel()
    • Method Detail

      • getName

        public abstract String getName()
        Returns the name for this look and feel.
        Returns:
        the name
      • isAvailable

        public abstract boolean isAvailable()
        Checks whether the look and feel is available.
        Returns:
        true if available
      • doInstall

        public abstract void doInstall()
                                throws Exception
        Installs the look and feel.
        Throws:
        Exception - if installation fails
      • install

        public boolean install()
        Installs the look and feel.
        Returns:
        true if successful
      • getPropertiesFilename

        protected static String getPropertiesFilename()
        Returns the properties filename.
        Returns:
        the filename to use
      • installLookAndFeel

        public static void installLookAndFeel​(AbstractLookAndFeel laf)
        Installs the specified look and feel. If successful, uses this one as default from now on.
        Parameters:
        laf - the look and feel to use from now on
      • installLookAndFeel

        public static void installLookAndFeel()
        Installs the preferred look and feel or, if not defined, the default one.
      • getLookAndFeels

        public static Class[] getLookAndFeels()
        Returns the available look and feel classes.
        Returns:
        the look and feels
      • getCurrent

        public static AbstractLookAndFeel getCurrent()
        Returns the currently installed look and feel.
        Returns:
        the look and feel