smooth.metal
Class SmoothLookAndFeel

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by javax.swing.plaf.metal.MetalLookAndFeel
              extended by smooth.metal.SmoothLookAndFeel
All Implemented Interfaces:
java.io.Serializable, SmoothLookAndFeel

public class SmoothLookAndFeel
extends javax.swing.plaf.metal.MetalLookAndFeel
implements SmoothLookAndFeel

Smooth Metal Look And Feel. An enhanced version of the standard Metal Look And Feel by Sun Microsystems. This version uses the capabilities of the Java 2D API to create better looking, fully anti-aliased versions of the controls.

It is mainly intended as a technology demonstration and research project. The code is not optimized for speed or stability. Use it at your own risk.

Author:
Marcel Offermans
See Also:
Serialized Form

Field Summary
protected static java.lang.String SMOOTH_PACKAGE
           
 
Fields inherited from interface smooth.SmoothLookAndFeel
SMOOTH_BASIC
 
Constructor Summary
SmoothLookAndFeel()
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getID()
           
 java.lang.String getName()
           
protected  void initClassDefaults(javax.swing.UIDefaults uidefaults)
           
protected  void initComponentDefaults(javax.swing.UIDefaults uidefaults)
           
 boolean isAntiAliasing()
          Retrieve the current status of AA.
 void setAntiAliasing(boolean on)
          Turn anti-aliasing on or off.
 
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
createDefaultTheme, 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, 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

SMOOTH_PACKAGE

protected static final java.lang.String SMOOTH_PACKAGE
See Also:
Constant Field Values
Constructor Detail

SmoothLookAndFeel

public SmoothLookAndFeel()
Method Detail

initComponentDefaults

protected void initComponentDefaults(javax.swing.UIDefaults uidefaults)
Overrides:
initComponentDefaults in class javax.swing.plaf.metal.MetalLookAndFeel

initClassDefaults

protected void initClassDefaults(javax.swing.UIDefaults uidefaults)
Overrides:
initClassDefaults in class javax.swing.plaf.metal.MetalLookAndFeel

getID

public java.lang.String getID()
Overrides:
getID in class javax.swing.plaf.metal.MetalLookAndFeel

getDescription

public java.lang.String getDescription()
Overrides:
getDescription in class javax.swing.plaf.metal.MetalLookAndFeel

getName

public java.lang.String getName()
Overrides:
getName in class javax.swing.plaf.metal.MetalLookAndFeel

isAntiAliasing

public boolean isAntiAliasing()
Description copied from interface: SmoothLookAndFeel
Retrieve the current status of AA.

Specified by:
isAntiAliasing in interface SmoothLookAndFeel
Returns:
true if anti-aliasing, false otherwise.

setAntiAliasing

public void setAntiAliasing(boolean on)
Description copied from interface: SmoothLookAndFeel
Turn anti-aliasing on or off.

Specified by:
setAntiAliasing in interface SmoothLookAndFeel
Parameters:
on - true to turn AA on or false for off.


Licensed under the MIT license.