クラスBasicRadioButtonUI
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 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明static ComponentUIBasicRadioButtonUIのインスタンスを返します。デフォルトのアイコンを返します。ラジオ・ボタンの推奨サイズです。voidpaint(Graphics g, JComponent c) ラジオ・ボタンをペイントします。protected voidpaintFocus(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アイコン。
-
-
コンストラクタの詳細
-
BasicRadioButtonUI
public BasicRadioButtonUI()BasicRadioButtonUIを構築します。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent b) BasicRadioButtonUIのインスタンスを返します。- パラメータ:
b- コンポーネント- 戻り値:
BasicRadioButtonUIのインスタンス
-
getDefaultIcon
-
paint
public void paint(Graphics g, JComponent c) ラジオ・ボタンをペイントします。- オーバーライド:
paint、クラスComponentUI- パラメータ:
g- ペイント対象のGraphicsコンテキストc- ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがある- 関連項目:
-
paintFocus
-
getPreferredSize
public Dimension getPreferredSize(JComponent c) ラジオ・ボタンの推奨サイズです。- オーバーライド:
getPreferredSize、クラスComponentUI- パラメータ:
c- 適切なサイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがある- 戻り値:
- ルック・アンド・フィールに適した特定のコンポーネントの優先サイズを含む
Dimensionオブジェクト - 関連項目:
-