org.tentackle.plaf.tmetal
Class TMetalLookAndFeel

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by javax.swing.plaf.metal.MetalLookAndFeel
              extended by org.tentackle.plaf.tmetal.TMetalLookAndFeel
All Implemented Interfaces:
Serializable, TentackleLookAndFeel
Direct Known Subclasses:
TOceanLookAndFeel

public class TMetalLookAndFeel
extends MetalLookAndFeel
implements TentackleLookAndFeel

Extended Tentackle Metal Look And Feel.

Author:
harald
See Also:
Serialized Form

Constructor Summary
TMetalLookAndFeel()
          Creates a new instance of TMetalLookAndFeel
 
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 getTMetalDescription()
           
static String getTMetalName()
           
protected  void initClassDefaults(UIDefaults table)
          overridden to install special TMetal UI
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)
          Implements TentackleLookAndFeel.
static void setCurrentTheme(MetalTheme theme)
          Sets the current color 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()
          UIManager.setLookAndFeel calls this method just before we're replaced by a new default look and feel.
 
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, initSystemColorDefaults, isNativeLookAndFeel, isSupportedLookAndFeel, 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

TMetalLookAndFeel

public TMetalLookAndFeel()
Creates a new instance of TMetalLookAndFeel

Method Detail

getTMetalName

public static String getTMetalName()

getTMetalDescription

public static String getTMetalDescription()

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 MetalLookAndFeel
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 MetalLookAndFeel
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 MetalLookAndFeel
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 MetalLookAndFeel
See Also:
MetalLookAndFeel.getCurrentTheme()

setCurrentTheme

public static void setCurrentTheme(MetalTheme theme)
Sets the current color theme.


uninitialize

public void uninitialize()
UIManager.setLookAndFeel calls this method just before we're replaced by a new default look and feel. Subclasses may choose to free up some resources here.

Overrides:
uninitialize in class BasicLookAndFeel
See Also:
BasicLookAndFeel.initialize()

initClassDefaults

protected void initClassDefaults(UIDefaults table)
overridden to install special TMetal UI

Overrides:
initClassDefaults in class MetalLookAndFeel
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 MetalLookAndFeel
Parameters:
table - the UIDefaults to add the values to

loadImageIcon

public ImageIcon loadImageIcon(String name)
                        throws MissingResourceException
Implements TentackleLookAndFeel.

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)
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()
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