クラスBasicTabbedPaneUI

すべての実装されたインタフェース:
SwingConstants
直系の既知のサブクラス:
MetalTabbedPaneUI, SynthTabbedPaneUI

public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants
TabbedPaneUIの基本L&F実装です。
  • ネストされたクラスのサマリー

    ネストされたクラス
    修飾子と型
    クラス
    説明
    class 
    このクラスは、「protected」内部クラスとして扱うようにしてください。
    class 
    このクラスは、「protected」内部クラスとして扱うようにしてください。
    class 
    このクラスは、「protected」内部クラスとして扱うようにしてください。
    class 
    このクラスは、「protected」内部クラスとして扱うようにしてください。
    class 
    このクラスは、「protected」内部クラスとして扱うようにしてください。
  • フィールドのサマリー

    フィールド
    修飾子と型
    フィールド
    説明
    protected Rectangle
    実行中に多くの新規Rectangleが構築されるのを防ぐため、一般レイアウト計算に使用される矩形です。
    protected Insets
    コンテンツのボーダー・インセット
    protected Color
    暗い影の色
    protected KeyStroke
    非推奨。
    Java 2プラットフォームv1.3以降。
    protected Color
    フォーカス・カラー
    protected FocusListener
    フォーカス変更リスナー
    protected Color
    強調表示の色
    protected KeyStroke
    非推奨。
    Java 2プラットフォームv1.3以降。
    protected Color
    ライト・ハイライト・カラー
    protected int
    最大タブ高さ
    protected int
    最大タブ幅
    protected MouseListener
    マウス変更リスナー
    プロパティ変更リスナー
    protected Rectangle[]
    タブ矩形
    protected KeyStroke
    非推奨。
    Java 2プラットフォームv1.3以降。
    protected int
    実行回数
    protected int
    選択された実行
    protected Insets
    選択されたタブ・インセット
    protected Color
    影の色
    protected Insets
    タブ領域のインセット
    protected ChangeListener
    タブ変更リスナー
    protected Insets
    タブ・インセット
    protected JTabbedPane
    タブ・ペイン
    protected int
    オーバーレイを実行するタブ
    protected int[]
    タブ・ラン
    protected int
    テキスト・アイコンの間隔
    protected KeyStroke
    非推奨。
    Java 2プラットフォームv1.3以降。

    インタフェースで宣言されたフィールド SwingConstants

    BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
    修飾子と型
    フィールド
    説明
    static final int
    ボックスの下端を指定するために使用するボックス配置定数です。
    static final int
    領域内の中央位置です。
    static final int
    東(右)の方角です。
    static final int
    水平方向です。
    static final int
    左から右に記述する言語および右から左に記述する言語で使用するテキストのリーディング・エッジを指定します。
    static final int
    ボックスの左端を指定するために使用するボックス配置定数です。
    static final int
    シーケンス内の次の方向を指定します。
    static final int
    北(上)の方角です。
    static final int
    北東(右上)の方角です。
    static final int
    北西(左上)の方角です。
    static final int
    シーケンス内の前の方向を指定します。
    static final int
    ボックスの右端を指定するために使用するボックス配置定数です。
    static final int
    南(下)の方角です。
    static final int
    南東(右下)の方角です。
    static final int
    南西(左下)の方角です。
    static final int
    ボックスの上端を指定するために使用するボックス配置定数です。
    static final int
    左から右に記述する言語および右から左に記述する言語で使用するテキストのトレーリング・エッジを指定します。
    static final int
    垂直方向です。
    static final int
    西(左)の方角です。
  • コンストラクタのサマリー

    コンストラクタ
    コンストラクタ
    説明
    BasicTabbedPaneUIを構築します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    protected void
    assureRectsCreated(int tabCount)
    タブ矩形が作成されていることを確認します。
    protected int
    calculateMaxTabHeight(int tabPlacement)
    タブの最大高さを計算します。
    protected int
    calculateMaxTabWidth(int tabPlacement)
    タブの最大幅を計算します。
    protected int
    calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight)
    タブ領域の高さを計算します。
    protected int
    calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth)
    タブ領域の幅を計算します。
    protected int
    calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight)
    タブの高さを計算します。
    protected int
    calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)
    タブの幅を計算します。
    protected ChangeListener
    変更リスナーを作成します。
    protected FocusListener
    フォーカス・リスナーを作成します。
    protected LayoutManager
    installUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。
    protected MouseListener
    マウス・リスナーを作成します。
    プロパティ変更リスナーを作成します。
    protected JButton
    createScrollButton(int direction)
    特定の方向にタブをスクロールする手段をユーザーに提供するJButtonを作成し、それを返します。
    UIを作成します。
    protected void
    タブを展開して配列を実行します。
    protected int
    getBaseline(int tab)
    指定されたタブのベースラインを返します。
    int
    getBaseline(JComponent c, int width, int height)
    ベースラインを返します。
    protected int
    ベースラインのオフセット量を返します。
    サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。
    protected Insets
    getContentBorderInsets(int tabPlacement)
    コンテンツ・ボーダー・インセットを返します。
    protected int
    フォーカスのあるタブのインデックスを返します。
    protected FontMetrics
    フォント・メトリックを返します。
    protected Icon
    getIconForTab(int tabIndex)
    タブのアイコンを返します。
    protected int
    getNextTabIndex(int base)
    次のタブ・インデックスを返します。
    protected int
    getNextTabIndexInRun(int tabCount, int base)
    実行内の次のタブ・インデックスを返します。
    protected int
    getNextTabRun(int baseRun)
    次のタブ実行を返します。
    protected int
    前のタブ・インデックスを返します。
    protected int
    getPreviousTabIndexInRun(int tabCount, int base)
    実行の前のタブ・インデックスを返します。
    protected int
    getPreviousTabRun(int baseRun)
    前のタブ実行を返します。
    protected int
    マウスが現在置かれているタブを返します。マウスがタブの上にない場合は-1を返します。
    protected int
    getRunForTab(int tabCount, int tabIndex)
    タブの実行を返します。
    protected Insets
    getSelectedTabPadInsets(int tabPlacement)
    選択したタブ・パッド・インセットを返します。
    protected Insets
    getTabAreaInsets(int tabPlacement)
    タブ・エリア・インセットを返します。
    protected Rectangle
    getTabBounds(int tabIndex, Rectangle dest)
    JTabbedPaneコンポーネントの座標空間内の、指定されたタブの境界を返します。
    getTabBounds(JTabbedPane pane, int i)
    指定されたタブ・インデックスの境界を返します。
    protected Insets
    getTabInsets(int tabPlacement, int tabIndex)
    タブ・インセットを返します。
    protected int
    getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
    タブ・ラベルのシフトxを返します。
    protected int
    getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
    タブ・ラベルのシフトyを返します。
    int
    タブ実行数を返します。
    protected int
    getTabRunIndent(int tabPlacement, int run)
    タブ実行インデントを返します。
    protected int
    getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward)
    タブ実行オフセットを返します。
    protected int
    getTabRunOverlay(int tabPlacement)
    タブ実行オーバーレイを返します。
    protected View
    getTextViewForTab(int tabIndex)
    指定されたタブ用の様式化されたテキスト(HTML)をレンダリングするために必要な、テキストViewオブジェクトを返します。このタブに特別なテキスト・レンダリングが必要ない場合は、nullを返します。
    protected Component
    表示可能なコンポーネントを返します。
    protected void
    JTabbedPaneに必要なサブコンポーネントを作成およびインストールします。
    protected void
    デフォルトをインストールします。
    protected void
    キーボード操作をインストールします。
    protected void
    リスナーをインストールします。
    protected int
    lastTabInRun(int tabCount, int run)
    実行の最後のタブを返します。
    protected void
    layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
    ラベルをレイアウトします。
    protected void
    navigateSelectedTab(int direction)
    選択したタブをナビゲートします。
    protected void
    paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
    コンテンツ・ボーダーをペイントします。
    protected void
    paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
    コンテンツ・ボーダーの下端をペイントします。
    protected void
    paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
    コンテンツ・ボーダーを左端にペイントします。
    protected void
    paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
    コンテンツ・ボーダーを右端にペイントします。
    protected void
    paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
    コンテンツ・ボーダーを上端にペイントします。
    protected void
    paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
    フォーカス・インジケータをペイントします。
    protected void
    paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
    アイコンをペイントします。
    protected void
    paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
    タブをペイントします。
    protected void
    paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
    タブ領域のタブをペイントします。
    protected void
    paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
    タブのバックグラウンドをペイントします。
    protected void
    paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
    タブを囲む枠線を描画します。
    protected void
    paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
    テキストをペイントします。
    protected static void
    rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)
    インセットを回転します。
    protected void
    selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset)
    隣接するタブの実行を選択します。
    protected void
    selectNextTab(int current)
    次のタブを選択します。
    protected void
    selectNextTabInRun(int current)
    実行の次のタブを選択します。
    protected void
    selectPreviousTab(int current)
    前のタブを選択します。
    protected void
    実行で前のタブを選択します。
    protected void
    setRolloverTab(int index)
    マウスが現在置かれているタブをindexに設定します。
    protected void
    表示コンポーネントを設定します。
    protected boolean
    shouldPadTabRun(int tabPlacement, int run)
    タブ実行をパディングする必要があるかどうかを返します。
    protected boolean
    shouldRotateTabRuns(int tabPlacement)
    タブ実行をローテーションするかどうかを返します。
    int
    tabForCoordinate(JTabbedPane pane, int x, int y)
    JTabbedPane座標空間内の指定された点と交差するタブ・インデックスを返します。
    protected void
    インストールされているサブコンポーネントをJTabbedPaneから削除します。
    protected void
    デフォルトをアンインストールします。
    protected void
    キーボード操作をアンインストールします。
    protected void
    リスナーをアンインストールします。

    クラスで宣言されたメソッド ComponentUI

    contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
    修飾子と型
    メソッド
    説明
    boolean
    contains(JComponent c, int x, int y)
    指定された x,yの位置が、指定されたコンポーネントのLook & Feel定義の形状内にある場合は、trueを返します。
    オブジェクトのi番目のAccessibleの子を返します。
    int
    オブジェクト内のアクセシビリティ対応の子の数を返します。
    指定されたコンポーネントの、Look & Feelに適した最大サイズを返します。
    指定されたコンポーネントの、Look & Feelに適した最小サイズを返します。
    指定されたコンポーネントの、Look & Feelに適した推奨サイズを返します。
    void
    指定されたコンポーネントをLook & Feelに応じて適切に構成します。
    void
    指定されたコンポーネントをLook & Feelに合わせてペイントします。
    void
    installUI時に、指定されたコンポーネントに対して行われた構成を取り消します。
    void
    指定されたコンポーネントをペイントする時間になったことを、このUI委譲に通知します。

    クラスオブジェクトで宣言されたメソッド

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    修飾子と型
    メソッド
    説明
    protected Object
    このオブジェクトのコピーを作成して、返します。
    boolean
    このオブジェクトと他のオブジェクトが等しいかどうかを示します。
    protected void
    削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。
    最終決定は非推奨であり、将来のリリースで削除される可能性があります。
    final Class<?>
    このObjectの実行時クラスを返します。
    int
    このオブジェクトに対するハッシュ・コード値を返します。
    final void
    このオブジェクトのモニターで待機中のスレッドを1つ再開します。
    final void
    このオブジェクトのモニターで待機中のすべてのスレッドを再開します。
    オブジェクトの文字列表現を返します。
    final void
    現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。
    final void
    wait(long timeoutMillis)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
    final void
    wait(long timeoutMillis, int nanos)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
  • フィールド詳細

    • 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
      非推奨。
      Java 2プラットフォームv1.3以降。
      以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
    • downKey

      @Deprecated protected KeyStroke downKey
      非推奨。
      Java 2プラットフォームv1.3以降。
      以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
    • leftKey

      @Deprecated protected KeyStroke leftKey
      非推奨。
      Java 2プラットフォームv1.3以降。
      以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
    • rightKey

      @Deprecated protected KeyStroke rightKey
      非推奨。
      Java 2プラットフォームv1.3以降。
      以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.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
      実行中に多くの新規Rectangleが構築されるのを防ぐため、一般レイアウト計算に使用される矩形です。
  • コンストラクタの詳細

    • BasicTabbedPaneUI

      public BasicTabbedPaneUI()
      BasicTabbedPaneUIを構築します。
  • メソッドの詳細

    • createUI

      public static ComponentUI createUI(JComponent c)
      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.LEFT、またはJTabbedPane.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)
      コンテンツ・ボーダーをペイントします。
      パラメータ:
      g - ペイントするグラフィックス・コンテキスト
      tabPlacement - タブの配置(左、右、下、上)
      selectedIndex - 選択されたコンポーネントのタブ・インデックス
    • paintContentBorderTopEdge

      protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
      コンテンツ・ボーダーを上端にペイントします。
      パラメータ:
      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コンポーネントの座標空間内の、指定されたタブの境界を返します。 これは、タブ矩形はデフォルトでは、それらがレンダリングされるコンポーネントの座標空間内(WRAP_TAB_LAYOUTの場合はJTabbedPane、SCROLL_TAB_LAYOUTの場合はScrollableTabPanel)に定義されるため必要になります。 このメソッドは、タブ矩形がJTabbedPane自体を基準とする必要があるときに使用してください。結果は、指定されたRectangleオブジェクト内に置くべきです(毎回新しいRectangleをインスタンス化して返すのではなく)。 タブ・インデックス・パラメータは、有効なタブ・ペイン・タブ・インデックス(0からタブ数-1以下)である必要があります。 宛先矩形パラメータは、有効なRectangleインスタンスである必要があります。 無効なパラメータの処理は未指定です。
      パラメータ:
      tabIndex - タブのインデックス
      dest - 結果が置かれるべき矩形
      戻り値:
      結果の矩形
      導入されたバージョン:
      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)をレンダリングするために必要な、テキストViewオブジェクトを返します。このタブに特別なテキスト・レンダリングが必要ない場合は、nullを返します。 タブ内でHTMLレンダリングをサポートするために提供されます。
      パラメータ:
      tabIndex - タブのインデックス
      戻り値:
      タブのテキストをレンダリングするテキスト・ビュー。特別なレンダリングが必要ない場合はnull
      導入されたバージョン:
      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)
      タブ・エリア・インセットを返します。
      パラメータ:
      tabPlacement - タブの配置(左、右、下、上)
      戻り値:
      パッド領域インセット
    • getContentBorderInsets

      protected Insets getContentBorderInsets(int tabPlacement)
      コンテンツ・ボーダー・インセットを返します。
      パラメータ:
      tabPlacement - タブの配置(左、右、下、上)
      戻り値:
      コンテンツのボーダー・インセット
    • getFontMetrics

      protected FontMetrics getFontMetrics()
      フォント・メトリックを返します。
      戻り値:
      フォント・メトリック
    • 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 - ターゲット配置