|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--java.text.AttributedString
텍스트와 그 텍스트에 관련하는 속성 정보를 보관 유지합니다. 텍스트를 읽은 유저가 AttributedCharacterIterator 인터페이스를 사용해 속성 첨부 텍스트에 액세스 하는 것이 필요한 경우에, 이것을 실제의 데이터 스토리지로서 사용할 수 있습니다.
AttributedCharacterIterator
,
Annotation
생성자의 개요 | |
AttributedString (AttributedCharacterIterator text)
AttributedCharacterIterator 에 의해 표현되는 지정된 속성 첨부 텍스트를 가지는 AttributedString 의 인스턴스를 생성합니다. |
|
AttributedString (AttributedCharacterIterator text,
int beginIndex,
int endIndex)
AttributedCharacterIterator 에 의해 표현되는 지정된 속성 첨부 텍스트의 부분 범위를 가지는 AttributedString 의 인스턴스를 생성합니다. |
|
AttributedString (AttributedCharacterIterator text,
int beginIndex,
int endIndex,
AttributedCharacterIterator.Attribute [] attributes)
AttributedCharacterIterator 에 의해 표현되는 지정된 속성 첨부 텍스트의 부분 범위를 가지는 AttributedString 의 인스턴스를 생성합니다. |
|
AttributedString (String text)
지정된 텍스트를 가지는 AttributedString 의 인스턴스를 생성합니다. |
|
AttributedString (String text,
Map attributes)
지정된 텍스트와 속성을 가지는 AttributedString 의 인스턴스를 생성합니다. |
메소드의 개요 | |
void |
addAttribute (AttributedCharacterIterator.Attribute attribute,
Object value)
속성을 캐릭터 라인 전체에 추가합니다. |
void |
addAttribute (AttributedCharacterIterator.Attribute attribute,
Object value,
int beginIndex,
int endIndex)
속성을 캐릭터 라인의 부분 범위에 추가합니다. |
void |
addAttributes (Map attributes,
int beginIndex,
int endIndex)
속성 세트를 캐릭터 라인의 부분 범위에 추가합니다. |
AttributedCharacterIterator |
getIterator ()
캐릭터 라인의 내용 전체에의 액세스를 제공하는 AttributedCharacterIterator 의 인스턴스를 생성합니다. |
AttributedCharacterIterator |
getIterator (AttributedCharacterIterator.Attribute [] attributes)
캐릭터 라인의 선택된 내용에의 액세스를 제공하는 AttributedCharacterIterator 의 인스턴스를 생성합니다. |
AttributedCharacterIterator |
getIterator (AttributedCharacterIterator.Attribute [] attributes,
int beginIndex,
int endIndex)
캐릭터 라인의 선택된 내용에의 액세스를 제공하는 AttributedCharacterIterator 의 인스턴스를 생성합니다. |
클래스 java.lang. Object 에서 상속받은 메소드 |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자의 상세 |
public AttributedString(String text)
text
- 속성 첨부 캐릭터 라인의 텍스트public AttributedString(String text, Map attributes)
text
- 속성 첨부 캐릭터 라인의 텍스트attributes
- 캐릭터 라인 전체에 적용되는 속성
IllegalArgumentException
- 텍스트장이 0 으로, 속성 파라미터가 하늘의 Map 가 아닌 경우 (속성은 길이 0 의 범위에는 적용할 수 없다)public AttributedString(AttributedCharacterIterator text)
text
- 속성 첨부 캐릭터 라인의 텍스트public AttributedString(AttributedCharacterIterator text, int beginIndex, int endIndex)
text
- 속성 첨부 캐릭터 라인의 텍스트beginIndex
- 범위의 선두 캐릭터의 인덱스endIndex
- 범위의 최종 캐릭터의 다음에 오는 캐릭터의 인덱스
IllegalArgumentException
- beginIndex 와 endIndex 에 의해 지정되는 부분 범위가 텍스트 범위외에 있는 경우Annotation
public AttributedString(AttributedCharacterIterator text, int beginIndex, int endIndex, AttributedCharacterIterator.Attribute [] attributes)
text
- 속성 첨부 캐릭터 라인의 텍스트beginIndex
- 범위의 선두 캐릭터의 인덱스endIndex
- 범위의 최종 캐릭터의 다음에 오는 캐릭터의 인덱스attributes
- 텍스트로부터 추출되는 속성. null 를 지정하면(자), 이용 가능한 모든 속성이 사용된다
IllegalArgumentException
- beginIndex 와 endIndex 에 의해 지정되는 부분 범위가 텍스트 범위외에 있는 경우Annotation
메소드의 상세 |
public void addAttribute(AttributedCharacterIterator.Attribute attribute, Object value)
attribute
- 속성 키value
- 속성의 값. null 의 경우도 있다
IllegalArgumentException
- AttributedString 의 길이가 0 의 경우 (속성은 길이 0 의 범위에는 적용할 수 없다)public void addAttribute(AttributedCharacterIterator.Attribute attribute, Object value, int beginIndex, int endIndex)
attribute
- 속성 키value
- 속성의 값. null 의 경우도 있는beginIndex
- 범위의 선두 캐릭터의 인덱스endIndex
- 범위의 최종 캐릭터의 다음에 오는 캐릭터의 인덱스
IllegalArgumentException
- beginIndex 가 0 보다 작은 경우, endIndex 가 캐릭터 라인장보다 큰 경우, 또는 beginIndex 와 endIndex 의 편성이 캐릭터 라인의 하늘이 아닌 부분 범위를 정의하지 않는 경우public void addAttributes(Map attributes, int beginIndex, int endIndex)
attributes
- 캐릭터 라인에 추가하는 속성beginIndex
- 범위의 선두 캐릭터의 인덱스endIndex
- 범위의 최종 캐릭터의 다음에 오는 캐릭터의 인덱스
IllegalArgumentException
- beginIndex 가 0 보다 작은 경우, endIndex 가 캐릭터 라인장보다 큰 경우, 또는 beginIndex 와 endIndex 의 편성이 캐릭터 라인의 하늘이 아닌 부분 범위를 정의하지 않고 속성 파라미터가 하늘의 Map 가 아닌 경우public AttributedCharacterIterator getIterator()
public AttributedCharacterIterator getIterator(AttributedCharacterIterator.Attribute [] attributes)
attributes
- 클라이언트가 관심을 가지는 속성의 리스트
public AttributedCharacterIterator getIterator(AttributedCharacterIterator.Attribute [] attributes, int beginIndex, int endIndex)
attributes
- 클라이언트가 관심을 가지는 속성의 리스트beginIndex
- 선두 캐릭터의 인덱스endIndex
- 마지막 캐릭터의 다음에 오는 캐릭터의 인덱스
IllegalArgumentException
- beginIndex 가 0 보다 작은 경우, endIndex 가 캐릭터 라인장보다 큰 경우, 또는 beginIndex 가 endIndex 보다 큰 경우
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
Java, Java 2 D, 및 JDBC 는 미국 및 그 외의 나라에 있어서의 미국 Sun Microsystems, Inc. 의 상표 혹은 등록상표입니다.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.