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, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCountprotected Color focusColor
protected Color selectColor
protected Color disabledTextColor
public static ComponentUI createUI(JComponent c)
public void installDefaults(AbstractButton b)
installDefaults、クラスBasicButtonUIpublic void uninstallDefaults(AbstractButton b)
uninstallDefaults、クラスBasicButtonUIprotected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener、クラスBasicButtonUIprotected Color getSelectColor()
protected Color getDisabledTextColor()
protected Color getFocusColor()
public void update(Graphics g, JComponent c)
paintを呼び出します。update、クラスComponentUIg - ペイントされる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、クラスBasicButtonUIprotected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
paintFocus、クラスBasicButtonUIprotected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
BasicButtonUIpaintText、クラスBasicButtonUI バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。