public class SynthToolTipUI extends BasicToolTipUI implements PropertyChangeListener, SynthUI
JToolTip の Synth L&F UI の委譲を提供します。DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED| コンストラクタと説明 |
|---|
SynthToolTipUI() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static ComponentUI |
createUI(JComponent c)
指定されたコンポーネントの新しい UI オブジェクトを作成します。
|
SynthContext |
getContext(JComponent c)
指定されたコンポーネントのコンテキストを返します。
|
Dimension |
getPreferredSize(JComponent c)
指定されたコンポーネントの、Look & Feel に適した推奨サイズを返します。
|
protected void |
installDefaults(JComponent c) |
protected void |
installListeners(JComponent c) |
void |
paint(Graphics g, JComponent c)
Look & Feel に従って、指定されたコンポーネントをペイントします。
|
protected void |
paint(SynthContext context, Graphics g)
指定されたコンポーネントをペイントします。
|
void |
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
ボーダーをペイントします。
|
void |
propertyChange(PropertyChangeEvent e)
バウンドプロパティーの変更時に呼び出されます。
|
protected void |
uninstallDefaults(JComponent c) |
protected void |
uninstallListeners(JComponent c) |
void |
update(Graphics g, JComponent c)
この UI 委譲に、指定されたコンポーネントを再ペイントするよう通知します。
|
getMaximumSize, getMinimumSize, installUI, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorpublic static ComponentUI createUI(JComponent c)
c - UI オブジェクトを作成するコンポーネントprotected void installDefaults(JComponent c)
installDefaults、クラス: BasicToolTipUIprotected void uninstallDefaults(JComponent c)
uninstallDefaults、クラス: BasicToolTipUIprotected void installListeners(JComponent c)
installListeners、クラス: BasicToolTipUIprotected void uninstallListeners(JComponent c)
uninstallListeners、クラス: BasicToolTipUIpublic SynthContext getContext(JComponent c)
SynthUIgetContext、インタフェース: SynthUIc - SynthContext を要求するコンポーネント。public void update(Graphics g, JComponent c)
paint(SynthContext,Graphics) メソッドを呼び出します。
一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。すべての Look & Feel の描画コードを paint メソッドに入れるようにしてください。
update、クラス: ComponentUIg - ペイントに使用される Graphics オブジェクトc - ペイントされるコンポーネントpaint(SynthContext,Graphics)public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
SynthUIpaintBorder、インタフェース: SynthUIcontext - コンポーネントコンテキストg - ペイントされる Graphicsx - X 座標y - Y 座標w - ボーダーの幅h - ボーダーの高さpublic void paint(Graphics g, JComponent c)
このメソッドは、Synth Look & Feel で使用されません。ペイントは paint(SynthContext,Graphics) メソッドによって処理されます。
paint、クラス: BasicToolTipUIg - ペイントに使用される Graphics オブジェクトc - ペイントされるコンポーネントpaint(SynthContext,Graphics)protected void paint(SynthContext context, Graphics g)
context - ペイントされるコンポーネントのコンテキストg - ペイントに使用される Graphics オブジェクトupdate(Graphics,JComponent)public Dimension getPreferredSize(JComponent c)
ComponentUInull が返された場合、適切なサイズは代わりにコンポーネントのレイアウトマネージャーによって計算されます (これは、特定のレイアウトマネージャーをインストールしてあるコンポーネントの場合に推奨する方法です)。このメソッドのデフォルト実装は null を返します。getPreferredSize、クラス: BasicToolTipUIc - 適切なサイズが照会されるコンポーネント。この引数は通常無視されるが、UI オブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるJComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)public void propertyChange(PropertyChangeEvent e)
PropertyChangeListenerpropertyChange、インタフェース: PropertyChangeListenere - イベントソースと変更されたプロパティーを記述した PropertyChangeEvent オブジェクト。 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.