- 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
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 RTFEditorKit()
RTFEditorKitを構築します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 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で宣言されたメソッド
clone, createDefaultDocument, createInputAttributes, deinstall, getActions, getCharacterAttributeRun, getInputAttributes, getViewFactory, install
-
クラス javax.swing.text.DefaultEditorKitで宣言されたメソッド
createCaret
-
-
-
-
メソッドの詳細
-
getContentType
public String getContentType()
このキットがサポートするデータのMIMEタイプを返します。 このキットはtext/rtf
タイプをサポートします。- オーバーライド:
getContentType
、クラスDefaultEditorKit
- 戻り値:
- タイプ
-
read
public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException
このタイプのコンテンツ・ハンドラに適した形式であると予想されるコンテンツを、指定したストリームから挿入します。- オーバーライド:
read
、クラスDefaultEditorKit
- パラメータ:
in
- 読込み元のストリームdoc
- 挿入先。pos
- コンテンツを配置するドキュメント内の位置。- 例外:
IOException
- 入出力エラーが発生した場合BadLocationException
- posがドキュメント内の無効な位置を表す場合。
-
write
public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException
このタイプのコンテンツ・ハンドラに適した形式で、ドキュメントからストリームへコンテンツを書き込みます。- オーバーライド:
write
、クラスDefaultEditorKit
- パラメータ:
out
- 書込み先のストリームdoc
- 書込み元。pos
- コンテンツを取得するドキュメント内の位置。len
- 書き出す量。- 例外:
IOException
- 入出力エラーが発生した場合BadLocationException
- posがドキュメント内の無効な位置を表す場合。
-
read
public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException
指定されたストリームから内容を挿入します。内容はプレーン・テキストとして扱われます。- オーバーライド:
read
、クラスDefaultEditorKit
- パラメータ:
in
- 読込み元のストリームdoc
- 挿入先。pos
- コンテンツを配置するドキュメント内の位置。- 例外:
IOException
- 入出力エラーが発生した場合BadLocationException
- posがドキュメント内の無効な位置を表す場合。
-
write
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException
ドキュメントのコンテンツを、指定されたストリームにプレーン・テキストとして書き込みます。- オーバーライド:
write
、クラスDefaultEditorKit
- パラメータ:
out
- 書込み先のストリームdoc
- 書込み元。pos
- コンテンツを取得するドキュメント内の位置。len
- 書き出す量。- 例外:
IOException
- 入出力エラーが発生した場合BadLocationException
- posがドキュメント内の無効な位置を表す場合。
-
-