Class FlatTabbedPaneUI.FlatTabbedPaneLayout

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FlatTabbedPaneLayout()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.awt.Dimension calculateSize​(boolean minimum)  
      protected java.awt.Dimension calculateTabAreaSize()  
      protected boolean isContentEmpty()
      Check whether all content components are either null or have zero preferred size.
      void layoutContainer​(java.awt.Container parent)  
      • Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout

        addLayoutComponent, calculateLayoutInfo, calculateTabRects, minimumLayoutSize, normalizeTabRuns, padSelectedTab, padTabRun, preferredLayoutSize, preferredTabAreaHeight, preferredTabAreaWidth, removeLayoutComponent, rotateTabRuns
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlatTabbedPaneLayout

        protected FlatTabbedPaneLayout()
    • Method Detail

      • calculateSize

        protected java.awt.Dimension calculateSize​(boolean minimum)
        Overrides:
        calculateSize in class javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
      • isContentEmpty

        protected boolean isContentEmpty()
        Check whether all content components are either null or have zero preferred size.

        If true, assume that the tabbed pane is used without any content and use the size of the tab area (single run) as minimum/preferred size.

      • calculateTabAreaSize

        protected java.awt.Dimension calculateTabAreaSize()
      • layoutContainer

        public void layoutContainer​(java.awt.Container parent)
        Specified by:
        layoutContainer in interface java.awt.LayoutManager
        Overrides:
        layoutContainer in class javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout