Package com.formdev.flatlaf.ui
Class FlatLabelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
com.formdev.flatlaf.ui.FlatLabelUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
,PropertyChangeListener
,EventListener
- Direct Known Subclasses:
FlatTitlePane.FlatTitleLabelUI
Provides the Flat LaF UI delegate for
JLabel
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
private boolean
protected Color
private final boolean
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyStyle
(JLabel c, Object style) protected Object
applyStyleProperty
(JLabel c, String key, Object value) (package private) static Graphics
static ComponentUI
getStyleableValue
(JComponent c, String key) protected void
protected void
protected void
void
protected String
layoutCL
(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) Overridden to scale iconTextGap.void
paint
(Graphics g, JComponent c) protected void
paintDisabledText
(JLabel l, Graphics g, String s, int textX, int textY) protected void
paintEnabledText
(JLabel l, Graphics g, String s, int textX, int textY) void
protected void
void
update
(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installListeners, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
disabledForeground
-
arc
protected int arc- Since:
- 3.5
-
defaults_initialized
private boolean defaults_initialized -
oldStyleValues
-
-
Constructor Details
-
FlatLabelUI
protected FlatLabelUI(boolean shared) - Since:
- 2
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classBasicLabelUI
-
installDefaults
- Overrides:
installDefaults
in classBasicLabelUI
-
uninstallDefaults
- Overrides:
uninstallDefaults
in classBasicLabelUI
-
installComponents
- Overrides:
installComponents
in classBasicLabelUI
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classBasicLabelUI
-
installStyle
- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
update
- Overrides:
update
in classComponentUI
-
createGraphicsHTMLTextYCorrection
-
paint
- Overrides:
paint
in classBasicLabelUI
-
paintEnabledText
- Overrides:
paintEnabledText
in classBasicLabelUI
-
paintDisabledText
- Overrides:
paintDisabledText
in classBasicLabelUI
-
layoutCL
protected String layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) Overridden to scale iconTextGap.- Overrides:
layoutCL
in classBasicLabelUI
-