Class BasicRibbonGalleryUI

java.lang.Object
javax.swing.plaf.ComponentUI
org.pushingpixels.flamingo.internal.ui.ribbon.RibbonGalleryUI
org.pushingpixels.flamingo.internal.ui.ribbon.BasicRibbonGalleryUI

public class BasicRibbonGalleryUI extends RibbonGalleryUI
Basic UI for ribbon gallery JRibbonGallery.
  • Field Details

  • Constructor Details

    • BasicRibbonGalleryUI

      public BasicRibbonGalleryUI()
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent c)
    • installUI

      public void installUI(JComponent c)
      Overrides:
      installUI in class ComponentUI
    • installComponents

      protected void installComponents()
      Installs subcomponents on the associated ribbon gallery.
    • createScrollDownButton

      protected JCommandButton createScrollDownButton()
      Creates the scroll-down button.
      Returns:
      Scroll-down button.
    • createScrollUpButton

      protected JCommandButton createScrollUpButton()
      Creates the scroll-up button.
      Returns:
      Scroll-up button.
    • createExpandButton

      protected BasicRibbonGalleryUI.ExpandCommandButton createExpandButton()
      Creates the expand button.
      Returns:
      Expand button.
    • 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

      public void uninstallUI(JComponent c)
      Overrides:
      uninstallUI in class ComponentUI
    • createLayoutManager

      protected LayoutManager createLayoutManager()
      Invoked by installUI to create a layout manager object to manage the JCommandButtonStrip.
      Returns:
      a layout manager object
    • paint

      public void paint(Graphics g, JComponent c)
      Overrides:
      paint in class ComponentUI
    • paintRibbonGalleryBorder

      protected void paintRibbonGalleryBorder(Graphics graphics)
      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.
    • scrollOneRowDown

      protected void scrollOneRowDown()
      Scrolls the contents of this ribbon gallery one row down.
    • scrollOneRowUp

      protected void scrollOneRowUp()
      Scrolls the contents of this ribbon gallery one row up.
    • scrollToSelected

      protected void scrollToSelected()
      Scrolls the contents of this ribbon gallery to reveal the currently selected button.
    • syncExpandKeyTip

      protected void syncExpandKeyTip()