Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.lookandfeel
Class SIPCommLookAndFeel

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by javax.swing.plaf.metal.MetalLookAndFeel
              extended by net.java.sip.communicator.impl.gui.lookandfeel.SIPCommLookAndFeel
All Implemented Interfaces:
Serializable, Skinnable

public class SIPCommLookAndFeel
extends MetalLookAndFeel
implements Skinnable

The default SIP-Communicator look&feel.

Author:
Yana Stamcheva, Adam Netocny
See Also:
Serialized Form

Constructor Summary
SIPCommLookAndFeel()
           
 
Method Summary
 String getDescription()
          Returns the description of this look&feel.
 Icon getDisabledIcon(JComponent component, Icon icon)
          Returns the disabled icon for the given component, based on the given icon.
 String getID()
          Returns the identifier of this look&feel.
 String getName()
          Returns the name of this look&feel.
protected  void initClassDefaults(UIDefaults table)
          Initializes class defaults.
 boolean isNativeLookAndFeel()
          Returns false to indicate that this is not a native look&feel.
 boolean isSupportedLookAndFeel()
          Returns true to indicate that this look&feel is supported.
 void loadSkin()
          Reloads look&feel.
 
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
createDefaultTheme, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDefaults, getDesktopColor, 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, initComponentDefaults, initSystemColorDefaults, 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
 

Constructor Detail

SIPCommLookAndFeel

public SIPCommLookAndFeel()
Method Detail

isNativeLookAndFeel

public boolean isNativeLookAndFeel()
Returns false to indicate that this is not a native look&feel.

Overrides:
isNativeLookAndFeel in class MetalLookAndFeel
Returns:
false to indicate that this is not a native look&feel

isSupportedLookAndFeel

public boolean isSupportedLookAndFeel()
Returns true to indicate that this look&feel is supported.

Overrides:
isSupportedLookAndFeel in class MetalLookAndFeel
Returns:
false to indicate that this look&feel is supported

getDescription

public String getDescription()
Returns the description of this look&feel.

Overrides:
getDescription in class MetalLookAndFeel
Returns:
the description of this look&feel

getID

public String getID()
Returns the identifier of this look&feel.

Overrides:
getID in class MetalLookAndFeel
Returns:
the identifier of this look&feel

getName

public String getName()
Returns the name of this look&feel.

Overrides:
getName in class MetalLookAndFeel
Returns:
the name of this look&feel

initClassDefaults

protected void initClassDefaults(UIDefaults table)
Initializes class defaults.

Overrides:
initClassDefaults in class MetalLookAndFeel
Parameters:
table - the default user interface configurations table

getDisabledIcon

public Icon getDisabledIcon(JComponent component,
                            Icon icon)
Returns the disabled icon for the given component, based on the given icon.

Overrides:
getDisabledIcon in class MetalLookAndFeel
Parameters:
component - the component, for which we make a disabled icon
icon - the icon to make a disabled version for
Returns:
the created icon

loadSkin

public void loadSkin()
Reloads look&feel.

Specified by:
loadSkin in interface Skinnable

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.