JavaTM 2 Platform
Std. Ed. v1.3

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
すべての実装インタフェース:
ViewFactory

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.BasicEditorPaneUI から継承したメソッド
installKeyboardActions
 
クラス javax.swing.plaf.basic.BasicTextUI から継承したメソッド
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getVisibleEditorRect, installDefaults, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount
 
クラス 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 を使ってプロパティを参照するためのキーとして使われる名前を返します。これは、すべての標準テキストプロパティの接頭辞として使われます。
オーバーライド:
クラス BasicEditorPaneUI 内の getPropertyPrefix
戻り値:
名前 (TextPane)

getEditorKit

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

propertyChange

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

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.