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.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 |
メソッドの概要 |
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)
ドキュメントのコンテンツをプレーンテキストとしてストリームに書き込みます。 |
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
バグや機能要求の報告
新しい 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.