JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.plaf.metal
クラス MetalTabbedPaneUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.TabbedPaneUI
              |
              +--javax.swing.plaf.basic.BasicTabbedPaneUI
                    |
                    +--javax.swing.plaf.metal.MetalTabbedPaneUI
すべての実装インタフェース:
SwingConstants

public class MetalTabbedPaneUI
extends BasicTabbedPaneUI

BasicTabbedPaneUI の Metal 用のサブクラスです。

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。


内部クラスの概要
 class MetalTabbedPaneUI.TabbedPaneLayout
          この内部クラスは public とマークされますが、これはコンパイラのバグが原因です。
 
クラス javax.swing.plaf.basic.BasicTabbedPaneUI から継承した内部クラス
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandler
 
フィールドの概要
protected  int minTabWidth
           
protected  Color selectColor
           
protected  Color selectHighlight
           
protected  Color tabAreaBackground
           
 
クラス javax.swing.plaf.basic.BasicTabbedPaneUI から継承したフィールド
contentBorderInsets, darkShadow, downKey, focus, focusListener, highlight, leftKey, lightHighlight, maxTabHeight, maxTabWidth, mouseListener, propertyChangeListener, rects, rightKey, runCount, selectedRun, selectedTabPadInsets, shadow, tabAreaInsets, tabChangeListener, tabInsets, tabPane, tabRunOverlay, tabRuns, textIconGap, upKey
 
インタフェース javax.swing.SwingConstants から継承したフィールド
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
コンストラクタの概要
MetalTabbedPaneUI()
           
 
メソッドの概要
protected  int calculateMaxTabHeight(int tabPlacement)
           
protected  LayoutManager createLayoutManager()
           
static ComponentUI createUI(JComponent x)
           
protected  Color getColorForGap(int currentRun, int x, int y)
           
protected  int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
          Java Look & Feel に対して何も行わないためにオーバーライドされます。
protected  int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
          Java Look & Feel 用に何も行わないためにオーバーライドされます。
protected  int getTabRunOverlay(int tabPlacement)
           
protected  void installDefaults()
           
 void paint(Graphics g, JComponent c)
           
protected  void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
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 paintHighlightBelowTab()
           
protected  void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
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 paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  boolean shouldFillGap(int currentRun, int tabIndex, int x, int y)
           
protected  boolean shouldPadTabRun(int tabPlacement, int run)
           
protected  boolean shouldRotateTabRuns(int tabPlacement, int selectedRun)
           
 void update(Graphics g, JComponent c)
           
 
クラス javax.swing.plaf.basic.BasicTabbedPaneUI から継承したメソッド
assureRectsCreated, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, expandTabRunsArray, getContentBorderInsets, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getPreferredSize, getPreviousTabIndex, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getVisibleComponent, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintIcon, paintTab, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectPreviousTab, setVisibleComponent, shouldRotateTabRuns, tabForCoordinate, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

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)

createLayoutManager

protected LayoutManager createLayoutManager()
オーバーライド:
クラス BasicTabbedPaneUI 内の createLayoutManager

installDefaults

protected void installDefaults()
オーバーライド:
クラス BasicTabbedPaneUI 内の installDefaults

paintTabBorder

protected void paintTabBorder(Graphics g,
                              int tabPlacement,
                              int tabIndex,
                              int x,
                              int y,
                              int w,
                              int h,
                              boolean isSelected)
クラス BasicTabbedPaneUI の記述:
各タブの周囲にボーダを描画します。この関数は、同時にタブのバックグラウンドも描画しますが、それはほかの場所で行われます。
オーバーライド:
クラス BasicTabbedPaneUI 内の paintTabBorder

paintTopTabBorder

protected void paintTopTabBorder(int tabIndex,
                                 Graphics g,
                                 int x,
                                 int y,
                                 int w,
                                 int h,
                                 int btm,
                                 int rght,
                                 boolean isSelected)

shouldFillGap

protected boolean shouldFillGap(int currentRun,
                                int tabIndex,
                                int x,
                                int y)

getColorForGap

protected Color getColorForGap(int currentRun,
                               int x,
                               int y)

paintLeftTabBorder

protected void paintLeftTabBorder(int tabIndex,
                                  Graphics g,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  int btm,
                                  int rght,
                                  boolean isSelected)

paintBottomTabBorder

protected void paintBottomTabBorder(int tabIndex,
                                    Graphics g,
                                    int x,
                                    int y,
                                    int w,
                                    int h,
                                    int btm,
                                    int rght,
                                    boolean isSelected)

paintRightTabBorder

protected void paintRightTabBorder(int tabIndex,
                                   Graphics g,
                                   int x,
                                   int y,
                                   int w,
                                   int h,
                                   int btm,
                                   int rght,
                                   boolean isSelected)

update

public void update(Graphics g,
                   JComponent c)
オーバーライド:
クラス ComponentUI 内の update

paintTabBackground

protected void paintTabBackground(Graphics g,
                                  int tabPlacement,
                                  int tabIndex,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  boolean isSelected)
オーバーライド:
クラス BasicTabbedPaneUI 内の paintTabBackground

getTabLabelShiftX

protected int getTabLabelShiftX(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)
Java Look & Feel に対して何も行わないためにオーバーライドされます。
オーバーライド:
クラス BasicTabbedPaneUI 内の getTabLabelShiftX

getTabLabelShiftY

protected int getTabLabelShiftY(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)
Java Look & Feel 用に何も行わないためにオーバーライドされます。
オーバーライド:
クラス BasicTabbedPaneUI 内の getTabLabelShiftY

paint

public void paint(Graphics g,
                  JComponent c)
オーバーライド:
クラス BasicTabbedPaneUI 内の paint

paintHighlightBelowTab

protected void paintHighlightBelowTab()

paintFocusIndicator

protected void paintFocusIndicator(Graphics g,
                                   int tabPlacement,
                                   Rectangle[] rects,
                                   int tabIndex,
                                   Rectangle iconRect,
                                   Rectangle textRect,
                                   boolean isSelected)
オーバーライド:
クラス BasicTabbedPaneUI 内の paintFocusIndicator

paintContentBorderTopEdge

protected void paintContentBorderTopEdge(Graphics g,
                                         int tabPlacement,
                                         int selectedIndex,
                                         int x,
                                         int y,
                                         int w,
                                         int h)
オーバーライド:
クラス BasicTabbedPaneUI 内の paintContentBorderTopEdge

paintContentBorderBottomEdge

protected void paintContentBorderBottomEdge(Graphics g,
                                            int tabPlacement,
                                            int selectedIndex,
                                            int x,
                                            int y,
                                            int w,
                                            int h)
オーバーライド:
クラス BasicTabbedPaneUI 内の paintContentBorderBottomEdge

paintContentBorderLeftEdge

protected void paintContentBorderLeftEdge(Graphics g,
                                          int tabPlacement,
                                          int selectedIndex,
                                          int x,
                                          int y,
                                          int w,
                                          int h)
オーバーライド:
クラス BasicTabbedPaneUI 内の paintContentBorderLeftEdge

paintContentBorderRightEdge

protected void paintContentBorderRightEdge(Graphics g,
                                           int tabPlacement,
                                           int selectedIndex,
                                           int x,
                                           int y,
                                           int w,
                                           int h)
オーバーライド:
クラス BasicTabbedPaneUI 内の paintContentBorderRightEdge

calculateMaxTabHeight

protected int calculateMaxTabHeight(int tabPlacement)
オーバーライド:
クラス BasicTabbedPaneUI 内の calculateMaxTabHeight

getTabRunOverlay

protected int getTabRunOverlay(int tabPlacement)
オーバーライド:
クラス BasicTabbedPaneUI 内の getTabRunOverlay

shouldRotateTabRuns

protected boolean shouldRotateTabRuns(int tabPlacement,
                                      int selectedRun)

shouldPadTabRun

protected boolean shouldPadTabRun(int tabPlacement,
                                  int run)
オーバーライド:
クラス BasicTabbedPaneUI 内の shouldPadTabRun

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.