Class BasicRibbonGalleryUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.pushingpixels.radiance.component.internal.ui.ribbon.RibbonGalleryUI
org.pushingpixels.radiance.component.internal.ui.ribbon.BasicRibbonGalleryUI
- Direct Known Subclasses:
RadianceRibbonGalleryUI
Basic UI for ribbon gallery
JRibbonGallery.- Author:
- Kirill Grouchnikov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InsetsRibbon gallery margin.static final Stringprotected JRibbonGalleryThe associated ribbon gallery. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LayoutManagerInvoked byinstallUIto create a layout manager object to manage the ribbon gallery.protected intReturns the layout gap for the controls in the associated ribbon gallery.intgetPreferredWidth(int buttonCount, int availableHeight) Returns the preferred width of the ribbon gallery for the specified parameters.protected voidInstalls subcomponents on the associated ribbon gallery.protected voidInstalls defaults on the associated ribbon gallery.protected voidInstalls listeners on the associated ribbon gallery.voidvoidpaint(Graphics g, JComponent c) protected abstract voidpaintRibbonGalleryBorder(Graphics graphics) Paints ribbon gallery border.protected voidUninstalls subcomponents from the associated ribbon gallery.protected voidUninstalls defaults from the associated ribbon gallery.protected voidUninstalls listeners from the associated ribbon gallery.voidMethods inherited from class ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update
-
Field Details
-
RIBBON_GALLERY_EXPAND_BUTTON
- See Also:
-
ribbonGallery
The associated ribbon gallery. -
margin
Ribbon gallery margin.
-
-
Constructor Details
-
BasicRibbonGalleryUI
public BasicRibbonGalleryUI()
-
-
Method Details
-
installUI
- Overrides:
installUIin classComponentUI
-
installComponents
protected void installComponents()Installs subcomponents on the associated ribbon gallery. -
uninstallComponents
protected void uninstallComponents()Uninstalls subcomponents from the associated ribbon gallery. -
installDefaults
protected void installDefaults()Installs defaults on the associated ribbon gallery. -
uninstallDefaults
protected void uninstallDefaults()Uninstalls defaults from the associated ribbon gallery. -
installListeners
protected void installListeners()Installs listeners on the associated ribbon gallery. -
uninstallListeners
protected void uninstallListeners()Uninstalls listeners from the associated ribbon gallery. -
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
createLayoutManager
Invoked byinstallUIto create a layout manager object to manage the ribbon gallery.- Returns:
- a layout manager object
-
paint
- Overrides:
paintin classComponentUI
-
paintRibbonGalleryBorder
Paints ribbon gallery border.- Parameters:
graphics- Graphics context.
-
getLayoutGap
protected int getLayoutGap()Returns the layout gap for the controls in the associated ribbon gallery.- Returns:
- The layout gap for the controls in the associated ribbon gallery.
-
getPreferredWidth
public int getPreferredWidth(int buttonCount, int availableHeight) Returns the preferred width of the ribbon gallery for the specified parameters.- Parameters:
buttonCount- Button count.availableHeight- Available height in pixels.- Returns:
- The preferred width of the ribbon gallery for the specified parameters.
-