java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
javax.swing.text.rtf.RTFEditorKit
- すべての実装されたインタフェース:
- Serializable,- Cloneable
public class RTFEditorKit extends StyledEditorKit
RTF編集機能のデフォルトの実装です。 RTFサポートはSwingチームにより作成されたものではありません。 将来、サポートに対応できるようにしていく予定です。 
- 
ネストされたクラスのサマリークラス 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, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, 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
- 
コンストラクタのサマリーコンストラクタ
- 
メソッドのサマリー修飾子と型メソッド説明このキットがサポートするデータのMIMEタイプを返します。voidread(InputStream in, Document doc, int pos)このタイプのコンテンツ・ハンドラに適した形式であると予想されるコンテンツを、指定したストリームから挿入します。void指定されたストリームから内容を挿入します。内容はプレーン・テキストとして扱われます。voidwrite(OutputStream out, Document doc, int pos, int len)このタイプのコンテンツ・ハンドラに適した形式で、ドキュメントからストリームへコンテンツを書き込みます。voidドキュメントのコンテンツを、指定されたストリームにプレーン・テキストとして書き込みます。クラス javax.swing.text.StyledEditorKitで宣言されたメソッドclone, createDefaultDocument, createInputAttributes, deinstall, getActions, getCharacterAttributeRun, getInputAttributes, getViewFactory, installクラス javax.swing.text.DefaultEditorKitで宣言されたメソッドcreateCaret
- 
コンストラクタの詳細- 
RTFEditorKitpublic RTFEditorKit()RTFEditorKitを構築します。
 
- 
- 
メソッドの詳細- 
getContentTypepublic String getContentType()このキットがサポートするデータのMIMEタイプを返します。 このキットはtext/rtfタイプをサポートします。- オーバーライド:
- getContentType、クラス:- DefaultEditorKit
- 戻り値:
- タイプ
 
- 
readpublic void read(InputStream in, Document doc, int pos) throws IOException, BadLocationExceptionこのタイプのコンテンツ・ハンドラに適した形式であると予想されるコンテンツを、指定したストリームから挿入します。- オーバーライド:
- read、クラス:- DefaultEditorKit
- パラメータ:
- in- 読込み元のストリーム
- doc- 挿入先。
- pos- コンテンツを配置するドキュメント内の位置。
- 例外:
- IOException- 入出力エラーが発生した場合
- BadLocationException- posがドキュメント内の無効な位置を表す場合。
 
- 
writepublic void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationExceptionこのタイプのコンテンツ・ハンドラに適した形式で、ドキュメントからストリームへコンテンツを書き込みます。- オーバーライド:
- write、クラス:- DefaultEditorKit
- パラメータ:
- out- 書込み先のストリーム
- doc- 書込み元。
- pos- コンテンツを取得するドキュメント内の位置。
- len- 書き出す量。
- 例外:
- IOException- 入出力エラーが発生した場合
- BadLocationException- posがドキュメント内の無効な位置を表す場合。
 
- 
readpublic void read(Reader in, Document doc, int pos) throws IOException, BadLocationException指定されたストリームから内容を挿入します。内容はプレーン・テキストとして扱われます。- オーバーライド:
- read、クラス:- DefaultEditorKit
- パラメータ:
- in- 読込み元のストリーム
- doc- 挿入先。
- pos- コンテンツを配置するドキュメント内の位置。
- 例外:
- IOException- 入出力エラーが発生した場合
- BadLocationException- posがドキュメント内の無効な位置を表す場合。
 
- 
writepublic void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationExceptionドキュメントのコンテンツを、指定されたストリームにプレーン・テキストとして書き込みます。- オーバーライド:
- write、クラス:- DefaultEditorKit
- パラメータ:
- out- 書込み先のストリーム
- doc- 書込み元。
- pos- コンテンツを取得するドキュメント内の位置。
- len- 書き出す量。
- 例外:
- IOException- 入出力エラーが発生した場合
- BadLocationException- posがドキュメント内の無効な位置を表す場合。
 
 
-