- 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に適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートが
java.beansパッケージに追加されています。XMLEncoderを参照してください。
-
-
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 protected ColordisabledTextColor無効にされたテキストの色。protected ColorfocusColorフォーカスされたラジオ・ボタンの色です。protected ColorselectColor選択したラジオ・ボタンの色です。-
クラス javax.swing.plaf.basic.BasicButtonUIから継承されたフィールド
defaultTextIconGap, defaultTextShiftOffset
-
クラス javax.swing.plaf.basic.BasicRadioButtonUIから継承されたフィールド
icon
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 MetalRadioButtonUI()
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 static ComponentUIcreateUI(JComponent c)MetalRadioButtonUIのインスタンスを返します。protected ColorgetDisabledTextColor()無効にされたテキストの色を返します。protected ColorgetFocusColor()フォーカスされたJRadioButtonの色を返します。protected ColorgetSelectColor()選択したJRadioButtonの色を返します。voidinstallDefaults(AbstractButton b)デフォルトのプロパティをインストールします。voidpaint(Graphics g, JComponent c)ラジオ・ボタンをペイントします。protected voidpaintFocus(Graphics g, Rectangle t, Dimension d)フォーカスされたラジオ・ボタンをペイントします。protected voiduninstallDefaults(AbstractButton b)既定のプロパティをアンインストールします。-
クラス javax.swing.plaf.basic.BasicButtonUIから継承されたメソッド
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUI
-
クラス javax.swing.plaf.basic.BasicRadioButtonUIから継承されたメソッド
getDefaultIcon, getPreferredSize, getPropertyPrefix, installListeners, uninstallListeners
-
クラス javax.swing.plaf.basic.BasicToggleButtonUIから継承されたメソッド
getTextShiftOffset, paintIcon
-
クラス javax.swing.plaf.ComponentUIから継承されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
-
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c)
MetalRadioButtonUIのインスタンスを返します。- パラメータ:
c- コンポーネント- 戻り値:
MetalRadioButtonUIのインスタンス
-
installDefaults
public void installDefaults(AbstractButton b)
クラスからコピーされた説明:BasicButtonUIデフォルトのプロパティをインストールします。- オーバーライド:
installDefaults、クラス:BasicRadioButtonUI- パラメータ:
b- 抽象的なボタン
-
uninstallDefaults
protected void uninstallDefaults(AbstractButton b)
クラスからコピーされた説明:BasicButtonUI既定のプロパティをアンインストールします。- オーバーライド:
uninstallDefaults、クラス:BasicRadioButtonUI- パラメータ:
b- 抽象的なボタン
-
getSelectColor
protected Color getSelectColor()
選択したJRadioButtonの色を返します。- 戻り値:
- 選択された
JRadioButtonの色
-
getDisabledTextColor
protected Color getDisabledTextColor()
無効にされたテキストの色を返します。- 戻り値:
- 無効にされたテキストの色
-
getFocusColor
protected Color getFocusColor()
フォーカスされたJRadioButtonの色を返します。- 戻り値:
- フォーカスされた
JRadioButtonの色
-
paint
public void paint(Graphics g, JComponent c)
クラスからコピーされた説明:BasicRadioButtonUIラジオ・ボタンをペイントします。- オーバーライド:
paint、クラス:BasicRadioButtonUI- パラメータ:
g- ペイント対象のGraphicsコンテキストc- ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがある- 関連項目:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
-
paintFocus
protected void paintFocus(Graphics g, Rectangle t, Dimension d)
クラスからコピーされた説明:BasicRadioButtonUIフォーカスされたラジオ・ボタンをペイントします。- オーバーライド:
paintFocus、クラス:BasicRadioButtonUI- パラメータ:
g-Graphicsのインスタンスt- バインドd- ラジオ・ボタンのサイズ
-
-