public class SynthEditorPaneUI extends BasicEditorPaneUI implements SynthUI
JEditorPane
のSynth L&F UIの委譲を提供します。BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
コンストラクタ | 説明 |
---|---|
SynthEditorPaneUI() |
修飾子と型 | メソッド | 説明 |
---|---|---|
static ComponentUI |
createUI(JComponent c) |
指定されたコンポーネントの新しいUIオブジェクトを作成します。
|
SynthContext |
getContext(JComponent c) |
指定されたコンポーネントのコンテキストを返します。
|
protected void |
installDefaults() |
フォント、フォアグラウンド、バックグラウンド、キャレットの色、選択の色、選択されたテキストの色、無効になったテキストの色、ボーダーの色などのコンポーネント・プロパティを初期化します。
|
protected void |
paint(SynthContext context, Graphics g) |
指定されたコンポーネントをペイントします。
|
protected void |
paintBackground(Graphics g) |
ビューのバックグラウンドをペイントします。
|
void |
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) |
ボーダーをペイントします。
|
protected void |
propertyChange(PropertyChangeEvent evt) |
このメソッドは、関連付けられたJTextComponentでバウンド・プロパティが変更されたときに呼び出されます。
|
protected void |
uninstallDefaults() |
null に明示的にオーバーライドされていないコンポーネント・プロパティを設定します。 |
void |
update(Graphics g, JComponent c) |
このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。
|
getEditorKit, getPropertyPrefix, installUI, uninstallUI
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallKeyboardActions, uninstallListeners, viewToModel, viewToModel
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public static ComponentUI createUI(JComponent c)
c
- UIオブジェクトを作成するコンポーネントprotected void installDefaults()
protected void uninstallDefaults()
null
に明示的にオーバーライドされていないコンポーネント・プロパティを設定します。 現在の値がUIResource
でなければ、プロパティはオーバーライドされたと判断されます。 protected void propertyChange(PropertyChangeEvent evt)
propertyChange
、クラスBasicEditorPaneUI
evt
- プロパティ変更イベントpublic SynthContext getContext(JComponent c)
getContext
、インタフェースSynthUI
c
- SynthContextを要求するコンポーネント。public void update(Graphics g, JComponent c)
paint(SynthContext,Graphics)
メソッドを呼び出します。
一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。 すべてのLook & Feelの描画コードをpaint
メソッドに入れるようにしてください。
update
、クラスBasicTextUI
g
- ペイントに使用されるGraphics
オブジェクトc
- ペイントされるコンポーネントpaint(SynthContext,Graphics)
protected void paint(SynthContext context, Graphics g)
context
- ペイントされるコンポーネントのコンテキストg
- ペイントに使用されるGraphics
オブジェクトupdate(Graphics,JComponent)
protected void paintBackground(Graphics g)
paintBackground
、クラスBasicTextUI
g
- グラフィックス・コンテキスト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
- ボーダーの高さ バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。