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 intarc
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlatPanelUI(boolean shared)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyStyle(JPanel c, Object style)protected ObjectapplyStyleProperty(JPanel c, String key, Object value)static ComponentUIcreateUI(JComponent c)static voidfillRoundedBackground(Graphics g, JComponent c, int arc)DimensiongetPreferredSize(JComponent c)Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)protected voidinstallDefaults(JPanel p)protected voidinstallStyle(JPanel c)voidinstallUI(JComponent c)voidpaint(Graphics g, JComponent c)voidpropertyChange(PropertyChangeEvent e)voiduninstallUI(JComponent c)voidupdate(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
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classBasicPanelUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUIin classBasicPanelUI
-
installDefaults
protected void installDefaults(JPanel p)
- Overrides:
installDefaultsin classBasicPanelUI
-
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChangein 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:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
update
public void update(Graphics g, JComponent c)
- Overrides:
updatein classComponentUI
-
fillRoundedBackground
public static void fillRoundedBackground(Graphics g, JComponent c, int arc)
- Since:
- 3.5
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classComponentUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paintin classComponentUI
-
-