public class BasicRadioButtonUI extends BasicToggleButtonUI
修飾子と型 | フィールド | 説明 |
---|---|---|
protected Icon |
icon |
アイコン。
|
defaultTextIconGap, defaultTextShiftOffset
コンストラクタ | 説明 |
---|---|
BasicRadioButtonUI() |
修飾子と型 | メソッド | 説明 |
---|---|---|
static ComponentUI |
createUI(JComponent b) |
BasicRadioButtonUI のインスタンスを返します。 |
Icon |
getDefaultIcon() |
デフォルトのアイコンを返します。
|
Dimension |
getPreferredSize(JComponent c) |
ラジオ・ボタンの推奨サイズです。
|
protected String |
getPropertyPrefix() |
|
protected void |
installDefaults(AbstractButton b) |
|
void |
paint(Graphics g, JComponent c) |
ラジオ・ボタンをペイントします。
|
protected void |
paintFocus(Graphics g, Rectangle textRect, Dimension size) |
フォーカスされたラジオ・ボタンをペイントします。
|
protected void |
uninstallDefaults(AbstractButton b) |
getTextShiftOffset, paintIcon
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected Icon icon
public static ComponentUI createUI(JComponent b)
BasicRadioButtonUI
のインスタンスを返します。b
- コンポーネントBasicRadioButtonUI
のインスタンスprotected String getPropertyPrefix()
getPropertyPrefix
、クラスBasicToggleButtonUI
protected void installDefaults(AbstractButton b)
installDefaults
、クラスBasicButtonUI
protected void uninstallDefaults(AbstractButton b)
uninstallDefaults
、クラスBasicButtonUI
public Icon getDefaultIcon()
public void paint(Graphics g, JComponent c)
paint
、クラスBasicToggleButtonUI
g
- ペイント対象のGraphics
コンテキストc
- ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
protected void paintFocus(Graphics g, Rectangle textRect, Dimension size)
g
- Graphics
のインスタンスtextRect
- バインドsize
- ラジオ・ボタンのサイズpublic Dimension getPreferredSize(JComponent c)
getPreferredSize
、クラスBasicButtonUI
c
- 推奨サイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるJComponent.getPreferredSize()
, LayoutManager.preferredLayoutSize(java.awt.Container)
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。