|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
public interface AccessibleText
AccessibleText 인터페이스는, 텍스트 정보를 화면에 표시하는 모든 클래스에 의해 구현될 필요가 있습니다. 이 인터페이스는, 내용, 속성, 및 공간 위치를 사용해 그 텍스트에 액세스하기 위한 표준적인 기구를 사용자 보조 기능에 제공합니다. 어플리케이션은, 객체의 AccessibleContext (Accessible
를 참조)를 취득하고 나서, AccessibleContext 의 AccessibleContext.getAccessibleText()
메소드를 호출하면(자), 객체가 AccessibleText 인터페이스를 지원할지 어떨지를 판정할 수 있습니다. 반환값이 null 가 아니면, 그 객체는 이 인터페이스를 지원하고 있습니다.
Accessible
,
Accessible.getAccessibleContext()
,
AccessibleContext
,
AccessibleContext.getAccessibleText()
필드의 개요 | |
---|---|
static int |
CHARACTER
꺼낼 필요가 있는 텍스트의 일부가 문자인 것을 나타내는데 사용하는 정수입니다. |
static int |
SENTENCE
꺼낼 필요가 있는 텍스트의 일부가 문장인 것을 나타내는데 사용하는 정수입니다. |
static int |
WORD
꺼낼 필요가 있는 텍스트의 일부가 단어인 것을 나타내는데 사용하는 정수입니다. |
메소드의 개요 | |
---|---|
String |
getAfterIndex (int part,
int index)
지정된 인덱스의 뒤의 캐릭터 라인을 돌려줍니다. |
String |
getAtIndex (int part,
int index)
지정된 인덱스에서의 캐릭터 라인을 돌려줍니다. |
String |
getBeforeIndex (int part,
int index)
지정된 인덱스의 전의 캐릭터 라인을 돌려줍니다. |
int |
getCaretPosition ()
caret의 제로로부터 시작되는 오프셋(offset)를 돌려줍니다. |
AttributeSet |
getCharacterAttribute (int i)
지정된 인덱스의 위치에 있는 지정된 문자의 AttributeSet 를 돌려줍니다. |
Rectangle |
getCharacterBounds (int i)
캐릭터 라인에 대한 지정된 인덱스로 문자의 바운딩 박스를 결정합니다. |
int |
getCharCount ()
문자의 수를 돌려줍니다 (유효한 인덱스). |
int |
getIndexAtPoint (Point p)
로컬 좌표로 포인트를 지정해, 그 Point 하의 문자의 제로로부터 시작되는 인덱스를 돌려줍니다. |
String |
getSelectedText ()
선택되고 있는 텍스트의 일부를 돌려줍니다. |
int |
getSelectionEnd ()
선택한 텍스트내의 종료 오프셋(offset)를 돌려줍니다. |
int |
getSelectionStart ()
선택한 텍스트내의 개시 오프셋(offset)를 돌려줍니다. |
필드의 상세 |
---|
static final int CHARACTER
getAtIndex(int, int)
,
getAfterIndex(int, int)
,
getBeforeIndex(int, int)
,
정수 필드치 static final int WORD
getAtIndex(int, int)
,
getAfterIndex(int, int)
,
getBeforeIndex(int, int)
,
정수 필드치 static final int SENTENCE
getAtIndex(int, int)
,
getAfterIndex(int, int)
,
getBeforeIndex(int, int)
,
정수 필드치 메소드의 상세 |
---|
int getIndexAtPoint(Point p)
p
- 로컬 좌표의 Point
Rectangle getCharacterBounds(int i)
i
- String 에 대한 인덱스
int getCharCount()
int getCaretPosition()
String getAtIndex(int part, int index)
part
- 꺼내는 CHARACTER, WORD, 또는 SENTENCEindex
- 텍스트내의 문자 인덱스
String getAfterIndex(int part, int index)
part
- 꺼내는 CHARACTER, WORD, 또는 SENTENCEindex
- 텍스트내의 문자 인덱스
String getBeforeIndex(int part, int index)
part
- 꺼내는 CHARACTER, WORD, 또는 SENTENCEindex
- 텍스트내의 문자 인덱스
AttributeSet getCharacterAttribute(int i)
i
- 텍스트에 대한 제로로부터 시작되는 인덱스
int getSelectionStart()
int getSelectionEnd()
String getSelectedText()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.