com.jgoodies.plaf.plastic
Class PlasticLabelUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.LabelUI
          extended byjavax.swing.plaf.basic.BasicLabelUI
              extended byjavax.swing.plaf.metal.MetalLabelUI
                  extended bycom.jgoodies.plaf.plastic.PlasticLabelUI
All Implemented Interfaces:
EventListener, PropertyChangeListener

public final class PlasticLabelUI
extends MetalLabelUI

The JGoodies Plastic Look&Feel implementation of LabelUI.

It differs from its superclass in that it can replace ugly Borders.

Author:
Karsten Lentzsch

Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalLabelUI
metalLabelUI
 
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
 
Constructor Summary
PlasticLabelUI()
           
 
Method Summary
static ComponentUI createUI(JComponent x)
           
 void paint(Graphics g, JComponent c)
          Replaces the Border if appropriate, then paints.
protected  void uninstallDefaults(JLabel label)
          Restores the original Border, in case we have replaced it before.
 
Methods inherited from class javax.swing.plaf.metal.MetalLabelUI
paintDisabledText
 
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paintEnabledText, propertyChange, uninstallComponents, 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

PlasticLabelUI

public PlasticLabelUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent x)

paint

public void paint(Graphics g,
                  JComponent c)
Replaces the Border if appropriate, then paints.


uninstallDefaults

protected void uninstallDefaults(JLabel label)
Restores the original Border, in case we have replaced it before.



Copyright © 2001-2004 JGoodies Karsten Lentzsch. All Rights Reserved.