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()
protected void uninstallDefaults()
nullに明示的にオーバーライドされていないコンポーネント・プロパティを設定します。現在の値がUIResourceでなければ、プロパティはオーバーライドされたと判断されます。protected void propertyChange(PropertyChangeEvent evt)
propertyChange、クラス: BasicEditorPaneUIevt - プロパティ変更イベントpublic SynthContext getContext(JComponent c)
getContext、インタフェース: 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)
paintBackground、クラス: BasicTextUIg - グラフィックス・コンテキストpublic void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
paintBorder、インタフェース: SynthUIcontext - コンポーネント・コンテキストg - ペイントされるGraphicsx - X座標y - Y座標w - ボーダーの幅h - ボーダーの高さ バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.