public class SynthDesktopPaneUI extends BasicDesktopPaneUI implements PropertyChangeListener, SynthUI
JDesktopPane
のSynth L&F UI委譲を提供します。BasicDesktopPaneUI.CloseAction, BasicDesktopPaneUI.MaximizeAction, BasicDesktopPaneUI.MinimizeAction, BasicDesktopPaneUI.NavigateAction, BasicDesktopPaneUI.OpenAction
closeKey, desktop, desktopManager, maximizeKey, minimizeKey, navigateKey, navigateKey2
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
コンストラクタ | 説明 |
---|---|
SynthDesktopPaneUI() |
修飾子と型 | メソッド | 説明 |
---|---|---|
static ComponentUI |
createUI(JComponent c) |
指定されたコンポーネントの新しいUIオブジェクトを作成します。
|
SynthContext |
getContext(JComponent c) |
指定されたコンポーネントのコンテキストを返します。
|
protected void |
installDefaults() |
|
protected void |
installDesktopManager() |
|
protected void |
installListeners() |
createPropertyChangeListener から返されたPropertyChangeListener をJDesktopPane 上にインストールします。 |
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 evt) |
バウンド・プロパティの変更時に呼び出されます。
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallDesktopManager() |
|
protected void |
uninstallListeners() |
createPropertyChangeListener から返されたPropertyChangeListener をJDesktopPane からアンインストールします。 |
void |
update(Graphics g, JComponent c) |
このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。
|
createPropertyChangeListener, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installUI, registerKeyboardActions, uninstallKeyboardActions, uninstallUI, unregisterKeyboardActions
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public static ComponentUI createUI(JComponent c)
c
- UIオブジェクトを作成するコンポーネントprotected void installListeners()
createPropertyChangeListener
から返されたPropertyChangeListener
をJDesktopPane
上にインストールします。protected void installDefaults()
installDefaults
、クラスBasicDesktopPaneUI
protected void uninstallListeners()
createPropertyChangeListener
から返されたPropertyChangeListener
をJDesktopPane
からアンインストールします。protected void uninstallDefaults()
uninstallDefaults
、クラスBasicDesktopPaneUI
protected void installDesktopManager()
installDesktopManager
、クラスBasicDesktopPaneUI
protected void uninstallDesktopManager()
uninstallDesktopManager
、クラスBasicDesktopPaneUI
public SynthContext getContext(JComponent c)
getContext
、インタフェースSynthUI
c
- SynthContextを要求するコンポーネント。public void update(Graphics g, JComponent c)
paint(SynthContext,Graphics)
メソッドを呼び出します。
一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。 すべてのLook & Feelの描画コードをpaint
メソッドに入れるようにしてください。
update
、クラスComponentUI
g
- ペイントに使用されるGraphics
オブジェクトc
- ペイントされるコンポーネントpaint(SynthContext,Graphics)
public void paint(Graphics g, JComponent c)
このメソッドは、Synth Look & Feelで使用されません。 ペイントはpaint(SynthContext,Graphics)
メソッドによって処理されます。
paint
、クラスBasicDesktopPaneUI
g
- ペイントに使用されるGraphics
オブジェクトc
- ペイントされるコンポーネントpaint(SynthContext,Graphics)
protected void paint(SynthContext context, Graphics g)
context
- ペイントされるコンポーネントのコンテキストg
- ペイントに使用されるGraphics
オブジェクトupdate(Graphics,JComponent)
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
paintBorder
、インタフェースSynthUI
context
- コンポーネント・コンテキストg
- ペイントされるGraphics
x
- X座標y
- Y座標w
- ボーダーの幅h
- ボーダーの高さpublic void propertyChange(PropertyChangeEvent evt)
propertyChange
、インタフェースPropertyChangeListener
evt
- イベント・ソースと変更されたプロパティを記述するPropertyChangeEventオブジェクト。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。