public class SynthToolBarUI extends BasicToolBarUI implements PropertyChangeListener, SynthUI
JToolBar
のSynth L&F UI委譲を提供します。BasicToolBarUI.DockingListener, BasicToolBarUI.DragWindow, BasicToolBarUI.FrameListener, BasicToolBarUI.PropertyListener, BasicToolBarUI.ToolBarContListener, BasicToolBarUI.ToolBarFocusListener
constraintBeforeFloating, dockingBorderColor, dockingColor, dockingListener, downKey, dragWindow, floatingBorderColor, floatingColor, focusedCompIndex, leftKey, propertyListener, rightKey, toolBar, toolBarContListener, toolBarFocusListener, upKey
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
コンストラクタ | 説明 |
---|---|
SynthToolBarUI() |
修飾子と型 | メソッド | 説明 |
---|---|---|
protected LayoutManager |
createLayout() |
ツールバーで使用する
LayoutManager を作成します。 |
static ComponentUI |
createUI(JComponent c) |
指定されたコンポーネントの新しいUIオブジェクトを作成します。
|
SynthContext |
getContext(JComponent c) |
指定されたコンポーネントのコンテキストを返します。
|
protected void |
installComponents() |
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
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) |
ボーダーをペイントします。
|
protected void |
paintContent(SynthContext context, Graphics g, Rectangle bounds) |
ツールバーの内容をペイントします。
|
protected void |
paintDragWindow(Graphics g) |
ドラッグに使用されたウィンドウの内容をペイントします。
|
void |
propertyChange(PropertyChangeEvent e) |
バウンド・プロパティの変更時に呼び出されます。
|
protected void |
setBorderToNonRollover(Component c) |
JToolBar クラスのrollover プロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。 |
protected void |
setBorderToNormal(Component c) |
JToolBar クラスのrollover プロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。 |
protected void |
setBorderToRollover(Component c) |
JToolBar クラスのrollover プロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。 |
protected void |
uninstallComponents() |
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallListeners() |
|
void |
update(Graphics g, JComponent c) |
このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。
|
canDock, createDockingListener, createDragWindow, createFloatingFrame, createFloatingWindow, createFrameListener, createNonRolloverBorder, createPropertyListener, createRolloverBorder, createToolBarContListener, createToolBarFocusListener, dragTo, floatAt, getDockingColor, getFloatingColor, getNonRolloverBorder, getRolloverBorder, installKeyboardActions, installNonRolloverBorders, installNormalBorders, installRolloverBorders, installUI, isFloating, isRolloverBorders, navigateFocusedComp, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallKeyboardActions, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize
public static ComponentUI createUI(JComponent c)
c
- UIオブジェクトを作成するコンポーネントprotected void installDefaults()
installDefaults
、クラスBasicToolBarUI
protected void installListeners()
installListeners
、クラスBasicToolBarUI
protected void uninstallListeners()
uninstallListeners
、クラスBasicToolBarUI
protected void uninstallDefaults()
uninstallDefaults
、クラスBasicToolBarUI
protected void installComponents()
installComponents
、クラスBasicToolBarUI
protected void uninstallComponents()
uninstallComponents
、クラスBasicToolBarUI
protected LayoutManager createLayout()
LayoutManager
を作成します。LayoutManager
インスタンス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
、クラスComponentUI
g
- ペイントに使用されるGraphics
オブジェクトc
- ペイントされるコンポーネントpaint(SynthContext,Graphics)
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
- ボーダーの高さprotected void setBorderToNonRollover(Component c)
JToolBar
クラスのrollover
プロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。setBorderToNonRollover
、クラスBasicToolBarUI
c
- 非ロールオーバー・ボーダーをインストールするコンポーネントBasicToolBarUI.createNonRolloverBorder()
protected void setBorderToRollover(Component c)
JToolBar
クラスのrollover
プロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。setBorderToRollover
、クラスBasicToolBarUI
c
- ロールオーバー・ボーダーをインストールするコンポーネントBasicToolBarUI.createRolloverBorder()
protected void setBorderToNormal(Component c)
JToolBar
クラスのrollover
プロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。setBorderToNormal
、クラスBasicToolBarUI
c
- 通常のボーダーを再インストールするコンポーネントBasicToolBarUI.createNonRolloverBorder()
protected void paint(SynthContext context, Graphics g)
context
- ペイントされるコンポーネントのコンテキストg
- ペイントに使用されるGraphics
オブジェクトupdate(Graphics,JComponent)
protected void paintContent(SynthContext context, Graphics g, Rectangle bounds)
context
- ペイントされるコンポーネントのコンテキストg
- ペイントに使用されるGraphics
オブジェクトbounds
- ツールバーのバウンディング・ボックスprotected void paintDragWindow(Graphics g)
paintDragWindow
、クラスBasicToolBarUI
g
- ペイント対象のGraphics。public void propertyChange(PropertyChangeEvent e)
propertyChange
、インタフェースPropertyChangeListener
e
- イベント・ソースと変更されたプロパティを記述したPropertyChangeEventオブジェクト。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。