JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.basic
类 BasicTabbedPaneUI.TabbedPaneLayout

java.lang.Object
  继承者 javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
所有已实现的接口:
LayoutManager
直接已知子类:
MetalTabbedPaneUI.TabbedPaneLayout
正在封闭类:
BasicTabbedPaneUI

public class BasicTabbedPaneUI.TabbedPaneLayout
extends Object
implements LayoutManager

此类应视为“受保护”内部类。仅在 BasicTabbedPaneUI 的子类中实例化此类。


构造方法摘要
BasicTabbedPaneUI.TabbedPaneLayout()
           
 
方法摘要
 void addLayoutComponent(String name, Component comp)
          如果布局管理器使用每组件字符串,则将组件 comp 添加到布局,并将它与 name 指定的字符串关联。
 void calculateLayoutInfo()
           
protected  Dimension calculateSize(boolean minimum)
           
protected  void calculateTabRects(int tabPlacement, int tabCount)
           
 void layoutContainer(Container parent)
          布置指定容器。
 Dimension minimumLayoutSize(Container parent)
          给定指定容器所包含的组件,计算该容器的最小大小维数。
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)
           
 Dimension preferredLayoutSize(Container parent)
          给定指定容器所包含的组件,计算该容器的首选大小维数。
protected  int preferredTabAreaHeight(int tabPlacement, int width)
           
protected  int preferredTabAreaWidth(int tabPlacement, int height)
           
 void removeLayoutComponent(Component comp)
          从布局移除指定组件。
protected  void rotateTabRuns(int tabPlacement, int selectedRun)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BasicTabbedPaneUI.TabbedPaneLayout

public BasicTabbedPaneUI.TabbedPaneLayout()
方法详细信息

addLayoutComponent

public void addLayoutComponent(String name,
                               Component comp)
从接口 LayoutManager 复制的描述
如果布局管理器使用每组件字符串,则将组件 comp 添加到布局,并将它与 name 指定的字符串关联。

指定者:
接口 LayoutManager 中的 addLayoutComponent
参数:
name - 要与组件关联的字符串
comp - 要添加的组件

removeLayoutComponent

public void removeLayoutComponent(Component comp)
从接口 LayoutManager 复制的描述
从布局移除指定组件。

指定者:
接口 LayoutManager 中的 removeLayoutComponent
参数:
comp - 要移除的组件

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
从接口 LayoutManager 复制的描述
给定指定容器所包含的组件,计算该容器的首选大小维数。

指定者:
接口 LayoutManager 中的 preferredLayoutSize
参数:
parent - 要布置的容器
另请参见:
LayoutManager.minimumLayoutSize(java.awt.Container)

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
从接口 LayoutManager 复制的描述
给定指定容器所包含的组件,计算该容器的最小大小维数。

指定者:
接口 LayoutManager 中的 minimumLayoutSize
参数:
parent - 要布置的组件

calculateSize

protected Dimension calculateSize(boolean minimum)

preferredTabAreaHeight

protected int preferredTabAreaHeight(int tabPlacement,
                                     int width)

preferredTabAreaWidth

protected int preferredTabAreaWidth(int tabPlacement,
                                    int height)

layoutContainer

public void layoutContainer(Container parent)
从接口 LayoutManager 复制的描述
布置指定容器。

指定者:
接口 LayoutManager 中的 layoutContainer
参数:
parent - 要布置的容器

calculateLayoutInfo

public void calculateLayoutInfo()

calculateTabRects

protected void calculateTabRects(int tabPlacement,
                                 int tabCount)

rotateTabRuns

protected void rotateTabRuns(int tabPlacement,
                             int selectedRun)

normalizeTabRuns

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

padTabRun

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

padSelectedTab

protected void padSelectedTab(int tabPlacement,
                              int selectedIndex)

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only