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 forJPanel
.- UiDefault:
- Panel.font Font unused, Panel.background Color only used if opaque, Panel.foreground Color unused, Panel.border Border
-
-
Field Summary
Fields Modifier and Type Field Description protected int
arc
-
Constructor Summary
Constructors Modifier Constructor Description protected
FlatPanelUI(boolean shared)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyStyle(JPanel c, Object style)
protected Object
applyStyleProperty(JPanel c, String key, Object value)
static ComponentUI
createUI(JComponent c)
Map<String,Class<?>>
getStyleableInfos(JComponent c)
Object
getStyleableValue(JComponent c, String key)
protected void
installStyle(JPanel c)
void
installUI(JComponent c)
void
propertyChange(PropertyChangeEvent e)
void
uninstallUI(JComponent c)
void
update(Graphics g, JComponent c)
-
Methods inherited from class javax.swing.plaf.basic.BasicPanelUI
getBaseline, getBaselineResizeBehavior, installDefaults, uninstallDefaults
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in classBasicPanelUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in classBasicPanelUI
-
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Since:
- 2.0.1
-
installStyle
protected void installStyle(JPanel c)
- Since:
- 2
-
applyStyleProperty
protected Object applyStyleProperty(JPanel c, String key, Object value)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
update
public void update(Graphics g, JComponent c)
- Overrides:
update
in classComponentUI
-
-