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 intprivate booleanprotected Colorprivate final booleanFields inherited from class BasicLabelUI
labelUI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyStyle(JLabel c, Object style) protected ObjectapplyStyleProperty(JLabel c, String key, Object value) (package private) static Graphicsstatic ComponentUIgetStyleableValue(JComponent c, String key) protected voidprotected voidprotected voidvoidprotected StringlayoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) Overridden to scale iconTextGap.voidpaint(Graphics g, JComponent c) protected voidpaintDisabledText(JLabel l, Graphics g, String s, int textX, int textY) protected voidpaintEnabledText(JLabel l, Graphics g, String s, int textX, int textY) voidprotected voidvoidupdate(Graphics g, JComponent c) Methods inherited from class BasicLabelUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installListeners, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class 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:
installUIin classBasicLabelUI
-
installDefaults
- Overrides:
installDefaultsin classBasicLabelUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicLabelUI
-
installComponents
- Overrides:
installComponentsin classBasicLabelUI
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classBasicLabelUI
-
installStyle
- Since:
- 2
-
applyStyle
-
applyStyleProperty
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
update
- Overrides:
updatein classComponentUI
-
createGraphicsHTMLTextYCorrection
-
paint
- Overrides:
paintin classBasicLabelUI
-
paintEnabledText
- Overrides:
paintEnabledTextin classBasicLabelUI
-
paintDisabledText
- Overrides:
paintDisabledTextin classBasicLabelUI
-
layoutCL
protected String layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) Overridden to scale iconTextGap.- Overrides:
layoutCLin classBasicLabelUI
-