|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.text.DefaultStyledDocument.ElementSpec
要素を構築するための仕様です。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
フィールドの概要 | |
static short |
ContentType
getType の値です。 |
static short |
EndTagType
getType の値です。 |
static short |
JoinFractureDirection
getDirection の値です。 |
static short |
JoinNextDirection
getDirection の値です。 |
static short |
JoinPreviousDirection
getDirection の値です。 |
static short |
OriginateDirection
getDirection の値です。 |
static short |
StartTagType
getType の値です。 |
コンストラクタの概要 | |
DefaultStyledDocument.ElementSpec(AttributeSet a,
short type)
マークアップがドキュメントに格納されないときに、マークアップに有用なコンストラクタです。 |
|
DefaultStyledDocument.ElementSpec(AttributeSet a,
short type,
char[] txt,
int offs,
int len)
コンテンツとマークアップをドキュメントにバッチ入力するためのスペックを外部に作成するのに使うコンストラクタです。 |
|
DefaultStyledDocument.ElementSpec(AttributeSet a,
short type,
int len)
データは追加済みだが長さの情報が必要なときに、ドキュメント内の解析に使うコンストラクタです。 |
メソッドの概要 | |
char[] |
getArray()
文字列の配列を取得します。 |
AttributeSet |
getAttributes()
要素の属性を取得します。 |
short |
getDirection()
方向を取得します。 |
int |
getLength()
長さを取得します。 |
int |
getOffset()
開始オフセットを取得します。 |
short |
getType()
要素のタイプを取得します。 |
void |
setDirection(short direction)
方向を設定します。 |
void |
setType(short type)
要素のタイプを設定します。 |
String |
toString()
要素を文字列に変換します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final short StartTagType
public static final short EndTagType
public static final short ContentType
public static final short JoinPreviousDirection
public static final short JoinNextDirection
public static final short OriginateDirection
public static final short JoinFractureDirection
コンストラクタの詳細 |
public DefaultStyledDocument.ElementSpec(AttributeSet a, short type)
a
- 要素の属性type
- 要素のタイプ (StartTagType、EndTagType、ContentType)public DefaultStyledDocument.ElementSpec(AttributeSet a, short type, int len)
a
- 要素の属性type
- 要素のタイプ (StartTagType、EndTagType、ContentType)len
- 長さ >= 0public DefaultStyledDocument.ElementSpec(AttributeSet a, short type, char[] txt, int offs, int len)
a
- 要素の属性type
- 要素のタイプ (StartTagType、EndTagType、ContentType)txt
- 要素のテキストoffs
- テキストに対するオフセット >= 0len
- テキストの長さ >= 0メソッドの詳細 |
public void setType(short type)
type
- 要素のタイプ (StartTagType、EndTagType、ContentType)public short getType()
public void setDirection(short direction)
direction
- 方向 (JoinPreviousDirection、JoinNextDirection)public short getDirection()
public AttributeSet getAttributes()
public char[] getArray()
public int getOffset()
public int getLength()
public String toString()
Object
内の toString
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.