| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface AttributedCharacterIterator
テキストとそのテキストに関連する属性情報を、どちらも繰り返し処理できるようにします。
属性はキーと値のペアであり、キーで識別されます。1 つの文字に対して複数の属性キーを定義することはできません。
属性の値は不変です。つまり、クライアントやストレージによって変更できません。属性の値は常に参照渡しです。複製されることはありません。
次の場合、属性についてのランは、最大テキスト範囲です。
属性セットについてのランは、それぞれのメンバ属性について上記の条件が成立する最大テキスト範囲です。
返されるインデックスは、反復子の範囲に限定されます。
返される属性情報は、現在の文字を保持するランに限定されます。
属性キーは、AttributedCharacterIterator.Attribute およびそのサブクラス (java.awt.font.TextAttribute など) のインスタンスです。
AttributedCharacterIterator.Attribute, 
TextAttribute, 
AttributedString, 
Annotation| 入れ子のクラスの概要 | |
|---|---|
| static class | AttributedCharacterIterator.Attributeテキスト属性の識別に使用する属性キーを定義します。 | 
| フィールドの概要 | 
|---|
| インタフェース java.text.CharacterIterator から継承されたフィールド | 
|---|
| DONE | 
| メソッドの概要 | |
|---|---|
|  Set<AttributedCharacterIterator.Attribute> | getAllAttributeKeys()反復子のテキスト範囲で定義されたすべての属性のキーを返します。 | 
|  Object | getAttribute(AttributedCharacterIterator.Attribute attribute)現在の文字について指定された属性の値を返します。 | 
|  Map<AttributedCharacterIterator.Attribute,Object> | getAttributes()現在の文字に定義された属性を持つマップを返します。 | 
|  int | getRunLimit()現在の文字を保持するすべての属性について、ランの次に来る先頭文字のインデックスを返します。 | 
|  int | getRunLimit(AttributedCharacterIterator.Attribute attribute)現在の文字を保持する指定された属性について、ランの次に来る先頭文字のインデックスを返します。 | 
|  int | getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes)現在の文字を保持するいくつかの指定された属性について、ランの次に来る先頭文字のインデックスを返します。 | 
|  int | getRunStart()現在の文字を保持するすべての属性について、ランの先頭文字のインデックスを返します。 | 
|  int | getRunStart(AttributedCharacterIterator.Attribute attribute)現在の文字を保持する指定された属性について、ランの先頭文字のインデックスを返します。 | 
|  int | getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)現在の文字を保持するいくつかの指定された属性について、ランの先頭文字のインデックスを返します。 | 
| インタフェース java.text.CharacterIterator から継承されたメソッド | 
|---|
| clone, current, first, getBeginIndex, getEndIndex, getIndex, last, next, previous, setIndex | 
| メソッドの詳細 | 
|---|
int getRunStart()
int getRunStart(AttributedCharacterIterator.Attribute attribute)
int getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)
int getRunLimit()
int getRunLimit(AttributedCharacterIterator.Attribute attribute)
int getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes)
Map<AttributedCharacterIterator.Attribute,Object> getAttributes()
Object getAttribute(AttributedCharacterIterator.Attribute attribute)
attribute - 値が要求されている属性のキーSet<AttributedCharacterIterator.Attribute> getAllAttributeKeys()
| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。