java.lang.Object
atlantafx.base.controls.Tab.StretchingResizePolicy
- All Implemented Interfaces:
Tab.ResizePolicy
- Enclosing class:
Tab
Resizes the tabs to fill all available space proportionally.
- Each tab's width is proportional to the available width and the number of tabs.
- If the total preferred width of the tabs exceeds the visible width of the tab line, the width of each individual tab will be reduced proportionally based on the number of tabs.
-
Field Summary
Fields inherited from interface atlantafx.base.controls.Tab.ResizePolicy
ADAPTIVE, COMPUTED_WIDTH, FIXED_WIDTH, STRETCH, USE_COMPUTED_SIZE, USE_FIXED_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecomputePrefWidth(double availableWidth, int tabCount, boolean isTabsFit) Computes the tab width.boolean
-
Constructor Details
-
StretchingResizePolicy
public StretchingResizePolicy()
-
-
Method Details
-
computePrefWidth
public double computePrefWidth(double availableWidth, int tabCount, boolean isTabsFit) Description copied from interface:Tab.ResizePolicyComputes the tab width.- Specified by:
computePrefWidthin interfaceTab.ResizePolicy- Parameters:
availableWidth- the visible width of theTabLinetabCount- the numbers of tabs in theTabLineisTabsFit- whether the summary tabs width fits the visible width of theTabLine
-
isScrollable
public boolean isScrollable()- Specified by:
isScrollablein interfaceTab.ResizePolicy
-