org.tentackle.plaf.tplastic
Class TPlasticLookAndFeel

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
                  extended by org.tentackle.plaf.tplastic.TPlasticLookAndFeel
All Implemented Interfaces:
Serializable, TentackleLookAndFeel

public class TPlasticLookAndFeel
extends com.incors.plaf.kunststoff.KunststoffLookAndFeel
implements TentackleLookAndFeel

Extended Tentackle Kunststoff Look-And-Feel.

Notice that Kunststoff is a discontinued project. The recommended plaf is TLooks.

Author:
harald
See Also:
Serialized Form

Constructor Summary
TPlasticLookAndFeel()
           
 
Method Summary
protected  void createDefaultTheme()
          Ensures the current MetalTheme is non-null.
 String getDescription()
          Returns a short description of this look and feel.
 String getID()
          Returns an identifier for this look and feel.
 String getName()
          Returns the name of this look and feel.
static String getTPlasticDescription()
           
static String getTPlasticName()
           
protected  void initClassDefaults(UIDefaults table)
          Populates table with mappings from uiClassID to the fully qualified name of the ui class.
protected  void initComponentDefaults(UIDefaults table)
          Populates table with the defaults for metal.
 boolean isFocusAnimated()
          Retrievs the current setting for the focus animation.
 ImageIcon loadImageIcon(String name)
          Loads an image icon for the look and feel.
static void setCurrentTheme(MetalTheme theme)
           
 void setFocusAnimated(boolean flag)
          Configures the animated keyboard focus for non-text components that can grab the keyboard focus, such as comboboxes, radio buttons or check boxes.
 void uninitialize()
          Uninitializes the look and feel.
 
Methods inherited from class com.incors.plaf.kunststoff.KunststoffLookAndFeel
getBackgroundGradientShadow, getComponentGradientColorReflection, getComponentGradientColorShadow, getTextComponentGradientColorReflection, getTextComponentGradientColorShadow, initSystemColorDefaults, isNativeLookAndFeel, isSupportedLookAndFeel, putDefault, setCurrentGradientTheme
 
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
 
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

TPlasticLookAndFeel

public TPlasticLookAndFeel()
Method Detail

getTPlasticName

public static String getTPlasticName()

getTPlasticDescription

public static String getTPlasticDescription()

getName

public String getName()
Description copied from class: javax.swing.plaf.metal.MetalLookAndFeel
Returns the name of this look and feel. This returns "Metal".

Overrides:
getName in class com.incors.plaf.kunststoff.KunststoffLookAndFeel
Returns:
the name of this look and feel

getDescription

public String getDescription()
Description copied from class: javax.swing.plaf.metal.MetalLookAndFeel
Returns a short description of this look and feel. This returns "The Java(tm) Look and Feel".

Overrides:
getDescription in class com.incors.plaf.kunststoff.KunststoffLookAndFeel
Returns:
a short description for the look and feel

getID

public String getID()
Description copied from class: javax.swing.plaf.metal.MetalLookAndFeel
Returns an identifier for this look and feel. This returns "Metal".

Overrides:
getID in class com.incors.plaf.kunststoff.KunststoffLookAndFeel
Returns:
the identifier of this look and feel

createDefaultTheme

protected void createDefaultTheme()
Description copied from class: javax.swing.plaf.metal.MetalLookAndFeel
Ensures the current MetalTheme is non-null. This is a cover method for getCurrentTheme.

Overrides:
createDefaultTheme in class com.incors.plaf.kunststoff.KunststoffLookAndFeel
See Also:
MetalLookAndFeel.getCurrentTheme()

setCurrentTheme

public static void setCurrentTheme(MetalTheme theme)

uninitialize

public void uninitialize()
Description copied from class: javax.swing.plaf.basic.BasicLookAndFeel
Uninitializes the look and feel. While this method is public, it should only be invoked by the UIManager when the look and feel is uninstalled. For example, UIManager.setLookAndFeel invokes this when the look and feel is changed.

Subclasses may choose to free up some resources here.

Overrides:
uninitialize in class BasicLookAndFeel
See Also:
LookAndFeel.initialize(), UIManager.setLookAndFeel(javax.swing.LookAndFeel)

initClassDefaults

protected void initClassDefaults(UIDefaults table)
Description copied from class: javax.swing.plaf.metal.MetalLookAndFeel
Populates table with mappings from uiClassID to the fully qualified name of the ui class. MetalLookAndFeel registers an entry for each of the classes in the package javax.swing.plaf.metal that are named MetalXXXUI. The string XXX is one of Swing's uiClassIDs. For the uiClassIDs that do not have a class in metal, the corresponding class in javax.swing.plaf.basic is used. For example, metal does not have a class named "MetalColorChooserUI", as such, javax.swing.plaf.basic.BasicColorChooserUI is used.

Overrides:
initClassDefaults in class com.incors.plaf.kunststoff.KunststoffLookAndFeel
Parameters:
table - the UIDefaults instance the entries are added to
See Also:
BasicLookAndFeel.initClassDefaults(javax.swing.UIDefaults)

initComponentDefaults

protected void initComponentDefaults(UIDefaults table)
Description copied from class: javax.swing.plaf.metal.MetalLookAndFeel
Populates table with the defaults for metal.

Overrides:
initComponentDefaults in class com.incors.plaf.kunststoff.KunststoffLookAndFeel
Parameters:
table - the UIDefaults to add the values to

loadImageIcon

public ImageIcon loadImageIcon(String name)
                        throws MissingResourceException
Description copied from interface: TentackleLookAndFeel
Loads an image icon for the look and feel. The method is invoked by PlafGlobal. It allows each look and feel to provide its own icon set.

Specified by:
loadImageIcon in interface TentackleLookAndFeel
Parameters:
name - the icon's name (without extension like gif or png!)
Returns:
the loaded image icon
Throws:
MissingResourceException - if no such icon

setFocusAnimated

public void setFocusAnimated(boolean flag)
Description copied from interface: TentackleLookAndFeel
Configures the animated keyboard focus for non-text components that can grab the keyboard focus, such as comboboxes, radio buttons or check boxes. By default, the animation is enabled.

Specified by:
setFocusAnimated in interface TentackleLookAndFeel
Parameters:
flag - the boolean value which is true to enable the animation, false to turn it off

isFocusAnimated

public boolean isFocusAnimated()
Description copied from interface: TentackleLookAndFeel
Retrievs the current setting for the focus animation.

Specified by:
isFocusAnimated in interface TentackleLookAndFeel
Returns:
true if focus is animated


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de