|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.MenuBarUI
javax.swing.plaf.basic.BasicMenuBarUI
javax.swing.plaf.metal.MetalMenuBarUI
public class MetalMenuBarUI
MenuBarUI の Metal による実装です。このクラスは、JMenuBar の Metal Look & Feel を提供します。
MenuBarUI| フィールドの概要 |
|---|
| クラス javax.swing.plaf.basic.BasicMenuBarUI から継承されたフィールド |
|---|
changeListener, containerListener, menuBar |
| コンストラクタの概要 | |
|---|---|
MetalMenuBarUI()
|
|
| メソッドの概要 | |
|---|---|
static ComponentUI |
createUI(JComponent x)
渡されたコンポーネントの ComponentUI 実装を作成します。 |
void |
installUI(JComponent c)
Metal Look & Feel に適した、指定されたコンポーネントを構成します。 |
void |
uninstallUI(JComponent c)
installUI 時に、指定されたコンポーネントに対して行った構成を取り消します。 |
void |
update(Graphics g,
JComponent c)
コンポーネントのバックグラウンドをペイントする必要がある場合に paint を呼び出します。 |
| クラス javax.swing.plaf.basic.BasicMenuBarUI から継承されたメソッド |
|---|
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
| クラス javax.swing.plaf.ComponentUI から継承されたメソッド |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize, paint |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public MetalMenuBarUI()
| メソッドの詳細 |
|---|
public static ComponentUI createUI(JComponent x)
ComponentUI 実装を作成します。
x - ComponentUI 実装が作成される JComponent
x の ComponentUI 実装
NullPointerException - x が null の場合public void installUI(JComponent c)
BasicMenuBarUI 内の installUIc - UI 委譲がインストールされているコンポーネント
NullPointerException - c が null の場合ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent c)
installUI 時に、指定されたコンポーネントに対して行った構成を取り消します。
BasicMenuBarUI 内の uninstallUIc - UI 委譲がインストールされているコンポーネント
NullPointerException - c が null の場合ComponentUI.installUI(javax.swing.JComponent),
JComponent.updateUI()
public void update(Graphics g,
JComponent c)
paint を呼び出します。
ComponentUI 内の updateg - ペイントされる Graphicsc - ペイントされる JComponent
NullPointerException - g または c が null の場合ComponentUI.update(java.awt.Graphics, javax.swing.JComponent),
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。