net.sf.freecol.client.gui.plaf
Class FreeColLookAndFeel

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by javax.swing.plaf.metal.MetalLookAndFeel
              extended by net.sf.freecol.client.gui.plaf.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

Constructor Summary
FreeColLookAndFeel(java.awt.Dimension windowSize)
          Initiates a new "FreeCol Look and Feel".
FreeColLookAndFeel(java.lang.String dataFolder, java.awt.Dimension windowSize)
          Initiates a new "FreeCol Look and Feel".
 
Method Summary
 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.
 
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
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, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setCurrentTheme
 
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
initialize, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FreeColLookAndFeel

public FreeColLookAndFeel(java.awt.Dimension windowSize)
                   throws FreeColException
Initiates a new "FreeCol Look and Feel".

Parameters:
windowSize - The size of the application window.
Throws:
FreeColException - If the ui directory could not be found.

FreeColLookAndFeel

public FreeColLookAndFeel(java.lang.String dataFolder,
                          java.awt.Dimension windowSize)
                   throws FreeColException
Initiates a new "FreeCol Look and Feel".

Parameters:
dataFolder - The home of the FreeCol data files.
windowSize - The size of the application window.
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.

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"