Class BasicRibbonComponentUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- org.pushingpixels.radiance.component.internal.ui.ribbon.RibbonComponentUI
-
- org.pushingpixels.radiance.component.internal.ui.ribbon.BasicRibbonComponentUI
-
- Direct Known Subclasses:
RadianceRibbonComponentUI
public abstract class BasicRibbonComponentUI extends RibbonComponentUI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
BasicRibbonComponentUI.ExtComponentLayout
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JLabel
captionLabel
private java.beans.PropertyChangeListener
projectionPropertyChangeListener
private java.beans.PropertyChangeListener
propertyChangeListener
protected JRibbonComponent
ribbonComponent
The associated ribbon component.
-
Constructor Summary
Constructors Constructor Description BasicRibbonComponentUI()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.awt.LayoutManager
createLayoutManager()
java.util.List<javax.swing.JComponent>
getFocusSequence()
java.awt.Point
getKeyTipAnchorCenterPoint()
private int
getLayoutGap()
java.awt.Dimension
getPreferredSize(JRibbonBand.PresentationPriority priority)
protected void
installComponents()
Installs subcomponents on the associated ribbon component.protected void
installDefaults()
Installs default parameters on the associated ribbon component.protected void
installListeners()
Installs listeners on the associated ribbon component.void
installUI(javax.swing.JComponent c)
private boolean
isCaptionVisible(JRibbonBand.PresentationPriority presentationPriority)
private boolean
isIconVisible(JRibbonBand.PresentationPriority presentationPriority)
void
paint(java.awt.Graphics g, javax.swing.JComponent c)
protected abstract void
paintIcon(java.awt.Graphics g, JRibbonComponent ribbonComp, javax.swing.Icon icon, int x, int y)
private void
propagateEnabled(boolean enabled)
protected void
uninstallComponents()
Uninstalls components from the associated ribbon component.protected void
uninstallDefaults()
Uninstalls default parameters from the associated ribbon component.protected void
uninstallListeners()
Uninstalls listeners from the associated ribbon component.void
uninstallUI(javax.swing.JComponent c)
-
-
-
Field Detail
-
ribbonComponent
protected JRibbonComponent ribbonComponent
The associated ribbon component.
-
captionLabel
private javax.swing.JLabel captionLabel
-
propertyChangeListener
private java.beans.PropertyChangeListener propertyChangeListener
-
projectionPropertyChangeListener
private java.beans.PropertyChangeListener projectionPropertyChangeListener
-
-
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 parameters on the associated ribbon component.
-
installComponents
protected void installComponents()
Installs subcomponents on the associated ribbon component.
-
installListeners
protected void installListeners()
Installs listeners on the associated ribbon component.
-
uninstallDefaults
protected void uninstallDefaults()
Uninstalls default parameters from the associated ribbon component.
-
uninstallComponents
protected void uninstallComponents()
Uninstalls components from the associated ribbon component.
-
uninstallListeners
protected void uninstallListeners()
Uninstalls listeners from the associated ribbon component.
-
propagateEnabled
private void propagateEnabled(boolean enabled)
-
getKeyTipAnchorCenterPoint
public java.awt.Point getKeyTipAnchorCenterPoint()
- Specified by:
getKeyTipAnchorCenterPoint
in classRibbonComponentUI
-
getFocusSequence
public java.util.List<javax.swing.JComponent> getFocusSequence()
- Specified by:
getFocusSequence
in classRibbonComponentUI
-
createLayoutManager
protected java.awt.LayoutManager createLayoutManager()
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
paint
in classjavax.swing.plaf.ComponentUI
-
paintIcon
protected abstract void paintIcon(java.awt.Graphics g, JRibbonComponent ribbonComp, javax.swing.Icon icon, int x, int y)
-
getLayoutGap
private int getLayoutGap()
-
isIconVisible
private boolean isIconVisible(JRibbonBand.PresentationPriority presentationPriority)
-
isCaptionVisible
private boolean isCaptionVisible(JRibbonBand.PresentationPriority presentationPriority)
-
getPreferredSize
public java.awt.Dimension getPreferredSize(JRibbonBand.PresentationPriority priority)
- Specified by:
getPreferredSize
in classRibbonComponentUI
-
-