クラスRTFEditorKit
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チームにより作成されたものではありません。 将来、サポートに対応できるようにしていく予定です。
-
ネストされたクラスのサマリー
クラスStyledEditorKitで宣言されたネストされたクラス/インタフェース
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineAction修飾子と型クラス説明static class段落の配置方法を設定するアクションです。static class太字属性を切り替えるアクションです。static class関連するJEditorPaneのフォント・ファミリを設定するアクションです。static class関連するJEditorPaneのフォント・サイズを設定するアクションです。static classフォアグラウンド・カラーを設定するアクションです。static classイタリック属性を切り替えるアクションです。static classインストールされたStyledEditorKit (またはサブクラス)によってJEditorPaneでトリガーされると見なされるアクションです。static class下線属性を切り替えるアクションです。クラスDefaultEditorKitで宣言されたネストされたクラス/インタフェース
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction修飾子と型クラス説明static classビープ音を作成します。static class選択した領域をコピーして、その内容をシステム・クリップボードに格納します。static class選択した領域を切り取り、その内容をシステム・クリップボードに格納します。static classキー入力イベントを受け取ったとき、キーマップ・エントリがない場合にデフォルトで実行されるアクションです。static classドキュメントに行または段落の区切りを配置します。static class関連するドキュメントに内容を格納します。static classドキュメントにタブ文字を配置します。static classシステム・クリップボードの内容を、選択された範囲、あるいはキャレットの前(選択範囲がない場合)に貼り付けます。 -
フィールドのサマリー
クラスで宣言されたフィールド DefaultEditorKit
backwardAction, beepAction, beginAction, beginLineAction, beginLineUpAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, endLineDownAction, 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修飾子と型フィールド説明static final Stringキャレットを論理的に1ポジション逆方向に移動する処理の名前です。static final Stringビープ音を作成する処理の名前です。static final Stringキャレットをドキュメントの先頭に移動するActionの名前です。static final Stringキャレットを行の先頭に移動するActionの名前です。static final Stringキャレットを現在の行の先頭に移動するためのActionの名前、またはキャレットがすでに行の先頭にある場合は前の行の先頭に移動します。static final Stringキャレットを段落の先頭に移動するActionの名前です。static final Stringキャレットを単語の先頭に移動するActionの名前です。static final String選択された範囲をコピーして、システムのクリップボードに置く処理の名前です。static final String選択された範囲を切り取り、システムのクリップボードに置く処理の名前です。static final Stringキー入力イベントを受け取ったとき、キーマップ・エントリがない場合にデフォルトで実行されるアクションの名前です。static final String現在のキャレットの直後にある1文字を削除する処理の名前です。static final String選択範囲の先頭に続く単語を削除する処理の名前です。static final String現在のキャレットの直前にある1文字を削除する処理の名前です。static final String選択範囲の先頭の前の単語を削除する処理の名前です。static final Stringキャレットを論理的に1ポジション下に移動する処理の名前です。static final Stringキャレットをドキュメントの末尾に移動するActionの名前です。static final Stringキャレットを行の末尾に移動するActionの名前です。static final Stringキャレットがすでに行の末尾にある場合は、キャレットを現在の行の末尾に移動するためのActionの名前。static final Stringドキュメントの読込み時にCRLFを検出した場合に、この名前のプロパティが追加されます。プロパティの値は、「\r\n」になります。static final Stringキャレットを段落の末尾に移動するActionの名前です。static final Stringキャレットを単語の末尾に移動する処理の名前です。static final Stringキャレットを論理的に1ポジション順方向に移動する処理の名前です。static final Stringドキュメントに行/段落の区切りを置く処理の名前です。static final String関連するドキュメントに内容を置く処理の名前です。static final Stringドキュメントにタブ文字を置く処理の名前です。static final Stringキャレットを次の単語の先頭に移動するActionの名前です。static final String垂直下方にページを切り替える処理の名前です。static final String垂直上方にページを切り替える処理の名前です。static final Stringシステムのクリップボードの内容を選択された範囲、またはキャレットの前(選択範囲がない場合)に貼り付ける処理の名前です。static final Stringキャレットを前の単語の先頭に移動するActionの名前です。static final Stringエディタを読込み専用モードに設定する処理の名前です。static final Stringドキュメント全体を選択する処理の名前です。static final Stringキャレットを論理的に1ポジション逆方向に移動して、選択範囲を延ばす処理の名前です。static final Stringキャレットをドキュメントの先頭に移動するActionの名前です。static final Stringキャレットを行の先頭に移動して、選択範囲を広げるActionの名前です。static final Stringキャレットを段落の先頭に移動して、選択範囲を広げるActionの名前です。static final Stringキャレットを単語の先頭に移動して、選択範囲を広げるActionの名前です。static final Stringキャレットを論理的に1ポジション下方に移動して、選択範囲を延ばす処理の名前です。static final Stringキャレットをドキュメントの末尾に移動する処理の名前です。static final Stringキャレットを行の末尾に移動して、選択範囲を広げるActionの名前です。static final Stringキャレットを段落の末尾に移動して、選択範囲を広げるActionの名前です。static final Stringキャレットを単語の末尾に移動して、選択範囲を延ばす処理の名前です。static final Stringキャレットを論理的に1ポジション順方向に移動して、選択範囲を延ばす処理の名前です。static final String選択範囲を次の単語の先頭に移動して、選択範囲を広げるActionの名前です。static final String選択範囲を前の単語の先頭に移動して、選択範囲を広げるActionの名前です。static final Stringキャレットを論理的に1ポジション上方に移動して、選択範囲を延ばす処理の名前です。static final Stringキャレットが置かれている行を選択する処理の名前です。static final Stringキャレットが置かれている段落を選択する処理の名前です。static final Stringキャレットが置かれている単語を選択する処理の名前です。static final Stringキャレットを論理的に1ポジション上に移動する処理の名前です。static final Stringエディタを書込み可能モードに設定する処理の名前です。 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明このキットがサポートするデータのMIMEタイプを返します。voidread(InputStream in, Document doc, int pos) このタイプのコンテンツ・ハンドラに適した形式であると予想されるコンテンツを、指定したストリームから挿入します。void指定されたストリームから内容を挿入します。内容はプレーン・テキストとして扱われます。voidwrite(OutputStream out, Document doc, int pos, int len) このタイプのコンテンツ・ハンドラに適した形式で、ドキュメントからストリームへコンテンツを書き込みます。voidドキュメントのコンテンツを、指定されたストリームにプレーン・テキストとして書き込みます。クラスで宣言されたメソッド StyledEditorKit
clone, createDefaultDocument, createInputAttributes, deinstall, getActions, getCharacterAttributeRun, getInputAttributes, getViewFactory, install修飾子と型メソッド説明clone()編集キットのコピーを作成します。この型のエディタに適している未初期化テキスト・ストレージ・モデルを作成します。protected voidcreateInputAttributes(Element element, MutableAttributeSet set) elementのAttributeSet内のキーと値のペアをsetにコピーします。voidキットがJEditorPaneから削除されているときに呼び出されます。Action[]エディタのコマンド・リストを取得します。キャレットに対応する現在の文字属性を表す要素を取得します。ペインの入力属性を返します。このキットが作成した任意のモデルのビューを作成するのに適したファクトリを取得します。voidキットがJEditorPaneにインストールされているときに呼び出されます。クラスで宣言されたメソッド DefaultEditorKit
createCaretクラスオブジェクトで宣言されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
RTFEditorKit
public RTFEditorKit()RTFEditorKitを構築します。
-
-
メソッドの詳細
-
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がドキュメント内の無効な位置を表す場合。
-