JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.text.rtf
クラス RTFEditorKit

java.lang.Object
  |
  +--javax.swing.text.EditorKit
        |
        +--javax.swing.text.DefaultEditorKit
              |
              +--javax.swing.text.StyledEditorKit
                    |
                    +--javax.swing.text.rtf.RTFEditorKit
すべての実装インタフェース:
Cloneable, Serializable

public class RTFEditorKit
extends StyledEditorKit

RTF 編集機能のデフォルトの実装です。RTF サポートは Swing チームにより作成されたものではありません。将来、RTF サポートに対応できるようにしていく予定です。

関連項目:
直列化された形式

クラス javax.swing.text.StyledEditorKit から継承した内部クラス
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineAction
 
クラス javax.swing.text.DefaultEditorKit から継承した内部クラス
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction
 
クラス javax.swing.text.DefaultEditorKit から継承したフィールド
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deletePrevCharAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction
 
コンストラクタの概要
RTFEditorKit()
          RTFEditorKit を構築します。
 
メソッドの概要
 Object clone()
          エディタキットのコピーを作成します。
 String getContentType()
          このキットがサポートする MIME タイプのデータを返します。
 void read(InputStream in, Document doc, int pos)
          このタイプのコンテンツハンドラに適合した書式であることが要求されるストリームに、コンテンツを挿入します。
 void read(Reader in, Document doc, int pos)
          指定されたストリームからコンテンツを挿入します。
 void write(OutputStream out, Document doc, int pos, int len)
          このタイプのコンテンツハンドラに適合した書式であることが要求されるストリームに、ドキュメントのコンテンツを適した形式でストリームに挿入します。
 void write(Writer out, Document doc, int pos, int len)
          ドキュメントのコンテンツをプレーンテキストとしてストリームに書き込みます。
 
クラス javax.swing.text.StyledEditorKit から継承したメソッド
createDefaultDocument, createInputAttributes, deinstall, getActions, getCharacterAttributeRun, getInputAttributes, getViewFactory, install
 
クラス javax.swing.text.DefaultEditorKit から継承したメソッド
createCaret
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RTFEditorKit

public RTFEditorKit()
RTFEditorKit を構築します。
メソッドの詳細

clone

public Object clone()
エディタキットのコピーを作成します。ある実装がほかの実装のプロトタイプとなるため、それらの実装を迅速に作成できます。
オーバーライド:
クラス StyledEditorKit 内の clone
戻り値:
コピー

getContentType

public String getContentType()
このキットがサポートする MIME タイプのデータを返します。このキットは text/rtf タイプをサポートします。
オーバーライド:
クラス DefaultEditorKit 内の getContentType
戻り値:
タイプ

read

public void read(InputStream in,
                 Document doc,
                 int pos)
          throws IOException,
                 BadLocationException
このタイプのコンテンツハンドラに適合した書式であることが要求されるストリームに、コンテンツを挿入します。
オーバーライド:
クラス DefaultEditorKit 内の read
パラメータ:
in - 読み込み元のストリーム
doc - 挿入先
pos - コンテンツを配置するドキュメント内の位置
例外:
IOException - 入出力エラーが発生した場合
BadLocationException - pos がドキュメント内の無効な位置を示す場合

write

public void write(OutputStream out,
                  Document doc,
                  int pos,
                  int len)
           throws IOException,
                  BadLocationException
このタイプのコンテンツハンドラに適合した書式であることが要求されるストリームに、ドキュメントのコンテンツを適した形式でストリームに挿入します。
オーバーライド:
クラス DefaultEditorKit 内の write
パラメータ:
out - 書き込み先のストリーム
doc - 書き込み元
pos - コンテンツを取得するドキュメント内の位置
len - 書き出す量
例外:
IOException - 入出力エラーが発生した場合
BadLocationException - pos がドキュメント内の無効な位置を示す場合

read

public void read(Reader in,
                 Document doc,
                 int pos)
          throws IOException,
                 BadLocationException
指定されたストリームからコンテンツを挿入します。プレーンテキストとして扱われます。
オーバーライド:
クラス DefaultEditorKit 内の read
パラメータ:
in - 読み込み元のストリーム
doc - 挿入先
pos - コンテンツを配置するドキュメント内の位置
例外:
IOException - 入出力エラーが発生した場合
BadLocationException - pos がドキュメント内の無効な位置を示す場合

write

public void write(Writer out,
                  Document doc,
                  int pos,
                  int len)
           throws IOException,
                  BadLocationException
ドキュメントのコンテンツをプレーンテキストとしてストリームに書き込みます。
オーバーライド:
クラス DefaultEditorKit 内の write
パラメータ:
out - 書き込み先のストリーム
doc - 書き込み元
pos - コンテンツを取得するドキュメント内の位置
len - 書き出す量
例外:
IOException - 入出力エラーが発生した場合
BadLocationException - pos がドキュメント内の無効な位置を示す場合

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.