org.jvnet.substance
Class SubstanceLabelUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.LabelUI
          extended by javax.swing.plaf.basic.BasicLabelUI
              extended by org.jvnet.substance.SubstanceLabelUI
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class SubstanceLabelUI
extends javax.swing.plaf.basic.BasicLabelUI

UI for labels in Substance look and feel.

Author:
Kirill Grouchnikov

Field Summary
protected  java.beans.PropertyChangeListener substancePropertyChangeListener
          Property change listener.
 
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
 
Constructor Summary
SubstanceLabelUI()
          Creates a new UI delegate for labels.
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
           
protected  void installDefaults(javax.swing.JLabel c)
           
protected  void installListeners(javax.swing.JLabel c)
           
protected  void paintDisabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
           
protected  void replaceThemedIcon(javax.swing.JLabel label)
          Replaces the label icon with a themed version of that icon.
protected  void uninstallDefaults(javax.swing.JLabel c)
           
protected  void uninstallListeners(javax.swing.JLabel c)
           
 void update(java.awt.Graphics g, javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installKeyboardActions, installUI, layoutCL, paint, paintEnabledText, propertyChange, uninstallComponents, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

substancePropertyChangeListener

protected java.beans.PropertyChangeListener substancePropertyChangeListener
Property change listener.

Constructor Detail

SubstanceLabelUI

public SubstanceLabelUI()
Creates a new UI delegate for labels.

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)

replaceThemedIcon

protected void replaceThemedIcon(javax.swing.JLabel label)
Replaces the label icon with a themed version of that icon.

Parameters:
label - Label.

installDefaults

protected void installDefaults(javax.swing.JLabel c)
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicLabelUI

uninstallDefaults

protected void uninstallDefaults(javax.swing.JLabel c)
Overrides:
uninstallDefaults in class javax.swing.plaf.basic.BasicLabelUI

installListeners

protected void installListeners(javax.swing.JLabel c)
Overrides:
installListeners in class javax.swing.plaf.basic.BasicLabelUI

uninstallListeners

protected void uninstallListeners(javax.swing.JLabel c)
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicLabelUI

paintDisabledText

protected void paintDisabledText(javax.swing.JLabel l,
                                 java.awt.Graphics g,
                                 java.lang.String s,
                                 int textX,
                                 int textY)
Overrides:
paintDisabledText in class javax.swing.plaf.basic.BasicLabelUI

update

public void update(java.awt.Graphics g,
                   javax.swing.JComponent c)
Overrides:
update in class javax.swing.plaf.ComponentUI