Class CoreRibbonResizePolicies.FlowTwoRows

    • Constructor Detail

      • FlowTwoRows

        public FlowTwoRows​(JFlowBandControlPanel controlPanel)
        Creates a new two-row resize policy for JFlowRibbonBands.
        Parameters:
        controlPanel - The control panel of the associated ribbon band.
    • Method Detail

      • getPreferredWidth

        public int getPreferredWidth​(int availableHeight,
                                     int gap)
        Description copied from interface: RibbonBandResizePolicy
        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.