- 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
-
- 直系の既知のサブクラス:
BasicCheckBoxUI
,MetalRadioButtonUI
public class BasicRadioButtonUI extends BasicToggleButtonUI
BasicRadioButtonUIのRadioButtonUI実装です。
-
-
フィールドのサマリー
-
クラス javax.swing.plaf.basic.BasicButtonUIで宣言されたフィールド
defaultTextIconGap, defaultTextShiftOffset
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 BasicRadioButtonUI()
-
メソッドのサマリー
修飾子と型 メソッド 説明 static ComponentUI
createUI(JComponent b)
BasicRadioButtonUI
のインスタンスを返します。Icon
getDefaultIcon()
デフォルトのアイコンを返します。Dimension
getPreferredSize(JComponent c)
ラジオ・ボタンの推奨サイズです。void
paint(Graphics g, JComponent c)
ラジオ・ボタンをペイントします。protected void
paintFocus(Graphics g, Rectangle textRect, Dimension size)
フォーカスされたラジオ・ボタンをペイントします。-
クラス javax.swing.plaf.basic.BasicToggleButtonUIで宣言されたメソッド
getTextShiftOffset, paintIcon
-
クラス javax.swing.plaf.basic.BasicButtonUIで宣言されたメソッド
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getPropertyPrefix, installDefaults, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
-
クラス javax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, installUI, uninstallUI, update
-
-
-
-
フィールドの詳細
-
icon
protected Icon icon
アイコン。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent b)
BasicRadioButtonUI
のインスタンスを返します。- パラメータ:
b
- コンポーネント- 戻り値:
BasicRadioButtonUI
のインスタンス
-
getDefaultIcon
public Icon getDefaultIcon()
デフォルトのアイコンを返します。- 戻り値:
- デフォルトのアイコン
-
paint
public void paint(Graphics g, JComponent c)
ラジオ・ボタンをペイントします。- オーバーライド:
paint
、クラス:ComponentUI
- パラメータ:
g
- ペイント対象のGraphics
コンテキストc
- ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがある- 関連項目:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
-
paintFocus
protected void paintFocus(Graphics g, Rectangle textRect, Dimension size)
フォーカスされたラジオ・ボタンをペイントします。- パラメータ:
g
-Graphics
のインスタンスtextRect
- バインドsize
- ラジオ・ボタンのサイズ
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
ラジオ・ボタンの推奨サイズです。- オーバーライド:
getPreferredSize
、クラス:ComponentUI
- パラメータ:
c
- 適切なサイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがある- 戻り値:
- Look&Feelに適した指定されたコンポーネントの優先サイズを含む
Dimension
オブジェクト - 関連項目:
JComponent.getPreferredSize()
,LayoutManager.preferredLayoutSize(java.awt.Container)
-
-