|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout
public class MetalTabbedPaneUI.TabbedPaneLayout
A LayoutManager responsible for placing all the tabs and the
visible component inside the JTabbedPane. This class is only used
for JTabbedPane.WRAP_TAB_LAYOUT.
| Constructor Summary | |
|---|---|
MetalTabbedPaneUI.TabbedPaneLayout()
Creates a new instance of the layout manager. |
|
| Method Summary | |
|---|---|
protected void |
normalizeTabRuns(int tabPlacement,
int tabCount,
int start,
int max)
Overridden because tab runs are only normalized for TOP and BOTTOM tab placement in the Metal L&F. |
protected void |
padSelectedTab(int tabPlacement,
int selectedIndex)
Overridden to do nothing, because the selected tab does not have extra padding in the MetalLookAndFeel. |
protected void |
rotateTabRuns(int tabPlacement,
int selectedRun)
Overridden to do nothing, because tab runs are not rotated in the MetalLookAndFeel. |
| Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout |
|---|
addLayoutComponent, calculateLayoutInfo, calculateSize, calculateTabRects, layoutContainer, minimumLayoutSize, padTabRun, preferredLayoutSize, preferredTabAreaHeight, preferredTabAreaWidth, removeLayoutComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetalTabbedPaneUI.TabbedPaneLayout()
| Method Detail |
|---|
protected void rotateTabRuns(int tabPlacement,
int selectedRun)
MetalLookAndFeel.
rotateTabRuns in class BasicTabbedPaneUI.TabbedPaneLayouttabPlacement - the tab placement (one of SwingConstants.TOP,
SwingConstants.BOTTOM, SwingConstants.LEFT or SwingConstants.RIGHT).selectedRun - the index of the selected run.
protected void padSelectedTab(int tabPlacement,
int selectedIndex)
MetalLookAndFeel.
padSelectedTab in class BasicTabbedPaneUI.TabbedPaneLayouttabPlacement - the tab placement (one of SwingConstants.TOP,
SwingConstants.BOTTOM, SwingConstants.LEFT or SwingConstants.RIGHT).selectedIndex - the index of the selected tab.
protected void normalizeTabRuns(int tabPlacement,
int tabCount,
int start,
int max)
normalizeTabRuns in class BasicTabbedPaneUI.TabbedPaneLayouttabPlacement - The JTabbedPane's tab placement.tabCount - The number of tabs.start - The x position where the tabs will begin.max - The maximum x position where the tab can run to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||