API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.metal. MetalLabelUI View Source
Author(s)
Hans Muller
Since
Version
1.15 11/30/05
Serial
Hierarchy
 Object
      ComponentUI
          LabelUI
              BasicLabelUI
                  MetalLabelUI
Implements
Subclasses
Description
public class MetalLabelUI
  A Windows L&F implementation of LabelUI.
See also:   
Constructors
public MetalLabelUI ()
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 BasicLabelUI]
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) [Inherited From BasicLabelUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From BasicLabelUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
public Dimension getMaximumSize (JComponent c) [Inherited From BasicLabelUI]
 
public Dimension getMinimumSize (JComponent c) [Inherited From BasicLabelUI]
 
public Dimension getPreferredSize (JComponent c) [Inherited From BasicLabelUI]
protected void installComponents (JLabel c) [Inherited From BasicLabelUI]
protected void installDefaults (JLabel c) [Inherited From BasicLabelUI]
protected void installKeyboardActions (JLabel l) [Inherited From BasicLabelUI]
protected void installListeners (JLabel c) [Inherited From BasicLabelUI]
public void installUI (JComponent c) [Inherited From BasicLabelUI]
protected String layoutCL (JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) [Inherited From BasicLabelUI]
  Forwards the call to SwingUtilities.layoutCompoundLabel().
public void paint (Graphics g, JComponent c) [Inherited From BasicLabelUI]
  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) [Overrides BasicLabelUI]
  Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color.
protected void paintEnabledText (JLabel l, Graphics g, String s, int textX, int textY) [Inherited From BasicLabelUI]
  Paint clippedText at textX, textY with the labels foreground color.
public void propertyChange (PropertyChangeEvent e) [Inherited From BasicLabelUI]
protected void uninstallComponents (JLabel c) [Inherited From BasicLabelUI]
protected void uninstallDefaults (JLabel c) [Inherited From BasicLabelUI]
protected void uninstallKeyboardActions (JLabel c) [Inherited From BasicLabelUI]
protected void uninstallListeners (JLabel c) [Inherited From BasicLabelUI]
public void uninstallUI (JComponent c) [Inherited From BasicLabelUI]
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 [Inherited From BasicLabelUI]
  The default BasicLabelUI instance.
protectedstatic MetalLabelUI metalLabelUI
  The default MetalLabelUI instance.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar