JavaTM Platform
Standard Ed. 6

javax.swing.plaf.metal
クラス MetalMenuBarUI

java.lang.Object
  上位を拡張 javax.swing.plaf.ComponentUI
      上位を拡張 javax.swing.plaf.MenuBarUI
          上位を拡張 javax.swing.plaf.basic.BasicMenuBarUI
              上位を拡張 javax.swing.plaf.metal.MetalMenuBarUI

public class MetalMenuBarUI
extends BasicMenuBarUI

MenuBarUI の Metal による実装です。このクラスは、JMenuBar の Metal Look & Feel を提供します。

導入されたバージョン:
1.5
関連項目:
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, getBaseline, getBaselineResizeBehavior, getPreferredSize, paint
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MetalMenuBarUI

public MetalMenuBarUI()
メソッドの詳細

createUI

public static ComponentUI createUI(JComponent x)
渡されたコンポーネントの ComponentUI 実装を作成します。

パラメータ:
x - ComponentUI 実装が作成される JComponent
戻り値:
x の ComponentUI 実装
例外:
NullPointerException - x が null の場合

installUI

public void installUI(JComponent c)
Metal Look & Feel に適した、指定されたコンポーネントを構成します。

オーバーライド:
クラス BasicMenuBarUI 内の installUI
パラメータ:
c - UI 委譲がインストールされているコンポーネント
例外:
NullPointerException - c が null の場合
関連項目:
ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

uninstallUI

public void uninstallUI(JComponent c)
installUI 時に、指定されたコンポーネントで構成された内容を取り消します。

オーバーライド:
クラス BasicMenuBarUI 内の uninstallUI
パラメータ:
c - UI 委譲がインストールされているコンポーネント
例外:
NullPointerException - c が null の場合
関連項目:
ComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()

update

public void update(Graphics g,
                   JComponent c)
コンポーネントのバックグラウンドをペイントする必要がある場合に paint を呼び出します。

オーバーライド:
クラス ComponentUI 内の update
パラメータ:
g - ペイントされる Graphics
c - ペイントされる JComponent
例外:
NullPointerException - g または c が null の場合
導入されたバージョン:
1.5
関連項目:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent), ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。