public static class ExtendedTooltip.ImageToolTipUI
extends javax.swing.plaf.metal.MetalToolTipUI
Modifier and Type | Field and Description |
---|---|
(package private) static ExtendedTooltip.ImageToolTipUI |
sharedInstance |
Constructor and Description |
---|
ImageToolTipUI() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates the UI.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Returns the size of the given component.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Overwrite the UI paint method to do nothing in order fix double
painting of the tooltip text.
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c)
Override ComponentUI update method to set visibility of bottomText.
|
getAcceleratorString, installUI, isAcceleratorHidden, uninstallUI
getMaximumSize, getMinimumSize, installDefaults, installListeners, uninstallDefaults, uninstallListeners
static ExtendedTooltip.ImageToolTipUI sharedInstance
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- componentpublic void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.metal.MetalToolTipUI
g
- the Graphics objectc
- the component used to render the tooltippublic void update(java.awt.Graphics g, javax.swing.JComponent c)
update
in class javax.swing.plaf.ComponentUI
g
- Graphics objectc
- the component used to render the tooltippublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.metal.MetalToolTipUI
c
- the component used to render the tooltip
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.