com.incors.plaf.kunststoff
Class KunststoffLookAndFeel

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by javax.swing.plaf.metal.MetalLookAndFeel
              extended by com.incors.plaf.kunststoff.KunststoffLookAndFeel
All Implemented Interfaces:
java.io.Serializable

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

The main class for the Kunststoff Look&Feel.

See Also:
Serialized Form

Constructor Summary
KunststoffLookAndFeel()
           
 
Method Summary
protected  void createDefaultTheme()
           
static int getBackgroundGradientShadow()
          Returns the background shadow color for JList.
static javax.swing.plaf.ColorUIResource getComponentGradientColorReflection()
          Returns the reflection color for a standard component (such as JButton).
static javax.swing.plaf.ColorUIResource getComponentGradientColorShadow()
          Returns the shadow color for a standard component (such as JButton).
 java.lang.String getDescription()
           
 java.lang.String getID()
           
 java.lang.String getName()
           
static javax.swing.plaf.ColorUIResource getTextComponentGradientColorReflection()
          Returns the reflection color for a text component (such as JTextField).
static javax.swing.plaf.ColorUIResource getTextComponentGradientColorShadow()
          Returns the reflection color for a text component (such as JTextField).
protected  void initClassDefaults(javax.swing.UIDefaults table)
           
protected  void initComponentDefaults(javax.swing.UIDefaults table)
           
protected  void initSystemColorDefaults(javax.swing.UIDefaults table)
           
 boolean isNativeLookAndFeel()
           
 boolean isSupportedLookAndFeel()
           
protected  void putDefault(javax.swing.UIDefaults table, java.lang.String uiKey)
           
static void setCurrentGradientTheme(GradientTheme theme)
          Sets the theme that defines the colors for gradients.
static void setCurrentTheme(javax.swing.plaf.metal.MetalTheme theme)
          Sets the current color theme.
 
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
 
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
 

Constructor Detail

KunststoffLookAndFeel

public KunststoffLookAndFeel()
Method Detail

getID

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

getName

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

getDescription

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

isNativeLookAndFeel

public boolean isNativeLookAndFeel()
Overrides:
isNativeLookAndFeel in class javax.swing.plaf.metal.MetalLookAndFeel

isSupportedLookAndFeel

public boolean isSupportedLookAndFeel()
Overrides:
isSupportedLookAndFeel in class javax.swing.plaf.metal.MetalLookAndFeel

initClassDefaults

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

putDefault

protected void putDefault(javax.swing.UIDefaults table,
                          java.lang.String uiKey)

createDefaultTheme

protected void createDefaultTheme()
Overrides:
createDefaultTheme in class javax.swing.plaf.metal.MetalLookAndFeel

setCurrentGradientTheme

public static void setCurrentGradientTheme(GradientTheme theme)
Sets the theme that defines the colors for gradients.


setCurrentTheme

public static void setCurrentTheme(javax.swing.plaf.metal.MetalTheme theme)
Sets the current color theme. This works exactly as with the MetalLookAndFeel. Note that for customizing the gradients the method setCurrentGradientTheme() must be used.


initSystemColorDefaults

protected void initSystemColorDefaults(javax.swing.UIDefaults table)
Overrides:
initSystemColorDefaults in class javax.swing.plaf.metal.MetalLookAndFeel

initComponentDefaults

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

getComponentGradientColorReflection

public static javax.swing.plaf.ColorUIResource getComponentGradientColorReflection()
Returns the reflection color for a standard component (such as JButton).


getComponentGradientColorShadow

public static javax.swing.plaf.ColorUIResource getComponentGradientColorShadow()
Returns the shadow color for a standard component (such as JButton).


getTextComponentGradientColorReflection

public static javax.swing.plaf.ColorUIResource getTextComponentGradientColorReflection()
Returns the reflection color for a text component (such as JTextField).


getTextComponentGradientColorShadow

public static javax.swing.plaf.ColorUIResource getTextComponentGradientColorShadow()
Returns the reflection color for a text component (such as JTextField).


getBackgroundGradientShadow

public static int getBackgroundGradientShadow()
Returns the background shadow color for JList. In future we might also use this color for the background of JTree.