Class BasicRibbonBandUI

    • Constructor Detail

      • BasicRibbonBandUI

        public BasicRibbonBandUI()
    • Method Detail

      • installDefaults

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

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

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

        protected void syncExpandButtonIcon()
      • installListeners

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

        protected void configureExpandButton()
      • 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.
      • unconfigureExpandButton

        protected void unconfigureExpandButton()
      • createLayoutManager

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

        protected 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.
      • paintBandTitleBackground

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

        public void setRolloverAmount​(float rolloverAmount)
      • paintBandBackground

        protected void paintBandBackground​(Graphics graphics,
                                           Rectangle toFill)
        Paints band background.
        Parameters:
        graphics - Graphics context.
        toFill - Rectangle for the background.
      • getBandTitleHeight

        public int getBandTitleHeight()
        Returns the height of the ribbon band title area.
        Specified by:
        getBandTitleHeight in class RibbonBandUI
        Returns:
        The height of the ribbon band title area.
      • getExpandButton

        @Deprecated
        public AbstractCommandButton getExpandButton()
        Deprecated.
        This method is for unit tests only and should not be called by the application code.
        Returns:
        The expand button of the matching ribbon band.
      • getCollapsedButton

        @Deprecated
        public AbstractCommandButton getCollapsedButton()
        Deprecated.
        This method is for unit tests only and should not be called by the application code.
        Returns:
        The expand button of the matching ribbon band.