Package com.formdev.flatlaf.ui
Class FlatPanelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
javax.swing.plaf.basic.BasicPanelUI
com.formdev.flatlaf.ui.FlatPanelUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
,PropertyChangeListener
,EventListener
public class FlatPanelUI
extends BasicPanelUI
implements FlatStylingSupport.StyleableUI, PropertyChangeListener
Provides the Flat LaF UI delegate for
JPanel
.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyStyle
(JPanel c, Object style) protected Object
applyStyleProperty
(JPanel c, String key, Object value) static ComponentUI
static void
fillRoundedBackground
(Graphics g, JComponent c, int arc) getStyleableValue
(JComponent c, String key) protected void
protected void
void
void
paint
(Graphics g, JComponent c) void
void
void
update
(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicPanelUI
getBaseline, getBaselineResizeBehavior, uninstallDefaults
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize
-
Field Details
-
arc
protected int arc- Since:
- 2
-
oldStyleValues
-
-
Constructor Details
-
FlatPanelUI
protected FlatPanelUI(boolean shared) - Since:
- 2
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classBasicPanelUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicPanelUI
-
installDefaults
- Overrides:
installDefaults
in classBasicPanelUI
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Since:
- 2.0.1
-
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
-
fillRoundedBackground
- Since:
- 3.5
-
getPreferredSize
- Overrides:
getPreferredSize
in classComponentUI
-
paint
- Overrides:
paint
in classComponentUI
-