Package com.formdev.flatlaf.ui
Class FlatToolTipUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ToolTipUI
-
- javax.swing.plaf.basic.BasicToolTipUI
-
- com.formdev.flatlaf.ui.FlatToolTipUI
-
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
public class FlatToolTipUI extends BasicToolTipUI implements PropertyChangeListener
Provides the Flat LaF UI delegate forJToolTip
.- UiDefault:
- ToolTip.font Font, ToolTip.background Color, ToolTip.foreground Color, ToolTip.backgroundInactive Color, ToolTip.foregroundInactive Color, ToolTip.border Border, ToolTip.borderInactive Border
-
-
Constructor Summary
Constructors Constructor Description FlatToolTipUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUI
createUI(JComponent c)
Dimension
getPreferredSize(JComponent c)
protected void
installListeners(JComponent c)
void
installUI(JComponent c)
void
paint(Graphics g, JComponent c)
void
propertyChange(PropertyChangeEvent e)
protected void
uninstallListeners(JComponent c)
-
Methods inherited from class javax.swing.plaf.basic.BasicToolTipUI
getMaximumSize, getMinimumSize, installDefaults, uninstallDefaults, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in classBasicToolTipUI
-
installListeners
protected void installListeners(JComponent c)
- Overrides:
installListeners
in classBasicToolTipUI
-
uninstallListeners
protected void uninstallListeners(JComponent c)
- Overrides:
uninstallListeners
in classBasicToolTipUI
-
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Since:
- 2.0.1
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in classBasicToolTipUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paint
in classBasicToolTipUI
-
-