JavaTM 2
Platform
Std. Ed. v1.4.0

javax.swing.plaf.metal
クラス MetalRadioButtonUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ButtonUI
              |
              +--javax.swing.plaf.basic.BasicButtonUI
                    |
                    +--javax.swing.plaf.basic.BasicToggleButtonUI
                          |
                          +--javax.swing.plaf.basic.BasicRadioButtonUI
                                |
                                +--javax.swing.plaf.metal.MetalRadioButtonUI
直系の既知のサブクラス:
MetalCheckBoxUI

public class MetalRadioButtonUI
extends BasicRadioButtonUI

MetalRadioButtonUI で使用する RadioButtonUI の実装です。

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


フィールドの概要
protected  Color disabledTextColor
           
protected  Color focusColor
           
protected  Color selectColor
           
 
クラス javax.swing.plaf.basic.BasicRadioButtonUI から継承したフィールド
icon
 
クラス javax.swing.plaf.basic.BasicButtonUI から継承したフィールド
defaultTextIconGap, defaultTextShiftOffset
 
コンストラクタの概要
MetalRadioButtonUI()
           
 
メソッドの概要
static ComponentUI createUI(JComponent c)
          指定されたコンポーネントの UI 委譲のインスタンスを返します。
protected  Color getDisabledTextColor()
           
protected  Color getFocusColor()
           
protected  Color getSelectColor()
           
 void installDefaults(AbstractButton b)
           
 void paint(Graphics g, JComponent c)
          ラジオボタンをペイントします。
protected  void paintFocus(Graphics g, Rectangle t, Dimension d)
           
protected  void uninstallDefaults(AbstractButton b)
           
 
クラス javax.swing.plaf.basic.BasicRadioButtonUI から継承したメソッド
getDefaultIcon, getPreferredSize, getPropertyPrefix
 
クラス javax.swing.plaf.basic.BasicToggleButtonUI から継承したメソッド
getTextShiftOffset, paintIcon
 
クラス javax.swing.plaf.basic.BasicButtonUI から継承したメソッド
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, 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
コンストラクタの詳細

MetalRadioButtonUI

public MetalRadioButtonUI()
メソッドの詳細

createUI

public static ComponentUI createUI(JComponent c)
クラス ComponentUI の記述:
指定されたコンポーネントの UI 委譲のインスタンスを返します。各サブクラスは、それ自体の静的な createUI メソッドを提供して、その UI 委譲のサブクラスのインスタンスを返す必要があります。UI 委譲のサブクラスが状態なしの場合、複数のコンポーネントに共有されるインスタンスを返します。UI 委譲が状態ありの場合、コンポーネントごとに新しいインスタンスを返す必要があります。このメソッドは呼び出してはいけないため、そのデフォルト実装はエラーをスローします。


installDefaults

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

uninstallDefaults

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

getSelectColor

protected Color getSelectColor()

getDisabledTextColor

protected Color getDisabledTextColor()

getFocusColor

protected Color getFocusColor()

paint

public void paint(Graphics g,
                  JComponent c)
クラス BasicRadioButtonUI の記述:
ラジオボタンをペイントします。

オーバーライド:
クラス BasicRadioButtonUI 内の paint
パラメータ:
g - ペイント先となる Graphics コンテキスト
c - ペイントされるコンポーネント。この引数はしばしば無視されるが、UI オブジェクトが状態なしで複数のコンポーネントに共有される場合に使用されることがある
関連項目:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

paintFocus

protected void paintFocus(Graphics g,
                          Rectangle t,
                          Dimension d)
オーバーライド:
クラス BasicRadioButtonUI 内の paintFocus

JavaTM 2
Platform
Std. Ed. v1.4.0

バグの報告と機能のリクエスト
これ以外の API リファレンスおよび開発者用ドキュメントについては、 Java 2 SDK SE 開発者用ドキュメントを参照してください。 開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、 およびコード実例が含まれています。

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