public class SynthEditorPaneUI extends BasicEditorPaneUI implements SynthUI
JEditorPane の Synth L&F UI の委譲を提供します。BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighterDEFAULT, 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, uninstallUIcreate, 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, viewToModelcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorpublic static ComponentUI createUI(JComponent c)
c - UI オブジェクトを作成するコンポーネントprotected void installDefaults()
BasicTextUIprotected void uninstallDefaults()
BasicTextUInull に明示的にオーバーライドされていないコンポーネントプロパティーを設定します。現在の値が UIResource でなければ、プロパティーはオーバーライドされたと判断されます。protected void propertyChange(PropertyChangeEvent evt)
propertyChange、クラス: BasicEditorPaneUIevt - プロパティー変更イベントpublic SynthContext getContext(JComponent c)
SynthUIgetContext、インタフェース: SynthUIc - SynthContext を要求するコンポーネント。public void update(Graphics g, JComponent c)
paint(SynthContext,Graphics) メソッドを呼び出します。
一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。すべての Look & Feel の描画コードを paint メソッドに入れるようにしてください。
update、クラス: BasicTextUIg - ペイントに使用される Graphics オブジェクトc - ペイントされるコンポーネントpaint(SynthContext,Graphics)protected void paint(SynthContext context, Graphics g)
context - ペイントされるコンポーネントのコンテキストg - ペイントに使用される Graphics オブジェクトupdate(Graphics,JComponent)protected void paintBackground(Graphics g)
BasicTextUIpaintBackground、クラス: BasicTextUIg - グラフィックスコンテキストpublic void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
SynthUIpaintBorder、インタフェース: SynthUIcontext - コンポーネントコンテキストg - ペイントされる Graphicsx - X 座標y - Y 座標w - ボーダーの幅h - ボーダーの高さ バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.