net.beeger.squareness
Class SquarenessLookAndFeel

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.beeger.squareness.SquarenessLookAndFeel
All Implemented Interfaces:
java.io.Serializable

public class SquarenessLookAndFeel
extends javax.swing.plaf.metal.MetalLookAndFeel

This is the core class of the Squareness Look And Feel.

It sets up the colors, fonts, ui delegates as well as other resources and defaults used by this look and feel.

See Also:
Serialized Form

Constructor Summary
SquarenessLookAndFeel()
           
 
Method Summary
static SquarenessTheme getCurrentSquarenessTheme()
           
 java.lang.String getDescription()
          Return the description of the look and feel.
 java.lang.String getID()
          Return the id of the look and feel.
 java.lang.String getName()
          Return the name of the look and feel.
 void initialize()
           
 boolean isNativeLookAndFeel()
          Is the look and feel a native look and feel?
 boolean isSupportedLookAndFeel()
          Is this look and feel supported on the underlying plattform?
static void loadThemePackageTheme()
           
static void setCurrentSquarenessTheme(SquarenessTheme theme)
           
 void uninitialize()
           
 
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDefaults, getDesktopColor, getDisabledIcon, getDisabledSelectedIcon, getFocusColor, getHighlightedTextColor, 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, provideErrorFeedback, setCurrentTheme
 
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

SquarenessLookAndFeel

public SquarenessLookAndFeel()
Method Detail

setCurrentSquarenessTheme

public static void setCurrentSquarenessTheme(SquarenessTheme theme)

getCurrentSquarenessTheme

public static SquarenessTheme getCurrentSquarenessTheme()

loadThemePackageTheme

public static void loadThemePackageTheme()

isNativeLookAndFeel

public boolean isNativeLookAndFeel()
Is the look and feel a native look and feel?

Overrides:
isNativeLookAndFeel in class javax.swing.plaf.metal.MetalLookAndFeel
Returns:
true if the look and feel is a native look and feel, false otherwise

isSupportedLookAndFeel

public boolean isSupportedLookAndFeel()

Is this look and feel supported on the underlying plattform?

Note: The Squareness look and feel is supported on any available plattform. So this method always returns true.

Overrides:
isSupportedLookAndFeel in class javax.swing.plaf.metal.MetalLookAndFeel
Returns:
true if the look and feel is supported on the underlying plattform, false otherwise.

getDescription

public java.lang.String getDescription()
Return the description of the look and feel.

Overrides:
getDescription in class javax.swing.plaf.metal.MetalLookAndFeel
Returns:
The description of the look and feel.

getID

public java.lang.String getID()
Return the id of the look and feel.

Overrides:
getID in class javax.swing.plaf.metal.MetalLookAndFeel
Returns:
The id of the look and feel

getName

public java.lang.String getName()
Return the name of the look and feel.

Overrides:
getName in class javax.swing.plaf.metal.MetalLookAndFeel
Returns:
The name of the look and feel.

initialize

public void initialize()
Overrides:
initialize in class javax.swing.plaf.basic.BasicLookAndFeel

uninitialize

public void uninitialize()
Overrides:
uninitialize in class javax.swing.plaf.basic.BasicLookAndFeel