クラスMetalToolBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ToolBarUI
javax.swing.plaf.basic.BasicToolBarUI
javax.swing.plaf.metal.MetalToolBarUI
- すべての実装されたインタフェース:
SwingConstants
public class MetalToolBarUI extends BasicToolBarUI
ToolBarUIのMetal Look & Feel実装です。 この実装は、「結合された」ビュー/コントローラです。
-
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明protected class使用されなくなりました。protected classMetalToolBarUIのDockingListener。protected class使用されなくなりました。クラスBasicToolBarUIで宣言されたネストされたクラス/インタフェース
BasicToolBarUI.DockingListener, BasicToolBarUI.DragWindow, BasicToolBarUI.FrameListener, BasicToolBarUI.PropertyListener, BasicToolBarUI.ToolBarContListener, BasicToolBarUI.ToolBarFocusListener修飾子と型クラス説明classこのクラスは、「protected」内部クラスとして扱うようにしてください。protected classJToolBarをドラッグしている間に表示されるウィンドウ。protected classクラスはウィンドウ・イベントをリスニングします。protected classクラスは、プロパティ変更イベントをリスニングします。protected classクラスはコンポーネント・イベントをリスニングします。protected classクラスはフォーカス・イベントをリスニングします。 -
フィールドのサマリー
フィールド修飾子と型フィールド説明protected ContainerListenerこのprotectedフィールドは実装固有のものです。protected PropertyChangeListenerこのprotectedフィールドは実装固有のものです。クラスで宣言されたフィールド BasicToolBarUI
constraintBeforeFloating, dockingBorderColor, dockingColor, dockingListener, downKey, dragWindow, floatingBorderColor, floatingColor, focusedCompIndex, leftKey, propertyListener, rightKey, toolBar, toolBarContListener, toolBarFocusListener, upKey修飾子と型フィールド説明protected Stringフローティング前のレイアウト。protected Colorドッキング・ボーダーの色。protected Colorドッキング・ボーダーのバックグラウンド色。protected MouseInputListenerMouseInputListenerのインスタンス。protected KeyStroke非推奨。Java 2プラットフォームv1.3以降。protected BasicToolBarUI.DragWindowDragWindowのインスタンス。protected Colorドッキングされていないボーダーの色。protected Colorドッキングされていないボーダーのバックグラウンド色。protected intフォーカスされたコンポーネントのインデックス。protected KeyStroke非推奨。Java 2プラットフォームv1.3以降。protected PropertyChangeListenerPropertyChangeListenerのインスタンス。protected KeyStroke非推奨。Java 2プラットフォームv1.3以降。protected JToolBarJToolBarのインスタンス。protected ContainerListenerContainerListenerのインスタンス。protected FocusListenerFocusListenerのインスタンス。protected KeyStroke非推奨。Java 2プラットフォームv1.3以降。インタフェースで宣言されたフィールド SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST修飾子と型フィールド説明static final intボックスの下端を指定するために使用するボックス配置定数です。static final int領域内の中央位置です。static final int東(右)の方角です。static final int水平方向です。static final int左から右に記述する言語および右から左に記述する言語で使用するテキストのリーディング・エッジを指定します。static final intボックスの左端を指定するために使用するボックス配置定数です。static final intシーケンス内の次の方向を指定します。static final int北(上)の方角です。static final int北東(右上)の方角です。static final int北西(左上)の方角です。static final intシーケンス内の前の方向を指定します。static final intボックスの右端を指定するために使用するボックス配置定数です。static final int南(下)の方角です。static final int南東(右下)の方角です。static final int南西(左下)の方角です。static final intボックスの上端を指定するために使用するボックス配置定数です。static final int左から右に記述する言語および右から左に記述する言語で使用するテキストのトレーリング・エッジを指定します。static final int垂直方向です。static final int西(左)の方角です。 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明protected ContainerListenerJToolBarに追加するコンテナ・リスナーを作成します。protected PropertyChangeListenerJtoolBarに追加するプロパティ変更リスナーを作成します。static ComponentUIMetalToolBarUIのインスタンスを構築します。protected voidDragWindow内のマウス・カーソルのオフセットを設定します。voidupdate(Graphics g, JComponent c) 必要に応じて、コンポーネントのバックグラウンドをペイントしてから、paintを呼び出します。クラスで宣言されたメソッド BasicToolBarUI
canDock, createDockingListener, createDragWindow, createFloatingFrame, createFloatingWindow, createFrameListener, createNonRolloverBorder, createPropertyListener, createRolloverBorder, createToolBarContListener, createToolBarFocusListener, dragTo, floatAt, getDockingColor, getFloatingColor, getNonRolloverBorder, getRolloverBorder, installComponents, installDefaults, installKeyboardActions, installListeners, installNonRolloverBorders, installNormalBorders, installRolloverBorders, isFloating, isRolloverBorders, navigateFocusedComp, paintDragWindow, setBorderToNonRollover, setBorderToNormal, setBorderToRollover, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners修飾子と型メソッド説明booleanJToolBarが指定された位置にドッキングできる場合は、trueを返します。protected MouseInputListenerMouseInputListenerのインスタンスを返します。protected BasicToolBarUI.DragWindowcreateDragWindow(JToolBar toolbar) DragWindowのインスタンスを返します。protected JFramecreateFloatingFrame(JToolBar toolbar) 削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。代わりにBasicToolBarUI.createFloatingWindow(JToolBar)を使用することをお勧めしますprotected RootPaneContainercreateFloatingWindow(JToolBar toolbar) ドラッグによってコンテナから出たあと、ツールバーを含むウィンドウを作成します。protected WindowListenerWindowListenerの新しいインスタンスを構築します。protected Borderツールバー・コンポーネントのための非ロールオーバー・ボーダーを作成します。protected PropertyChangeListenerPropertyChangeListenerのインスタンスを返します。protected Borderツールバー・コンポーネントのためのロールオーバー・ボーダーを作成します。protected ContainerListenerContainerListenerのインスタンスを返します。protected FocusListenerFocusListenerのインスタンスを返します。protected voidこのメソッドは、JToolBarのドラッグ中にDragWindowをドラッグするために使用されます。protected voidこのメソッドは、ドラッグの最後に呼び出され、フレームを元の場所またはフローティング・フレームに配置します。ドッキング領域にあるときに表示される色を取得します。フローティング領域にあるときに表示される色を取得します。protected Borderボタンの非ロールオーバー・ボーダーを返します。protected Borderボタンのロールオーバー・ボーダーを返します。protected voidコンポーネントを登録します。protected voidデフォルトのプロパティをインストールします。protected voidキーボード操作を登録します。protected voidリスナーを登録します。protected voidJComponentのすべての子コンポーネントに非ロールオーバー・ボーダーをインストールします。protected voidJComponentのすべての子コンポーネントに通常のボーダーをインストールします。protected voidJComponentのすべての子コンポーネントにロールオーバー・ボーダーをインストールします。booleanJToolBarが浮動している場合は、trueを返します。booleanロールオーバー・ボタン・ボーダーが使用可能かどうかを判定するためのフラグを返します。protected voidnavigateFocusedComp(int direction) フォーカスされたコンポーネントをナビゲートします。protected voidドラッグに使用されたウィンドウの内容をペイントします。protected voidBasicToolBarUI.createNonRolloverBorder()メソッドが作成した非ロールオーバー・ボーダーを持つように、コンポーネントのボーダーを設定します。protected voidコンポーネントのボーダーが通常のボーダーを持つように設定します。protected voidBasicToolBarUI.createRolloverBorder()メソッドが作成したロールオーバー・ボーダーを持つように、コンポーネントのボーダーを設定します。voidドッキング領域にあるときに表示される色を設定します。voidsetFloating(boolean b, Point p) 浮動プロパティを設定します。voidフローティング領域にあるときに表示される色を設定します。voidsetFloatingLocation(int x, int y) 浮動小数点ロケーションを設定します。voidsetOrientation(int orientation) ツールバーの方向を設定します。voidsetRolloverBorders(boolean rollover) ツールバー上でロールオーバー・ボーダーを使用可能にするためのフラグを設定し、フラグの状態に応じて適切なボーダーもインストールします。protected voidコンポーネントの登録を解除します。protected void既定のプロパティをアンインストールします。protected voidキーボード操作の登録を解除します。protected voidリスナーを登録解除します。クラスで宣言されたメソッド ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI修飾子と型メソッド説明booleancontains(JComponent c, int x, int y) 指定された x,yの位置が、指定されたコンポーネントのLook & Feel定義の形状内にある場合は、trueを返します。getAccessibleChild(JComponent c, int i) オブジェクトのi番目のAccessibleの子を返します。intオブジェクト内のアクセシビリティ対応の子の数を返します。intgetBaseline(JComponent c, int width, int height) ベースラインを返します。サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。指定されたコンポーネントの、Look & Feelに適した最大サイズを返します。指定されたコンポーネントの、Look & Feelに適した最小サイズを返します。指定されたコンポーネントの、Look & Feelに適した推奨サイズを返します。void指定されたコンポーネントをLook & Feelに応じて適切に構成します。voidpaint(Graphics g, JComponent c) 指定されたコンポーネントをLook & Feelに合わせてペイントします。voidinstallUI時に、指定されたコンポーネントに対して行われた構成を取り消します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
フィールド詳細
-
contListener
protected ContainerListener contListenerこのprotectedフィールドは実装固有のものです。 直接のアクセスやオーバーライドはしないでください。 代わりにcreateメソッドを使用します。- 関連項目:
-
rolloverListener
protected PropertyChangeListener rolloverListenerこのprotectedフィールドは実装固有のものです。 直接のアクセスやオーバーライドはしないでください。 代わりにcreateメソッドを使用します。- 関連項目:
-
-
コンストラクタの詳細
-
MetalToolBarUI
public MetalToolBarUI()MetalToolBarUIを構築します。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) MetalToolBarUIのインスタンスを構築します。- パラメータ:
c- コンポーネント- 戻り値:
MetalToolBarUIのインスタンス
-
createContainerListener
protected ContainerListener createContainerListener()JToolBarに追加するコンテナ・リスナーを作成します。 このメソッドがnullを返す場合、これはツールバーに追加されません。- 戻り値:
ContainerListenerのインスタンス、またはnull
-
createRolloverListener
protected PropertyChangeListener createRolloverListener()JtoolBarに追加するプロパティ変更リスナーを作成します。 このメソッドがnullを返す場合、これはツールバーに追加されません。- 戻り値:
PropertyChangeListenerのインスタンス、またはnull
-
setDragOffset
-
update
public void update(Graphics g, JComponent c) 必要に応じて、コンポーネントのバックグラウンドをペイントしてから、paintを呼び出します。- オーバーライド:
update、クラスComponentUI- パラメータ:
g- ペイントされるGraphicsc- ペイントされるJComponent- スロー:
NullPointerException-gまたはcがnullの場合- 導入されたバージョン:
- 1.5
- 関連項目:
-