- 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 Color
disabledTextColor
無効にされたテキストの色。protected Color
focusColor
フォーカスされたラジオ・ボタンの色です。protected Color
selectColor
選択したラジオ・ボタンの色です。-
クラス javax.swing.plaf.basic.BasicButtonUIから継承されたフィールド
defaultTextIconGap, defaultTextShiftOffset
-
クラス javax.swing.plaf.basic.BasicRadioButtonUIから継承されたフィールド
icon
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 MetalRadioButtonUI()
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 static ComponentUI
createUI(JComponent c)
MetalRadioButtonUI
のインスタンスを返します。protected Color
getDisabledTextColor()
無効にされたテキストの色を返します。protected Color
getFocusColor()
フォーカスされたJRadioButton
の色を返します。protected Color
getSelectColor()
選択したJRadioButton
の色を返します。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.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
- ラジオ・ボタンのサイズ
-
-