public class

BasicTabbedPaneUI.TabbedPaneLayout

extends Object
implements LayoutManager
java.lang.Object
   ↳ javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
Known Direct Subclasses

Class Overview

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicTabbedPaneUI.

Summary

Public Constructors
BasicTabbedPaneUI.TabbedPaneLayout()
Public Methods
void addLayoutComponent(String name, Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
void calculateLayoutInfo()
void layoutContainer(Container parent)
Lays out the specified container.
Dimension minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.
Dimension preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.
void removeLayoutComponent(Component comp)
Removes the specified component from the layout.
Protected Methods
Dimension calculateSize(boolean minimum)
void calculateTabRects(int tabPlacement, int tabCount)
void normalizeTabRuns(int tabPlacement, int tabCount, int start, int max)
void padSelectedTab(int tabPlacement, int selectedIndex)
void padTabRun(int tabPlacement, int start, int end, int max)
int preferredTabAreaHeight(int tabPlacement, int width)
int preferredTabAreaWidth(int tabPlacement, int height)
void rotateTabRuns(int tabPlacement, int selectedRun)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.awt.LayoutManager

Public Constructors

public BasicTabbedPaneUI.TabbedPaneLayout ()

Public Methods

public void addLayoutComponent (String name, Component comp)

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

Parameters
name the string to be associated with the component
comp the component to be added

public void calculateLayoutInfo ()

public void layoutContainer (Container parent)

Lays out the specified container.

Parameters
parent the container to be laid out

public Dimension minimumLayoutSize (Container parent)

Calculates the minimum size dimensions for the specified container, given the components it contains.

Parameters
parent the component to be laid out

public Dimension preferredLayoutSize (Container parent)

Calculates the preferred size dimensions for the specified container, given the components it contains.

Parameters
parent the container to be laid out

public void removeLayoutComponent (Component comp)

Removes the specified component from the layout.

Parameters
comp the component to be removed

Protected Methods

protected Dimension calculateSize (boolean minimum)

protected void calculateTabRects (int tabPlacement, int tabCount)

protected void normalizeTabRuns (int tabPlacement, int tabCount, int start, int max)

protected void padSelectedTab (int tabPlacement, int selectedIndex)

protected void padTabRun (int tabPlacement, int start, int end, int max)

protected int preferredTabAreaHeight (int tabPlacement, int width)

protected int preferredTabAreaWidth (int tabPlacement, int height)

protected void rotateTabRuns (int tabPlacement, int selectedRun)