モジュール java.desktop
パッケージ javax.swing.plaf.metal

クラスMetalTabbedPaneUI

  • すべての実装されたインタフェース:
    SwingConstants

    public class MetalTabbedPaneUI
    extends BasicTabbedPaneUI
    BasicTabbedPaneUIのMetalサブクラスです。

    警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートがjava.beansパッケージに追加されています。 XMLEncoderを参照してください。

    • フィールドの詳細

      • minTabWidth

        protected int minTabWidth
        ペインの最小幅。
      • tabAreaBackground

        protected Color tabAreaBackground
        タブのバックグラウンドの色です。
      • selectColor

        protected Color selectColor
        選択したペインの色です。
      • selectHighlight

        protected Color selectHighlight
        ハイライトの色。
    • コンストラクタの詳細

      • MetalTabbedPaneUI

        public MetalTabbedPaneUI()
    • メソッドの詳細

      • createUI

        public static ComponentUI createUI​(JComponent x)
        MetalTabbedPaneUIを構築します。
        パラメータ:
        x - コンポーネント
        戻り値:
        MetalTabbedPaneUIのインスタンス
      • paintTopTabBorder

        protected void paintTopTabBorder​(int tabIndex,
                                         Graphics g,
                                         int x,
                                         int y,
                                         int w,
                                         int h,
                                         int btm,
                                         int rght,
                                         boolean isSelected)
        上部のタブのボーダーをペイントします。
        パラメータ:
        tabIndex - タブ・インデックス
        g - Graphicsのインスタンス
        x - X座標
        y - Y座標
        w - 幅
        h - 高さ
        btm - bottom
        rght - right
        isSelected - 選択肢
      • shouldFillGap

        protected boolean shouldFillGap​(int currentRun,
                                        int tabIndex,
                                        int x,
                                        int y)
        ギャップを埋める必要がある場合はtrueを返します。
        パラメータ:
        currentRun - 現在実行中
        tabIndex - タブ・インデックス
        x - X座標
        y - Y座標
        戻り値:
        ギャップを埋める必要がある場合はtrue
      • getColorForGap

        protected Color getColorForGap​(int currentRun,
                                       int x,
                                       int y)
        ギャップの色を返します。
        パラメータ:
        currentRun - 現在実行中
        x - X座標
        y - Y座標
        戻り値:
        ギャップの色
      • paintLeftTabBorder

        protected void paintLeftTabBorder​(int tabIndex,
                                          Graphics g,
                                          int x,
                                          int y,
                                          int w,
                                          int h,
                                          int btm,
                                          int rght,
                                          boolean isSelected)
        左のタブのボーダーをペイントします。
        パラメータ:
        tabIndex - タブ・インデックス
        g - Graphicsのインスタンス
        x - X座標
        y - Y座標
        w - 幅
        h - 高さ
        btm - bottom
        rght - right
        isSelected - 選択肢
      • paintBottomTabBorder

        protected void paintBottomTabBorder​(int tabIndex,
                                            Graphics g,
                                            int x,
                                            int y,
                                            int w,
                                            int h,
                                            int btm,
                                            int rght,
                                            boolean isSelected)
        下部のタブのボーダーをペイントします。
        パラメータ:
        tabIndex - タブ・インデックス
        g - Graphicsのインスタンス
        x - X座標
        y - Y座標
        w - 幅
        h - 高さ
        btm - bottom
        rght - right
        isSelected - 選択肢
      • paintRightTabBorder

        protected void paintRightTabBorder​(int tabIndex,
                                           Graphics g,
                                           int x,
                                           int y,
                                           int w,
                                           int h,
                                           int btm,
                                           int rght,
                                           boolean isSelected)
        右のタブのボーダーをペイントします。
        パラメータ:
        tabIndex - タブ・インデックス
        g - Graphicsのインスタンス
        x - X座標
        y - Y座標
        w - 幅
        h - 高さ
        btm - bottom
        rght - right
        isSelected - 選択肢
      • getTabLabelShiftX

        protected int getTabLabelShiftX​(int tabPlacement,
                                        int tabIndex,
                                        boolean isSelected)
        Java L&Fの処理を実行しないように、オーバーライドされます。
        オーバーライド:
        getTabLabelShiftX、クラス: BasicTabbedPaneUI
        パラメータ:
        tabPlacement - タブ配置
        tabIndex - タブ・インデックス
        isSelected - 選択ステータス
        戻り値:
        タブ・ラベル・シフトx
      • getTabLabelShiftY

        protected int getTabLabelShiftY​(int tabPlacement,
                                        int tabIndex,
                                        boolean isSelected)
        Java L&Fの処理を実行しないように、オーバーライドされます。
        オーバーライド:
        getTabLabelShiftY、クラス: BasicTabbedPaneUI
        パラメータ:
        tabPlacement - タブ配置
        tabIndex - タブ・インデックス
        isSelected - 選択ステータス
        戻り値:
        タブ・ラベル・シフトy
      • getBaselineOffset

        protected int getBaselineOffset()
        ベースラインのオフセット量を返します。 これは一般に、getTabLabelShiftYと同じです。
        オーバーライド:
        getBaselineOffset、クラス: BasicTabbedPaneUI
        戻り値:
        ベースラインのオフセット量
        導入されたバージョン:
        1.6
      • paintHighlightBelowTab

        protected void paintHighlightBelowTab()
        タブの下のハイライトをペイントします。
      • shouldRotateTabRuns

        protected boolean shouldRotateTabRuns​(int tabPlacement,
                                              int selectedRun)
        タブ・ランを回転させる必要がある場合はtrueを返します。
        パラメータ:
        tabPlacement - タブ配置
        selectedRun - 選択された実行
        戻り値:
        タブ・ランを回転させる必要がある場合はtrue