Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by javax.swing.plaf.basic.BasicToggleButtonUI
                  extended by net.java.sip.communicator.impl.gui.lookandfeel.SIPCommToggleButtonUI
All Implemented Interfaces:
Skinnable

public class SIPCommToggleButtonUI
extends BasicToggleButtonUI
implements Skinnable

SIPCommToggleButtonUI implementation.

Author:
Yana Stamcheva, Adam Netocny

Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
SIPCommToggleButtonUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
          Creates the UI for the given JComponent.
 void installDefaults(AbstractButton b)
          Installs default configurations for the given AbstractButton.
 void loadSkin()
          Reloads buffered images.
 void paint(Graphics g, JComponent c)
          Paints this button UI.
 void uninstallDefaults(AbstractButton b)
          Uninstalls default configurations for the given AbstractButton.
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getPropertyPrefix, getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SIPCommToggleButtonUI

public SIPCommToggleButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Creates the UI for the given JComponent.

Parameters:
c - the JComponent, for which to create an UI
Returns:
the component UI

installDefaults

public void installDefaults(AbstractButton b)
Installs default configurations for the given AbstractButton.

Overrides:
installDefaults in class BasicButtonUI
Parameters:
b - the button, for which we're installing the defaults

uninstallDefaults

public void uninstallDefaults(AbstractButton b)
Uninstalls default configurations for the given AbstractButton.

Overrides:
uninstallDefaults in class BasicButtonUI
Parameters:
b - the button, for which we're uninstalling the defaults

paint

public void paint(Graphics g,
                  JComponent c)
Paints this button UI.

Overrides:
paint in class BasicToggleButtonUI
Parameters:
g - the Graphics object used for painting
c - the Component to paint

loadSkin

public void loadSkin()
Reloads buffered images.

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.