Interface RibbonBandResizePolicy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getPreferredWidth​(int availableHeight, int gap)
      Returns the preferred width of the associated ribbon band under the specified dimensions.
      void install​(int availableHeight, int gap)
      Installs this resize policy on the associated ribbon band.
    • Method Detail

      • getPreferredWidth

        int getPreferredWidth​(int availableHeight,
                              int gap)
        Returns the preferred width of the associated ribbon band under the specified dimensions.
        Parameters:
        availableHeight - The height available for the associated ribbon band.
        gap - The inter-component gap.
        Returns:
        The preferred width of the associated ribbon band under the specified dimensions.
      • install

        void install​(int availableHeight,
                     int gap)
        Installs this resize policy on the associated ribbon band. For JFlowRibbonBands only changes the bounds of the flow components. For JRibbonBands can also change the presentation state of the command buttons (with JCommandButton.setPresentationState(CommandButtonPresentationState) ) and the number of visible buttons in the ribbon galleries. Note that this method is for internal use only and should not be called by the application code.
        Parameters:
        availableHeight - The height available for the associated ribbon band.
        gap - The inter-component gap.