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 classBasicRibbonComponentUI.ExtComponentLayout
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JLabelcaptionLabelprivate java.beans.PropertyChangeListenerprojectionPropertyChangeListenerprivate java.beans.PropertyChangeListenerpropertyChangeListenerprotected JRibbonComponentribbonComponentThe 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.LayoutManagercreateLayoutManager()java.util.List<javax.swing.JComponent>getFocusSequence()java.awt.PointgetKeyTipAnchorCenterPoint()private intgetLayoutGap()java.awt.DimensiongetPreferredSize(JRibbonBand.PresentationPriority priority)protected voidinstallComponents()Installs subcomponents on the associated ribbon component.protected voidinstallDefaults()Installs default parameters on the associated ribbon component.protected voidinstallListeners()Installs listeners on the associated ribbon component.voidinstallUI(javax.swing.JComponent c)private booleanisCaptionVisible(JRibbonBand.PresentationPriority presentationPriority)private booleanisIconVisible(JRibbonBand.PresentationPriority presentationPriority)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected abstract voidpaintIcon(java.awt.Graphics g, JRibbonComponent ribbonComp, javax.swing.Icon icon, int x, int y)private voidpropagateEnabled(boolean enabled)protected voiduninstallComponents()Uninstalls components from the associated ribbon component.protected voiduninstallDefaults()Uninstalls default parameters from the associated ribbon component.protected voiduninstallListeners()Uninstalls listeners from the associated ribbon component.voiduninstallUI(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:
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 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:
getKeyTipAnchorCenterPointin classRibbonComponentUI
-
getFocusSequence
public java.util.List<javax.swing.JComponent> getFocusSequence()
- Specified by:
getFocusSequencein classRibbonComponentUI
-
createLayoutManager
protected java.awt.LayoutManager createLayoutManager()
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin 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:
getPreferredSizein classRibbonComponentUI
-
-