org.tentackle.plaf.tlooks
Class TLooksLookAndFeel

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.jgoodies.looks.plastic.PlasticLookAndFeel
                  extended by com.jgoodies.looks.plastic.Plastic3DLookAndFeel
                      extended by org.tentackle.plaf.tlooks.TLooksLookAndFeel
All Implemented Interfaces:
Serializable, TentackleLookAndFeel
Direct Known Subclasses:
TLooksBlueLookAndFeel

public class TLooksLookAndFeel
extends com.jgoodies.looks.plastic.Plastic3DLookAndFeel
implements TentackleLookAndFeel

Extended JGoodies Look-And-Feel for Tentackle.

Author:
harald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jgoodies.looks.plastic.PlasticLookAndFeel
BORDER_STYLE_KEY, DEFAULT_THEME_KEY, HIGH_CONTRAST_FOCUS_ENABLED_KEY, IS_3D_KEY, TAB_STYLE_DEFAULT_VALUE, TAB_STYLE_KEY, TAB_STYLE_METAL_VALUE
 
Constructor Summary
TLooksLookAndFeel()
           
 
Method Summary
 void configureTLooksLookAndFeel()
           
 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 getTLooksDescription()
           
static String getTLooksName()
           
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.
protected  Object loadLooksIcon(String name)
          Loads an icon.
 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.
 
Methods inherited from class com.jgoodies.looks.plastic.Plastic3DLookAndFeel
installDefaultThemes, is3DEnabled
 
Methods inherited from class com.jgoodies.looks.plastic.PlasticLookAndFeel
createMyDefaultTheme, createTheme, getControl, getControlDarkShadow, getControlHighlight, getDisabledIcon, getFocusColor, getFontPolicy, getHighContrastFocusColorsEnabled, getInstalledThemes, getInternalFrameBorder, getMenuItemBackground, getMenuItemSelectedBackground, getMenuItemSelectedForeground, getMicroLayoutPolicy, getPaletteBorder, getPlasticTheme, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSimpleInternalFrameBackground, getSimpleInternalFrameForeground, getTabStyle, getTitleTextColor, getTitleTextFont, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, initialize, initSystemColorDefaults, installTheme, isSelectTextOnKeyboardFocusGained, set3DEnabled, setFontPolicy, setHighContrastFocusColorsEnabled, setMicroLayoutPolicy, setPlasticTheme, setSelectTextOnKeyboardFocusGained, setTabStyle, uninitialize
 
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
createDefaultTheme, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControlDisabled, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDefaults, getDesktopColor, getDisabledSelectedIcon, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleFont, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setCurrentTheme
 
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, 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

TLooksLookAndFeel

public TLooksLookAndFeel()
Method Detail

configureTLooksLookAndFeel

public void configureTLooksLookAndFeel()

getTLooksName

public static String getTLooksName()

getTLooksDescription

public static String getTLooksDescription()

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.jgoodies.looks.plastic.Plastic3DLookAndFeel
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.jgoodies.looks.plastic.Plastic3DLookAndFeel
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.jgoodies.looks.plastic.Plastic3DLookAndFeel
Returns:
the identifier of this look and feel

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.jgoodies.looks.plastic.PlasticLookAndFeel
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.jgoodies.looks.plastic.Plastic3DLookAndFeel
Parameters:
table - the UIDefaults to add the values to

loadLooksIcon

protected Object loadLooksIcon(String name)
Loads an icon. This is the "missing" method in PlasticLookAndFeel. Override this method if you don't want the icons to be loaded from the Looks archive.

Parameters:
name - the icon name
Returns:
the icon

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