Java プラットフォーム 1.2

javax.swing.plaf.basic
クラス BasicTextPaneUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.TextUI
              |
              +--javax.swing.plaf.basic.BasicTextUI
                    |
                    +--javax.swing.plaf.basic.BasicEditorPaneUI
                          |
                          +--javax.swing.plaf.basic.BasicTextPaneUI

public class BasicTextPaneUI
extends BasicEditorPaneUI

書式付きテキストエディタの Look & Feel を提供します。

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。


クラス javax.swing.plaf.basic.BasicTextUI から継承した内部クラス
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
 
コンストラクタの概要
BasicTextPaneUI()
          新しい BasicTextPaneUI を作成します。
 
メソッドの概要
static ComponentUI createUI(JComponent c)
          JTextPane の UI を作成します。
 EditorKit getEditorKit(JTextComponent tc)
          UI の EditorKit を取得します。
protected  String getPropertyPrefix()
          UIManager を使ってプロパティを参照するためのキーとして使われる名前を取得します。
protected  void propertyChange(PropertyChangeEvent evt)
          関連付けられている JTextComponent のバウンドプロパティが変更されたときに呼び出されます。
 
クラス javax.swing.plaf.basic.BasicTextUI から継承したメソッド
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, viewToModel, viewToModel
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BasicTextPaneUI

public BasicTextPaneUI()
新しい BasicTextPaneUI を作成します。
メソッドの詳細

createUI

public static ComponentUI createUI(JComponent c)
JTextPane の UI を作成します。
パラメータ:
c - JTextPane オブジェクト
戻り値:
UI

getPropertyPrefix

protected String getPropertyPrefix()
UIManager を使ってプロパティを参照するためのキーとして使われる名前を取得します。これは、すべての標準テキストプロパティの接頭辞として使われます。
戻り値:
名前 ("TextPane")
オーバーライド:
クラス BasicEditorPaneUI 内の getPropertyPrefix

getEditorKit

public EditorKit getEditorKit(JTextComponent tc)
UI の EditorKit を取得します。これは、関連付けられている JEditorPane で現在設定されているものです。
パラメータ:
tc - この UI がインストールされるテキストコンポーネント
戻り値:
エディタ機能
オーバーライド:
クラス BasicEditorPaneUI 内の getEditorKit
関連項目:
TextUI.getEditorKit(javax.swing.text.JTextComponent)

propertyChange

protected void propertyChange(PropertyChangeEvent evt)
関連付けられている JTextComponent のバウンドプロパティが変更されたときに呼び出されます。これは、UI が JTextComponent のサブクラスのバウンドプロパティをどのように表示するかを反映するために UI の実装により変更されるフックです。フォントまたはフォアグラウンドが変更された場合、Document が StyledDocument のときは、適切なプロパティがデフォルトのスタイルで設定されます。
パラメータ:
evt - プロパティ変更イベント
オーバーライド:
クラス BasicTextUI 内の propertyChange

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.