java.lang.Object
javax.swing.plaf.ComponentUI
org.pushingpixels.radiance.component.internal.ui.ribbon.RibbonBandUI
org.pushingpixels.radiance.component.internal.ui.ribbon.BasicRibbonBandUI
Direct Known Subclasses:
RadianceRibbonBandUI

public abstract class BasicRibbonBandUI extends RibbonBandUI
Basic UI for ribbon band JRibbonBand.
  • Field Details

  • Constructor Details

    • BasicRibbonBandUI

      public BasicRibbonBandUI()
  • Method Details

    • installUI

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

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

      protected void installDefaults()
      Installs default parameters on the associated ribbon band.
    • installComponents

      protected void installComponents()
      Installs subcomponents on the associated ribbon band.
    • syncExpandButton

      private void syncExpandButton()
    • syncCollapsedButton

      private void syncCollapsedButton()
    • createExpandButton

      protected abstract JCommandButton createExpandButton()
      Creates the expand button for the associated ribbon band.
      Returns:
      Expand button for the associated ribbon band.
    • createExpandCommand

      protected abstract Command createExpandCommand(ComponentOrientation componentOrientation)
    • installListeners

      protected void installListeners()
      Installs listeners on the associated ribbon band.
    • uninstallDefaults

      protected void uninstallDefaults()
      Uninstalls default parameters from the associated ribbon band.
    • uninstallComponents

      protected void uninstallComponents()
      Uninstalls components from the associated ribbon band.
    • uninstallListeners

      protected void uninstallListeners()
      Uninstalls listeners from the associated ribbon band.
    • createLayoutManager

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

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

      protected abstract void paintBandTitle(Graphics g, Rectangle titleRectangle, String title)
      Paints band title pane.
      Parameters:
      g - Graphics context.
      titleRectangle - Rectangle for the title pane.
      title - Title string.
    • paintBandTrailingSeparator

      protected abstract void paintBandTrailingSeparator(Graphics graphics, Rectangle toFill)
      Paints band background.
      Parameters:
      graphics - Graphics context.
      toFill - Rectangle for the background.
    • getPreferredCollapsedWidth

      public int getPreferredCollapsedWidth()
      Specified by:
      getPreferredCollapsedWidth in class RibbonBandUI