API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. BasicLabelUI View Source
Author(s)
Hans Muller
Since
Version
1.91 03/20/06
Serial
Hierarchy
 Object
      ComponentUI
          LabelUI
              BasicLabelUI
Implements
 PropertyChangeListener
Subclasses
Description
public class BasicLabelUI
  A Windows L&F implementation of LabelUI.
See also:   
Constructors
public BasicLabelUI ()
Methods
Hide/Show inherited methods
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
publicstatic ComponentUI createUI (JComponent c) [Overrides ComponentUI]
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
public int getBaseline (JComponent c, int width, int height) [Overrides ComponentUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Overrides ComponentUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
public Dimension getMaximumSize (JComponent c) [Overrides ComponentUI]
 
public Dimension getMinimumSize (JComponent c) [Overrides ComponentUI]
 
public Dimension getPreferredSize (JComponent c) [Overrides ComponentUI]
protected void installComponents (JLabel c)
protected void installDefaults (JLabel c)
protected void installKeyboardActions (JLabel l)
protected void installListeners (JLabel c)
public void installUI (JComponent c) [Overrides ComponentUI]
protected String layoutCL (JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
  Forwards the call to SwingUtilities.layoutCompoundLabel().
pack-privatestatic void loadActionMap (LazyActionMap map)
public void paint (Graphics g, JComponent c) [Overrides ComponentUI]
  Paint the label text in the foreground color, if the label is opaque then paint the entire background with the background color.
protected void paintDisabledText (JLabel l, Graphics g, String s, int textX, int textY)
  Paint clippedText at textX, textY with background.lighter() and then shifted down and to the right by one pixel with background.darker().
protected void paintEnabledText (JLabel l, Graphics g, String s, int textX, int textY)
  Paint clippedText at textX, textY with the labels foreground color.
public void propertyChange (PropertyChangeEvent e) [Specified in PropertyChangeListener]
protected void uninstallComponents (JLabel c)
protected void uninstallDefaults (JLabel c)
protected void uninstallKeyboardActions (JLabel c)
protected void uninstallListeners (JLabel c)
public void uninstallUI (JComponent c) [Overrides ComponentUI]
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
Fields
Hide/Show inherited fields
protectedstatic BasicLabelUI labelUI
  The default BasicLabelUI instance.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar