Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
javax.swing.plaf.metal.MetalLabelUI
public class MetalLabelUI
A Windows L&F implementation of LabelUI. This implementation is completely static, i.e. there's only one UIView implementation that's shared by all JLabel objects.
| Field Summary | |
|---|---|
protected static MetalLabelUI |
metalLabelUI
|
| Fields inherited from class javax.swing.plaf.basic.BasicLabelUI |
|---|
labelUI |
| Constructor Summary | |
|---|---|
MetalLabelUI()
|
|
| Method Summary | |
|---|---|
static ComponentUI |
createUI(JComponent c)
|
protected void |
paintDisabledText(JLabel l,
Graphics g,
String s,
int textX,
int textY)
Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color. |
| Methods inherited from class javax.swing.plaf.basic.BasicLabelUI |
|---|
getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paint, 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 |
| Field Detail |
|---|
protected static MetalLabelUI metalLabelUI
| Constructor Detail |
|---|
public MetalLabelUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
protected void paintDisabledText(JLabel l,
Graphics g,
String s,
int textX,
int textY)
paintDisabledText in class BasicLabelUIBasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent),
BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.