|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--javax.swing.text.AbstractWriter
AbstractWriter は、属性を含む要素ツリーを実際に書き出す抽象クラスです。1 行あたりに書き出す文字数のデフォルトは 80 です。ただし、この値はサブクラスで設定することができます。
| フィールドの概要 | |
protected static char |
NEWLINE
|
| コンストラクタの概要 | |
protected |
AbstractWriter(Writer w,
Document doc)
新しい AbstractWriter を作成します。 |
protected |
AbstractWriter(Writer w,
Document doc,
int pos,
int len)
新しい AbstractWriter を作成します。 |
protected |
AbstractWriter(Writer w,
Element root)
新しい AbstractWriter を作成します。 |
protected |
AbstractWriter(Writer w,
Element root,
int pos,
int len)
新しい AbstractWriter を作成します。 |
| メソッドの概要 | |
protected void |
decrIndent()
インデントレベルをデクリメントします。 |
protected Document |
getDocument()
ドキュメントを取得します。 |
protected ElementIterator |
getElementIterator()
ElementIterator を取得します。 |
protected String |
getText(Element elem)
要素に関連付けられているテキストを返します。 |
protected void |
incrIndent()
インデントレベルをインクリメントします。 |
protected void |
indent()
インデントを行います。 |
protected boolean |
inRange(Element next)
このメソッドは、現在の要素が指定された範囲内にあるかどうかを判定します。 |
protected void |
setIndentSpace(int space)
インデントにマッピングするスペースの数をサブクラスから指定できるようにします。 |
protected void |
setLineLength(int l)
1 行あたりに書き込むことのできる文字数をサブクラスから設定できるようにします。 |
protected void |
text(Element elem)
テキストを書き出します。 |
protected abstract void |
write()
この abstract メソッドは、サブクラスによって実装される必要があります。 |
protected void |
write(char ch)
文字を書き出します。 |
protected void |
write(String str)
文字列を書き出します。 |
protected void |
writeAttributes(AttributeSet attr)
属性セットを "<名前>=<値>" のペアとして書き出します。 |
| クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| フィールドの詳細 |
protected static final char NEWLINE
| コンストラクタの詳細 |
protected AbstractWriter(Writer w,
Document doc)
w - ライターdoc - ドキュメント
protected AbstractWriter(Writer w,
Document doc,
int pos,
int len)
w - ライターdoc - ドキュメントpos - 取得対象コンテンツのドキュメント内での位置len - 書き出す量
protected AbstractWriter(Writer w,
Element root)
w - ライターroot - 要素
protected AbstractWriter(Writer w,
Element root,
int pos,
int len)
w - ライターroot - 要素pos - 取得対象コンテンツのドキュメント内での位置len - 書き出す量| メソッドの詳細 |
protected ElementIterator getElementIterator()
protected Document getDocument()
protected boolean inRange(Element next)
next - 要素
protected abstract void write()
throws IOException,
BadLocationException
protected String getText(Element elem)
throws BadLocationException
elem - 要素
protected void text(Element elem)
throws BadLocationException,
IOException
elem - 要素protected void setLineLength(int l)
l - 行の長さの最大値protected void setIndentSpace(int space)
space - インデントにマッピングするスペースの数を表す int 値protected void incrIndent()
protected void decrIndent()
protected void indent()
throws IOException
protected void write(char ch)
throws IOException
ch - 文字
protected void write(String str)
throws IOException
str - 文字列
protected void writeAttributes(AttributeSet attr)
throws IOException
attr - 属性セット
|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||