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 classBasicRichTooltipPanelUI.RichTooltipPanelLayout
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<javax.swing.JLabel>descriptionLabelsprivate javax.swing.JLabelfooterImageLabelprivate java.util.List<javax.swing.JLabel>footerLabelsprivate javax.swing.JSeparatorfooterSeparatorprivate javax.swing.JLabelmainImageLabelprotected JRichTooltipPanelrichTooltipPanelThe 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.LayoutManagercreateLayoutManager()private intgetDescriptionTextWidth()private intgetLayoutGap()protected voidinstallComponents()Installs components on the associated rich tooltip panel.protected voidinstallDefaults()Installs default settings for the associated rich tooltip panel.protected voidinstallListeners()Installs listeners on the associated rich tooltip panel.voidinstallUI(javax.swing.JComponent c)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected abstract voidpaintBackground(java.awt.Graphics g)private voidremoveExistingComponents()protected voiduninstallComponents()Uninstalls subcomponents from the associated rich tooltip panel.protected voiduninstallDefaults()Uninstalls default settings from the associated rich tooltip panel.protected voiduninstallListeners()Uninstalls listeners from the associated rich tooltip panel.voiduninstallUI(javax.swing.JComponent c)voidupdate(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:
installUIin classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin 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:
updatein 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:
paintin classjavax.swing.plaf.ComponentUI
-
createLayoutManager
private java.awt.LayoutManager createLayoutManager()
-
getDescriptionTextWidth
private int getDescriptionTextWidth()
-
getLayoutGap
private int getLayoutGap()
-
removeExistingComponents
private void removeExistingComponents()
-
-