Java プラットフォーム 1.2

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

public class RTFEditorKit
extends StyledEditorKit

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
このタイプのコンテンツハンドラに適合した書式であることが期待されるストリームに、コンテンツを挿入します。
パラメータ:
in - 読み込み元のストリーム
doc - 挿入先
pos - コンテンツを配置するドキュメント内の位置
例外:
IOException - エラーが発生した場合
BadLocationException - pos がドキュメント内の不正な位置を示す場合
オーバーライド:
クラス DefaultEditorKit 内の read

write

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

read

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

write

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

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.