public class MetalToggleButtonUI extends BasicToggleButtonUI
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。1.4以降、すべてのJavaBeans(tm)用の長期間の格納サポートが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, 2014, Oracle and/or its affiliates. All rights reserved.