org.openbp.swing.plaf.sky
Class SkyLabelUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.LabelUI
          extended by javax.swing.plaf.basic.BasicLabelUI
              extended by javax.swing.plaf.metal.MetalLabelUI
                  extended by org.openbp.swing.plaf.sky.SkyLabelUI
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class SkyLabelUI
extends javax.swing.plaf.metal.MetalLabelUI

UI for JLabels. This class is a singleton.

Author:
Heiko Erhardt

Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalLabelUI
metalLabelUI
 
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
 
Constructor Summary
SkyLabelUI()
          Default constructor.
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Returns the singleton instance of the UI.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paint method of the label.
 
Methods inherited from class javax.swing.plaf.metal.MetalLabelUI
paintDisabledText
 
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, 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

SkyLabelUI

public SkyLabelUI()
Default constructor.

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Returns the singleton instance of the UI.

Parameters:
c - Component to use the ui for
Returns:
The ui

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paint method of the label. Copied from BasicLabelUI. If the label text is clipped (i. e. ends with "..."), the tool tip of the label is set to display the entire text if it is not set already.

Overrides:
paint in class javax.swing.plaf.basic.BasicLabelUI
Parameters:
g - Graphics context
c - Component to paint


Copyright © 2011. All Rights Reserved.