Class FreeColLookAndFeel

  • All Implemented Interfaces:
    java.io.Serializable

    public class FreeColLookAndFeel
    extends javax.swing.plaf.metal.MetalLookAndFeel
    Implements the FreeCol look and feel.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String brightPanelUI  
      private static java.util.logging.Logger logger  
      private static java.lang.String transparentPanelUI  
      private static java.lang.Class[] uiClasses  
    • Constructor Summary

      Constructors 
      Constructor Description
      FreeColLookAndFeel()
      Initiates a new FreeCol look and feel.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.UIDefaults getDefaults()
      Creates the look and feel specific defaults table.
      java.lang.String getDescription()
      Gets a one line description of this Look and Feel.
      java.lang.String getName()
      Gets the name of this Look and Feel.
      static void install​(FreeColLookAndFeel fclaf)
      Installs a FreeColLookAndFeel as the default look and feel.
      static void installFont​(java.awt.Font defaultFont)
      Set the default font in all UI elements.
      • Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel

        createDefaultTheme, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDesktopColor, getDisabledIcon, getDisabledSelectedIcon, getFocusColor, getHighlightedTextColor, getID, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleFont, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, initClassDefaults, initComponentDefaults, initSystemColorDefaults, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setCurrentTheme
      • Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel

        createAudioAction, getAudioActionMap, initialize, loadSystemColors, playSound, uninitialize
      • Methods inherited from class javax.swing.LookAndFeel

        getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
      • transparentPanelUI

        private static final java.lang.String transparentPanelUI
        See Also:
        Constant Field Values
      • uiClasses

        private static final java.lang.Class[] uiClasses
    • Constructor Detail

      • FreeColLookAndFeel

        public FreeColLookAndFeel()
                           throws FreeColException
        Initiates a new FreeCol look and feel.
        Throws:
        FreeColException - If the ui directory could not be found.
    • Method Detail

      • getDefaults

        public javax.swing.UIDefaults getDefaults()
        Creates the look and feel specific defaults table.
        Overrides:
        getDefaults in class javax.swing.plaf.metal.MetalLookAndFeel
        Returns:
        The defaults table.
      • install

        public static void install​(FreeColLookAndFeel fclaf)
                            throws FreeColException
        Installs a FreeColLookAndFeel as the default look and feel.
        Parameters:
        fclaf - The FreeColLookAndFeel to install.
        Throws:
        FreeColException - if the installation fails.
      • installFont

        public static void installFont​(java.awt.Font defaultFont)
        Set the default font in all UI elements.
        Parameters:
        defaultFont - A Font to use by default.
      • getDescription

        public java.lang.String getDescription()
        Gets a one line description of this Look and Feel.
        Overrides:
        getDescription in class javax.swing.plaf.metal.MetalLookAndFeel
        Returns:
        "The default Look and Feel for FreeCol"
      • getName

        public java.lang.String getName()
        Gets the name of this Look and Feel.
        Overrides:
        getName in class javax.swing.plaf.metal.MetalLookAndFeel
        Returns:
        "FreeCol Look and Feel"