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, 2013, Oracle and/or its affiliates. All rights reserved.