public class CustomLabelUI extends BasicLabelUI
BasicLabelUIlabelUI| Constructor and Description |
|---|
CustomLabelUI() |
| Modifier and Type | Method and Description |
|---|---|
static CustomLabelUI |
createUI(JComponent c)
Implicit constructor, called by Swing with a particular component in
order to have something for drawing labels to the screen.
|
String |
getText()
Returns the text displayed in the label.
|
protected String |
layoutCL(JLabel label,
FontMetrics fontMetrics,
String text,
Icon icon,
Rectangle viewR,
Rectangle iconR,
Rectangle textR) |
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, paint, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updatepublic static CustomLabelUI createUI(JComponent c)
public String getText()
protected String layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
layoutCL in class BasicLabelUICopyright © 2026 Central Laboratory of the Research Councils. All Rights Reserved.