java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.metal.MetalButtonUI
public class MetalButtonUI extends BasicButtonUI
MetalButtonUI実装です。
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4では、すべてのJavaBeansの長期ストレージのサポートがjava.beansパッケージに追加されました。 XMLEncoderを参照してください。
-
フィールドのサマリー
フィールド修飾子と型フィールド説明protected Color無効な色の色です。protected Colorフォーカスされたボタンの色です。protected Color選択されたボタンの色です。クラス javax.swing.plaf.basic.BasicButtonUIで宣言されたフィールド
defaultTextIconGap, defaultTextShiftOffset -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明static ComponentUIcreateUI(JComponent c)MetalButtonUIのインスタンスを返します。protected Color無効なテキストの色を返します。protected Colorフォーカスされたボタンの色を返します。protected Color選択されたボタンの色を返します。voidデフォルトのプロパティをインストールします。voidデフォルト・プロパティをアンインストールします。voidupdate(Graphics g, JComponent c)必要に応じて、コンポーネントのバックグラウンドをペイントしてから、paintを呼び出します。クラス javax.swing.plaf.basic.BasicButtonUIで宣言されたメソッド
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListenersクラス javax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI
-
フィールド詳細
-
コンストラクタの詳細
-
MetalButtonUI
public MetalButtonUI()MetalButtonUIを構築します。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c)MetalButtonUIのインスタンスを返します。- パラメータ:
c- コンポーネント- 戻り値:
MetalButtonUIのインスタンス
-
installDefaults
public void installDefaults(AbstractButton b)クラスからコピーされた説明:BasicButtonUIデフォルトのプロパティをインストールします。- オーバーライド:
installDefaults、クラス:BasicButtonUI- パラメータ:
b- 抽象的なボタン
-
uninstallDefaults
public void uninstallDefaults(AbstractButton b)クラスからコピーされた説明:BasicButtonUIデフォルト・プロパティをアンインストールします。- オーバーライド:
uninstallDefaults、クラス:BasicButtonUI- パラメータ:
b- 抽象的なボタン
-
getSelectColor
protected Color getSelectColor()選択されたボタンの色を返します。- 戻り値:
- 選択されたボタンの色
-
getDisabledTextColor
protected Color getDisabledTextColor()無効なテキストの色を返します。- 戻り値:
- 無効にされたテキストの色
-
getFocusColor
protected Color getFocusColor()フォーカスされたボタンの色を返します。- 戻り値:
- フォーカスされたボタンの色
-
update
public void update(Graphics g, JComponent c)必要に応じて、コンポーネントのバックグラウンドをペイントしてから、paintを呼び出します。- オーバーライド:
update、クラス:ComponentUI- パラメータ:
g- ペイントされるGraphicsc- ペイントされるJComponent- 例外:
NullPointerException-gまたはcがnullの場合- 導入されたバージョン:
- 1.5
- 関連項目:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent),ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
-