JavaTM Platform
Standard Ed. 6

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 Version 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)
           
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, getBaseline, getBaselineResizeBehavior, 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)

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 Platform
Standard Ed. 6

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

Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。