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