public class MetalMenuBarUI extends BasicMenuBarUI
MenuBarUIのMetal実装です。 このクラスは、JMenuBarのMetal Look & Feelを提供します。 MenuBarUIchangeListener, 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を呼び出します。 |
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, paintpublic static ComponentUI createUI(JComponent x)
ComponentUI実装を作成します。x - ComponentUI実装が作成されるJComponentxのComponentUI実装NullPointerException - xがnullである場合public void installUI(JComponent c)
installUI、クラスBasicMenuBarUIc - UI委譲がインストールされるコンポーネントNullPointerException - cがnullである場合。ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()public void uninstallUI(JComponent c)
installUI時に、指定されたコンポーネントに対して行われた構成を取り消します。uninstallUI、クラスBasicMenuBarUIc - UI委譲がインストールされるコンポーネントNullPointerException - cがnullである場合。ComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()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) バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。