Class BasicRichTooltipPanelUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.PanelUI
-
- org.pushingpixels.radiance.component.internal.ui.common.RichTooltipPanelUI
-
- org.pushingpixels.radiance.component.internal.ui.common.BasicRichTooltipPanelUI
-
- Direct Known Subclasses:
RadianceRichTooltipPanelUI
public abstract class BasicRichTooltipPanelUI extends RichTooltipPanelUI
Basic UI for rich tooltip panelJRichTooltipPanel
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
BasicRichTooltipPanelUI.RichTooltipPanelLayout
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<javax.swing.JLabel>
descriptionLabels
private javax.swing.JLabel
footerImageLabel
private java.util.List<javax.swing.JLabel>
footerLabels
private javax.swing.JSeparator
footerSeparator
private javax.swing.JLabel
mainImageLabel
protected JRichTooltipPanel
richTooltipPanel
The associated tooltip panel.private java.util.List<javax.swing.JLabel>
titleLabels
-
Constructor Summary
Constructors Constructor Description BasicRichTooltipPanelUI()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private java.awt.LayoutManager
createLayoutManager()
private int
getDescriptionTextWidth()
private int
getLayoutGap()
protected void
installComponents()
Installs components on the associated rich tooltip panel.protected void
installDefaults()
Installs default settings for the associated rich tooltip panel.protected void
installListeners()
Installs listeners on the associated rich tooltip panel.void
installUI(javax.swing.JComponent c)
void
paint(java.awt.Graphics g, javax.swing.JComponent c)
protected abstract void
paintBackground(java.awt.Graphics g)
private void
removeExistingComponents()
protected void
uninstallComponents()
Uninstalls subcomponents from the associated rich tooltip panel.protected void
uninstallDefaults()
Uninstalls default settings from the associated rich tooltip panel.protected void
uninstallListeners()
Uninstalls listeners from the associated rich tooltip panel.void
uninstallUI(javax.swing.JComponent c)
void
update(java.awt.Graphics g, javax.swing.JComponent c)
-
-
-
Field Detail
-
richTooltipPanel
protected JRichTooltipPanel richTooltipPanel
The associated tooltip panel.
-
titleLabels
private java.util.List<javax.swing.JLabel> titleLabels
-
descriptionLabels
private java.util.List<javax.swing.JLabel> descriptionLabels
-
mainImageLabel
private javax.swing.JLabel mainImageLabel
-
footerSeparator
private javax.swing.JSeparator footerSeparator
-
footerImageLabel
private javax.swing.JLabel footerImageLabel
-
footerLabels
private java.util.List<javax.swing.JLabel> footerLabels
-
-
Method Detail
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in classjavax.swing.plaf.ComponentUI
-
installDefaults
protected void installDefaults()
Installs default settings for the associated rich tooltip panel.
-
installListeners
protected void installListeners()
Installs listeners on the associated rich tooltip panel.
-
installComponents
protected void installComponents()
Installs components on the associated rich tooltip panel.
-
uninstallDefaults
protected void uninstallDefaults()
Uninstalls default settings from the associated rich tooltip panel.
-
uninstallListeners
protected void uninstallListeners()
Uninstalls listeners from the associated rich tooltip panel.
-
uninstallComponents
protected void uninstallComponents()
Uninstalls subcomponents from the associated rich tooltip panel.
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
update
in classjavax.swing.plaf.ComponentUI
-
paintBackground
protected abstract void paintBackground(java.awt.Graphics g)
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
paint
in classjavax.swing.plaf.ComponentUI
-
createLayoutManager
private java.awt.LayoutManager createLayoutManager()
-
getDescriptionTextWidth
private int getDescriptionTextWidth()
-
getLayoutGap
private int getLayoutGap()
-
removeExistingComponents
private void removeExistingComponents()
-
-