public class MetalButtonUI extends BasicButtonUI
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートがjava.beans
パッケージに追加されています。 XMLEncoder
を参照してください。
修飾子と型 | フィールド | 説明 |
---|---|---|
protected Color |
disabledTextColor |
|
protected Color |
focusColor |
|
protected Color |
selectColor |
defaultTextIconGap, defaultTextShiftOffset
コンストラクタ | 説明 |
---|---|
MetalButtonUI() |
修飾子と型 | メソッド | 説明 |
---|---|---|
protected BasicButtonListener |
createButtonListener(AbstractButton b) |
|
static ComponentUI |
createUI(JComponent c) |
|
protected Color |
getDisabledTextColor() |
|
protected Color |
getFocusColor() |
|
protected Color |
getSelectColor() |
|
void |
installDefaults(AbstractButton b) |
|
protected void |
paintButtonPressed(Graphics g, AbstractButton b) |
|
protected void |
paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) |
|
protected void |
paintText(Graphics g, JComponent c, Rectangle textRect, String text) |
Java 2プラットフォーム1.4以降では、このメソッドを使用したり、オーバーライドしたりしないようにしてください。
|
void |
uninstallDefaults(AbstractButton b) |
|
void |
update(Graphics g, JComponent c) |
必要に応じて、コンポーネントのバックグラウンドをペイントしてから、
paint を呼び出します。 |
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount
protected Color focusColor
protected Color selectColor
protected Color disabledTextColor
public static ComponentUI createUI(JComponent c)
public void installDefaults(AbstractButton b)
installDefaults
、クラスBasicButtonUI
public void uninstallDefaults(AbstractButton b)
uninstallDefaults
、クラスBasicButtonUI
protected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener
、クラスBasicButtonUI
protected Color getSelectColor()
protected Color getDisabledTextColor()
protected Color getFocusColor()
public void update(Graphics g, JComponent c)
paint
を呼び出します。update
、クラスComponentUI
g
- ペイントされるGraphicsc
- ペイントされるJComponentNullPointerException
- g
またはc
がnullの場合ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
, ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
protected void paintButtonPressed(Graphics g, AbstractButton b)
paintButtonPressed
、クラスBasicButtonUI
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
paintFocus
、クラスBasicButtonUI
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
BasicButtonUI
paintText
、クラスBasicButtonUI
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。