JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.plaf.metal
クラス MetalToggleButtonUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ButtonUI
              |
              +--javax.swing.plaf.basic.BasicButtonUI
                    |
                    +--javax.swing.plaf.basic.BasicToggleButtonUI
                          |
                          +--javax.swing.plaf.metal.MetalToggleButtonUI

public class MetalToggleButtonUI
extends BasicToggleButtonUI

MetalToggleButton の実装です。

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


フィールドの概要
protected  Color disabledTextColor
           
protected  Color focusColor
           
protected  Color selectColor
           
 
クラス javax.swing.plaf.basic.BasicButtonUI から継承したフィールド
defaultTextIconGap, defaultTextShiftOffset
 
コンストラクタの概要
MetalToggleButtonUI()
           
 
メソッドの概要
static ComponentUI createUI(JComponent b)
           
protected  Color getDisabledTextColor()
           
protected  Color getFocusColor()
           
protected  Color getSelectColor()
           
 void installDefaults(AbstractButton b)
           
protected  void paintButtonPressed(Graphics g, AbstractButton b)
           
protected  void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
protected  void uninstallDefaults(AbstractButton b)
           
 
クラス javax.swing.plaf.basic.BasicToggleButtonUI から継承したメソッド
getPropertyPrefix, paint, paintIcon, paintText
 
クラス javax.swing.plaf.basic.BasicButtonUI から継承したメソッド
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintIcon, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

focusColor

protected Color focusColor

selectColor

protected Color selectColor

disabledTextColor

protected Color disabledTextColor
コンストラクタの詳細

MetalToggleButtonUI

public MetalToggleButtonUI()
メソッドの詳細

createUI

public static ComponentUI createUI(JComponent b)

installDefaults

public void installDefaults(AbstractButton b)
オーバーライド:
クラス BasicButtonUI 内の installDefaults

uninstallDefaults

protected void uninstallDefaults(AbstractButton b)
オーバーライド:
クラス BasicButtonUI 内の uninstallDefaults

getSelectColor

protected Color getSelectColor()

getDisabledTextColor

protected Color getDisabledTextColor()

getFocusColor

protected Color getFocusColor()

paintButtonPressed

protected void paintButtonPressed(Graphics g,
                                  AbstractButton b)
オーバーライド:
クラス BasicToggleButtonUI 内の paintButtonPressed

paintText

protected void paintText(Graphics g,
                         JComponent c,
                         Rectangle textRect,
                         String text)
オーバーライド:
クラス BasicButtonUI 内の paintText

paintFocus

protected void paintFocus(Graphics g,
                          AbstractButton b,
                          Rectangle viewRect,
                          Rectangle textRect,
                          Rectangle iconRect)
オーバーライド:
クラス BasicToggleButtonUI 内の paintFocus

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.