Module java.desktop

Class BasicTabbedPaneUI

所有已实现的接口:
SwingConstants
直接已知的子类:
MetalTabbedPaneUI, SynthTabbedPaneUI

public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants
TabbedPaneUI的基本L&F实现。
  • Field Details

    • tabPane

      protected JTabbedPane tabPane
      选项卡窗格
    • highlight

      protected Color highlight
      高亮颜色
    • lightHighlight

      protected Color lightHighlight
      亮高亮颜色
    • shadow

      protected Color shadow
      阴影颜色
    • darkShadow

      protected Color darkShadow
      暗阴影颜色
    • focus

      protected Color focus
      焦点颜色
    • textIconGap

      protected int textIconGap
      文本图标间隙
    • tabRunOverlay

      protected int tabRunOverlay
      选项卡运行叠加
    • tabInsets

      protected Insets tabInsets
      选项卡插图
    • selectedTabPadInsets

      protected Insets selectedTabPadInsets
      选定选项卡插图
    • tabAreaInsets

      protected Insets tabAreaInsets
      选项卡区域插图
    • contentBorderInsets

      protected Insets contentBorderInsets
      内容边框插图
    • upKey

      @Deprecated protected KeyStroke upKey
      Deprecated.
      As of Java 2 platform v1.3.
      自Java 2平台v1.3起,此先前未记录的字段不再使用。现在键绑定由LookAndFeel定义,请参阅键绑定规范以获取更多详细信息。
    • downKey

      @Deprecated protected KeyStroke downKey
      Deprecated.
      As of Java 2 platform v1.3.
      自Java 2平台v1.3起,此先前未记录的字段不再使用。现在键绑定由LookAndFeel定义,请参阅键绑定规范以获取更多详细信息。
    • leftKey

      @Deprecated protected KeyStroke leftKey
      Deprecated.
      As of Java 2 platform v1.3.
      自Java 2平台v1.3起,此先前未记录的字段不再使用。现在键绑定由LookAndFeel定义,请参阅键绑定规范以获取更多详细信息。
    • rightKey

      @Deprecated protected KeyStroke rightKey
      Deprecated.
      As of Java 2 platform v1.3.
      自Java 2平台v1.3起,此先前未记录的字段不再使用。现在键绑定由LookAndFeel定义,请参阅键绑定规范以获取更多详细信息。
    • tabRuns

      protected int[] tabRuns
      选项卡运行
    • runCount

      protected int runCount
      运行计数
    • selectedRun

      protected int selectedRun
      选定的运行
    • rects

      protected Rectangle[] rects
      选项卡矩形
    • maxTabHeight

      protected int maxTabHeight
      最大选项卡高度
    • maxTabWidth

      protected int maxTabWidth
      最大选项卡宽度
    • tabChangeListener

      protected ChangeListener tabChangeListener
      选项卡变更监听器
    • propertyChangeListener

      protected PropertyChangeListener propertyChangeListener
      属性变更监听器
    • mouseListener

      protected MouseListener mouseListener
      鼠标变更监听器
    • focusListener

      protected FocusListener focusListener
      焦点变更监听器
    • calcRect

      protected transient Rectangle calcRect
      用于一般布局计算的矩形,以避免在需要时构造许多新的矩形。
  • Constructor Details

    • BasicTabbedPaneUI

      public BasicTabbedPaneUI()
      构造一个BasicTabbedPaneUI
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent c)
      Creates a UI.
      参数:
      c - 一个组件
      返回:
      一个UI
    • createLayoutManager

      protected LayoutManager createLayoutManager()
      installUI调用以创建一个布局管理器对象来管理JTabbedPane
      返回:
      一个布局管理器对象
      参见:
    • installComponents

      protected void installComponents()
      为JTabbedPane创建并安装所需的子组件。由installUI调用。
      自:
      1.4
    • createScrollButton

      protected JButton createScrollButton(int direction)
      创建并返回一个JButton,该按钮将为用户提供以特定方向滚动选项卡的方法。返回的JButton必须是UIResource的实例。
      参数:
      direction - SwingConstants 常量之一:SOUTH、NORTH、EAST 或 WEST
      返回:
      用户小部件
      抛出:
      IllegalArgumentException - 如果 direction 不是 NORTH、SOUTH、EAST 或 WEST 中的一个
      自版本:
      1.5
      参见:
    • uninstallComponents

      protected void uninstallComponents()
      从 JTabbedPane 中移除任何已安装的子组件。由 uninstallUI 调用。
      自版本:
      1.4
    • installDefaults

      protected void installDefaults()
      安装默认值。
    • uninstallDefaults

      protected void uninstallDefaults()
      卸载默认值。
    • installListeners

      protected void installListeners()
      安装监听器。
    • uninstallListeners

      protected void uninstallListeners()
      卸载监听器。
    • createMouseListener

      protected MouseListener createMouseListener()
      创建鼠标监听器。
      返回:
      鼠标监听器
    • createFocusListener

      protected FocusListener createFocusListener()
      创建焦点监听器。
      返回:
      焦点监听器
    • createChangeListener

      protected ChangeListener createChangeListener()
      创建更改监听器。
      返回:
      更改监听器
    • createPropertyChangeListener

      protected PropertyChangeListener createPropertyChangeListener()
      创建属性更改监听器。
      返回:
      属性更改监听器
    • installKeyboardActions

      protected void installKeyboardActions()
      安装键盘操作。
    • uninstallKeyboardActions

      protected void uninstallKeyboardActions()
      卸载键盘操作。
    • setRolloverTab

      protected void setRolloverTab(int index)
      将鼠标当前悬停的选项卡设置为 index。如果鼠标不再悬停在任何选项卡上,则 index 将为 -1。不会检查传入的索引是否标识有效的选项卡。
      参数:
      index - 鼠标悬停的选项卡的索引
      自版本:
      1.5
    • getRolloverTab

      protected int getRolloverTab()
      返回鼠标当前悬停的选项卡,如果鼠标不再悬停在任何选项卡上,则返回 -1
      返回:
      鼠标当前悬停的选项卡,如果鼠标不再悬停在任何选项卡上,则返回 -1
      自版本:
      1.5
    • getBaseline

      public int getBaseline(JComponent c, int width, int height)
      返回基线。
      覆盖:
      getBaseline 在类 ComponentUI
      参数:
      c - 请求基线的 JComponent
      width - 获取基线的宽度
      height - 获取基线的高度
      返回:
      基线或值 < 0,表示没有合理的基线
      抛出:
      NullPointerException - 如果 cnull
      IllegalArgumentException - 如果宽度或高度 < 0
      自版本:
      1.6
      参见:
    • getBaselineResizeBehavior

      public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
      返回一个枚举,指示组件的基线随大小更改而变化的方式。
      覆盖:
      getBaselineResizeBehavior 在类 ComponentUI
      参数:
      c - 要返回基线调整行为的 JComponent
      返回:
      一个枚举,指示组件大小更改时基线的变化方式
      抛出:
      NullPointerException - 如果 cnull
      自版本:
      1.6
      参见:
    • getBaseline

      protected int getBaseline(int tab)
      返回指定选项卡的基线。
      参数:
      tab - 要获取基线的选项卡索引
      返回:
      基线或值 < 0,表示没有合理的基线
      抛出:
      IndexOutOfBoundsException - 如果索引超出范围(索引 < 0 或 索引 >= 选项卡计数)
      自版本:
      1.6
    • getBaselineOffset

      protected int getBaselineOffset()
      返回基线的偏移量。通常与 getTabLabelShiftY 相同。
      返回:
      基线的偏移量
      自版本:
      1.6
    • paintTabArea

      protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
      在选项卡区域中绘制选项卡。由 paint() 调用。图形参数必须是有效的 Graphics 对象。选项卡放置可以是: JTabbedPane.TOPJTabbedPane.BOTTOMJTabbedPane.LEFTJTabbedPane.RIGHT。所选索引必须是有效的选项卡索引(从 0 到选项卡计数 - 1,包括边界)或如果当前未选择任何选项卡则为 -1。对无效参数的处理未指定。
      参数:
      g - 用于渲染的图形对象
      tabPlacement - JTabbedPane 中选项卡的放置
      selectedIndex - 所选组件的选项卡索引
      自版本:
      1.4
    • paintTab

      protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
      绘制一个选项卡。
      参数:
      g - 图形
      tabPlacement - 选项卡放置
      rects - 选项卡矩形
      tabIndex - 选项卡索引
      iconRect - 图标矩形
      textRect - 文本矩形
    • layoutLabel

      protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
      布局标签。
      参数:
      tabPlacement - 选项卡放置
      metrics - 字体度量
      tabIndex - 选项卡索引
      title - 标题
      icon - 图标
      tabRect - 选项卡矩形
      iconRect - 图标矩形
      textRect - 文本矩形
      isSelected - 选择状态
    • paintIcon

      protected void paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
      绘制图标。
      参数:
      g - 图形
      tabPlacement - 选项卡放置
      tabIndex - 选项卡索引
      icon - 图标
      iconRect - 图标矩形
      isSelected - 选择状态
    • paintText

      protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
      绘制文本。
      参数:
      g - 图形
      tabPlacement - 选项卡放置
      font - 字体
      metrics - 字体度量
      tabIndex - 选项卡索引
      title - 标题
      textRect - 文本矩形
      isSelected - 选择状态
    • getTabLabelShiftX

      protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
      返回选项卡标签的 x 偏移量。
      参数:
      tabPlacement - 选项卡放置
      tabIndex - 选项卡索引
      isSelected - 选择状态
      返回:
      选项卡标签的 x 偏移量
    • getTabLabelShiftY

      protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
      返回选项卡标签的 y 偏移量。
      参数:
      tabPlacement - 选项卡放置
      tabIndex - 选项卡索引
      isSelected - 选择状态
      返回:
      选项卡标签的 y 偏移量
    • paintFocusIndicator

      protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
      绘制焦点指示器。
      参数:
      g - 图形
      tabPlacement - 选项卡放置
      rects - 选项卡矩形
      tabIndex - 选项卡索引
      iconRect - 图标矩形
      textRect - 文本矩形
      isSelected - 选择状态
    • paintTabBorder

      protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
      绘制选项卡周围的边框。请注意,此函数不绘制选项卡的背景,这是在其他地方完成的。
      参数:
      g - 用于绘制的图形上下文
      tabPlacement - 选项卡的放置(左、右、底部、顶部)
      tabIndex - 相对于其他选项卡的选项卡索引
      x - 选项卡的 x 坐标
      y - 选项卡的 y 坐标
      w - 选项卡的宽度
      h - 选项卡的高度
      isSelected - 一个 boolean,确定选项卡是否被选中
    • paintTabBackground

      protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
      绘制选项卡背景。
      参数:
      g - 用于绘制的图形上下文
      tabPlacement - 选项卡的放置(左、右、底部、顶部)
      tabIndex - 相对于其他选项卡的选项卡索引
      x - 选项卡的 x 坐标
      y - 选项卡的 y 坐标
      w - 选项卡的宽度
      h - 选项卡的高度
      isSelected - 一个 boolean,确定选项卡是否被选
    • paintContentBorder

      protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
      Paints the content border.
      Parameters:
      g - the graphics context in which to paint
      tabPlacement - the placement (left, right, bottom, top) of the tab
      selectedIndex - the tab index of the selected component
    • paintContentBorderTopEdge

      protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
      Paints the content border top edge.
      参数:
      g - 用于绘制的图形上下文
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      selectedIndex - 所选组件的选项卡索引
      x - 选项卡的x坐标
      y - 选项卡的y坐标
      w - 选项卡的宽度
      h - 选项卡的高度
    • paintContentBorderLeftEdge

      protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
      绘制内容边框左边缘。
      参数:
      g - 用于绘制的图形上下文
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      selectedIndex - 所选组件的选项卡索引
      x - 选项卡的x坐标
      y - 选项卡的y坐标
      w - 选项卡的宽度
      h - 选项卡的高度
    • paintContentBorderBottomEdge

      protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
      绘制内容边框底部边缘。
      参数:
      g - 用于绘制的图形上下文
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      selectedIndex - 所选组件的选项卡索引
      x - 选项卡的x坐标
      y - 选项卡的y坐标
      w - 选项卡的宽度
      h - 选项卡的高度
    • paintContentBorderRightEdge

      protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
      绘制内容边框右边缘。
      参数:
      g - 用于绘制的图形上下文
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      selectedIndex - 所选组件的选项卡索引
      x - 选项卡的x坐标
      y - 选项卡的y坐标
      w - 选项卡的宽度
      h - 选项卡的高度
    • getTabBounds

      public Rectangle getTabBounds(JTabbedPane pane, int i)
      返回指定选项卡索引的边界。边界是相对于JTabbedPane的坐标空间的。
      指定者:
      getTabBounds 在类 TabbedPaneUI
      参数:
      pane - 面板
      i - 索引
      返回:
      选项卡边界的矩形
    • getTabRunCount

      public int getTabRunCount(JTabbedPane pane)
      从类中复制的描述: TabbedPaneUI
      返回选项卡运行计数。
      指定者:
      getTabRunCount 在类 TabbedPaneUI
      参数:
      pane - 面板
      返回:
      选项卡运行计数
    • tabForCoordinate

      public int tabForCoordinate(JTabbedPane pane, int x, int y)
      返回与JTabbedPane的坐标空间中指定点相交的选项卡索引。
      指定者:
      tabForCoordinate 在类 TabbedPaneUI
      参数:
      pane - 面板
      x - x坐标
      y - y坐标
      返回:
      坐标的选项卡
    • getTabBounds

      protected Rectangle getTabBounds(int tabIndex, Rectangle dest)
      返回JTabbedPane组件的坐标空间中指定选项卡的边界。这是因为选项卡矩形默认在呈现它们的组件的坐标空间中定义,这可以是JTabbedPane(对于WRAP_TAB_LAYOUT)或ScrollableTabPanel(SCROLL_TAB_LAYOUT)。每当选项卡矩形必须相对于JTabbedPane本身时,应使用此方法,并且结果应放置在指定的Rectangle对象中(而不是每次实例化并返回新的Rectangle)。选项卡索引参数必须是有效的选项卡索引(从0到选项卡计数-1,包括在内)。目标矩形参数必须是有效的Rectangle实例。对无效参数的处理未指定。
      参数:
      tabIndex - 选项卡的索引
      dest - 结果应放置的矩形
      返回:
      结果矩形
      自1.4起:
      1.4
    • getVisibleComponent

      protected Component getVisibleComponent()
      返回可见组件。
      返回:
      可见组件
    • setVisibleComponent

      protected void setVisibleComponent(Component component)
      设置可见组件。
      参数:
      component - 组件
    • assureRectsCreated

      protected void assureRectsCreated(int tabCount)
      确保创建选项卡矩形。
      参数:
      tabCount - 选项卡计数
    • expandTabRunsArray

      protected void expandTabRunsArray()
      扩展选项卡运行数组。
    • getRunForTab

      protected int getRunForTab(int tabCount, int tabIndex)
      返回选项卡的运行。
      参数:
      tabCount - 选项卡计数
      tabIndex - 选项卡索引
      返回:
      选项卡的运行
    • lastTabInRun

      protected int lastTabInRun(int tabCount, int run)
      返回运行中的最后一个选项卡。
      参数:
      tabCount - 选项卡计数
      run - 运行
      返回:
      运行中的最后一个选项卡
    • getTabRunOverlay

      protected int getTabRunOverlay(int tabPlacement)
      返回选项卡运行叠加。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      返回:
      选项卡运行叠加
    • getTabRunIndent

      protected int getTabRunIndent(int tabPlacement, int run)
      返回选项卡运行缩进。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      run - 选项卡运行
      返回:
      选项卡运行缩进
    • shouldPadTabRun

      protected boolean shouldPadTabRun(int tabPlacement, int run)
      返回选项卡运行是否应填充。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      run - 选项卡运行
      返回:
      选项卡运行是否应填充
    • shouldRotateTabRuns

      protected boolean shouldRotateTabRuns(int tabPlacement)
      返回选项卡运行是否应旋转。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      返回:
      选项卡运行是否应旋转
    • getIconForTab

      protected Icon getIconForTab(int tabIndex)
      返回选项卡的图标。
      参数:
      tabIndex - 选项卡的索引
      返回:
      选项卡的图标
    • getTextViewForTab

      protected View getTextViewForTab(int tabIndex)
      返回用于呈现指定选项卡的样式化文本(HTML)所需的文本视图对象,如果不需要为此选项卡进行特殊的文本呈现,则返回null。这是为了支持选项卡内部的html呈现。
      参数:
      tabIndex - 选项卡的索引
      返回:
      用于呈现选项卡文本的文本视图,如果不需要特殊呈现,则返回null
      自1.4起:
      1.4
    • calculateTabHeight

      protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight)
      计算选项卡高度。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      tabIndex - 与其他选项卡相关的选项卡索引
      fontHeight - 字体高度
      返回:
      选项卡高度
    • calculateMaxTabHeight

      protected int calculateMaxTabHeight(int tabPlacement)
      计算最大选项卡高度。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      返回:
      最大选项卡高度
    • calculateTabWidth

      protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)
      计算选项卡宽度。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      tabIndex - 与其他选项卡相关的选项卡索引
      metrics - 字体度量
      返回:
      选项卡宽度
    • calculateMaxTabWidth

      protected int calculateMaxTabWidth(int tabPlacement)
      计算最大选项卡宽度。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      返回:
      最大选项卡宽度
    • calculateTabAreaHeight

      protected int calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight)
      计算选项卡区域高度。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      horizRunCount - 水平运行计数
      maxTabHeight - 最大选项卡高度
      返回:
      选项卡区域高度
    • calculateTabAreaWidth

      protected int calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth)
      计算选项卡区域宽度。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      vertRunCount - 垂直运行计数
      maxTabWidth - 最大选项卡宽度
      返回:
      选项卡区域宽度
    • getTabInsets

      protected Insets getTabInsets(int tabPlacement, int tabIndex)
      返回选项卡插图。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      tabIndex - 选项卡索引
      返回:
      选项卡插图
    • getSelectedTabPadInsets

      protected Insets getSelectedTabPadInsets(int tabPlacement)
      返回所选选项卡的填充插图。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶
    • getTabAreaInsets

      protected Insets getTabAreaInsets(int tabPlacement)
      Returns the tab area insets.
      Parameters:
      tabPlacement - the placement (left, right, bottom, top) of the tab
      Returns:
      the pad area insets
    • getContentBorderInsets

      protected Insets getContentBorderInsets(int tabPlacement)
      Returns the content border insets.
      Parameters:
      tabPlacement - the placement (left, right, bottom, top) of the tab
      Returns:
      the content border insets
    • getFontMetrics

      protected FontMetrics getFontMetrics()
      Returns the font metrics.
      Returns:
      the font metrics
    • selectNextTabInRun

      protected void selectNextTabInRun(int current)
      选择运行中的下一个选项卡。
      参数:
      current - 当前选项卡
    • selectPreviousTabInRun

      protected void selectPreviousTabInRun(int current)
      选择运行中的上一个选项卡。
      参数:
      current - 当前选项卡
    • selectNextTab

      protected void selectNextTab(int current)
      选择下一个选项卡。
      参数:
      current - 当前选项卡
    • selectPreviousTab

      protected void selectPreviousTab(int current)
      选择上一个选项卡。
      参数:
      current - 当前选项卡
    • selectAdjacentRunTab

      protected void selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset)
      选择相邻的选项卡运行。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      tabIndex - 选项卡相对于其他选项卡的索引
      offset - 选择偏移量
    • getFocusIndex

      protected int getFocusIndex()
      返回具有焦点的选项卡的索引。
      返回:
      具有焦点的选项卡的索引
      自版本:
      1.5
    • getTabRunOffset

      protected int getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward)
      返回选项卡运行偏移量。
      参数:
      tabPlacement - 选项卡的位置(左、右、底部、顶部)
      tabCount - 选项卡计数
      tabIndex - 选项卡相对于其他选项卡的索引
      forward - 是否向前
      返回:
      选项卡运行偏移量
    • getPreviousTabIndex

      protected int getPreviousTabIndex(int base)
      返回上一个选项卡的索引。
      参数:
      base - 基础
      返回:
      上一个选项卡的索引
    • getNextTabIndex

      protected int getNextTabIndex(int base)
      返回下一个选项卡的索引。
      参数:
      base - 基础
      返回:
      下一个选项卡的索引
    • getNextTabIndexInRun

      protected int getNextTabIndexInRun(int tabCount, int base)
      返回运行中的下一个选项卡的索引。
      参数:
      tabCount - 选项卡计数
      base - 基础
      返回:
      运行中的下一个选项卡的索引
    • getPreviousTabIndexInRun

      protected int getPreviousTabIndexInRun(int tabCount, int base)
      返回运行中的上一个选项卡的索引。
      参数:
      tabCount - 选项卡计数
      base - 基础
      返回:
      运行中的上一个选项卡的索引
    • getPreviousTabRun

      protected int getPreviousTabRun(int baseRun)
      返回上一个选项卡运行。
      参数:
      baseRun - 基础运行
      返回:
      上一个选项卡运行
    • getNextTabRun

      protected int getNextTabRun(int baseRun)
      返回下一个选项卡运行。
      参数:
      baseRun - 基础运行
      返回:
      下一个选项卡运行
    • rotateInsets

      protected static void rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)
      旋转插图。
      参数:
      topInsets - 顶部插图
      targetInsets - 目标插图
      targetPlacement - 目标位置