Package org.pushingpixels.flamingo.internal.ui.ribbon

Examples of org.pushingpixels.flamingo.internal.ui.ribbon.RibbonBandUI


  }

  @Override
  public int getPreferredWidth(int availableHeight, int gap) {
    AbstractRibbonBand ribbonBand = this.controlPanel.getRibbonBand();
    RibbonBandUI ui = ribbonBand.getUI();
    return ui.getPreferredCollapsedWidth();
  }
View Full Code Here


      RibbonTask selectedTask = ribbon.getSelectedTask();
      // System.out.println(selectedTask.getTitle() + " min width");
      for (AbstractRibbonBand ribbonBand : selectedTask.getBands()) {
        int bandPrefHeight = ribbonBand.getMinimumSize().height;
        Insets bandInsets = ribbonBand.getInsets();
        RibbonBandUI bandUI = ribbonBand.getUI();
        int preferredCollapsedWidth = bandUI
            .getPreferredCollapsedWidth()
            + bandInsets.left + bandInsets.right;
        width += preferredCollapsedWidth;
        // System.out.println("\t" + ribbonBand.getTitle() + ":" +
        // preferredCollapsedWidth);
View Full Code Here

        // minimum is when all the tasks are collapsed
        RibbonTask selectedTask = ribbon.getSelectedTask();
        for (AbstractRibbonBand ribbonBand : selectedTask.getBands()) {
          int bandPrefHeight = ribbonBand.getMinimumSize().height;
          Insets bandInsets = ribbonBand.getInsets();
          RibbonBandUI bandUI = ribbonBand.getUI();
          width += bandUI.getPreferredCollapsedWidth();
          if (!isRibbonMinimized) {
            maxMinBandHeight = Math.max(maxMinBandHeight,
                bandPrefHeight + bandInsets.top
                    + bandInsets.bottom);
          }
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.internal.ui.ribbon.RibbonBandUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.