JavaTM Platform
Standard Ed. 6

javax.swing.text
클래스 DefaultStyledDocument.ElementSpec

java.lang.Object 
  상위를 확장 javax.swing.text.DefaultStyledDocument.ElementSpec
포함되어 있는 클래스:
DefaultStyledDocument


public static class DefaultStyledDocument.ElementSpec
extends Object

요소를 구축하는 구현입니다.

경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans 의 장기간의 운용 지원는,java.beans 패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder 를 참조해 주세요.


필드의 개요
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)
          데이터가 벌써 추가되고 있지만 len 정보가 필요한 경우에, 문서내에서 해석을 실시하는 생성자 입니다.
 
메소드의 개요
 char[] getArray ()
          문자의 배열을 가져옵니다.
 AttributeSet getAttributes ()
          요소의 속성을 가져옵니다.
 short getDirection ()
          방향을 가져옵니다.
 int getLength ()
          길이를 가져옵니다.
 int getOffset ()
          개시 오프셋(offset)를 가져옵니다.
 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
 

필드의 상세

StartTagType

public static final short StartTagType
getType 로 설정 가능한 값입니다. 이 값은, 이 레코드 타입이 개시 태그인 것을 지정해, 요소의 개시를 지정하는 마크 업을 나타냅니다.

관련 항목:
정수 필드치

EndTagType

public static final short EndTagType
getType 로 설정 가능한 값입니다. 이 값은, 이 레코드 타입이 종료 태그인 것을 지정해, 요소의 종료를 지정하는 마크 업을 나타냅니다.

관련 항목:
정수 필드치

ContentType

public static final short ContentType
getType 로 설정 가능한 값입니다. 이 값은, 이 레코드 타입이 컨텐츠를 나타내는 것을 나타냅니다.

관련 항목:
정수 필드치

JoinPreviousDirection

public static final short JoinPreviousDirection
getDirection 로 설정 가능한 값입니다. 이 값은, 이 레코드에 관련지을 수 있었던 데이터를, 선행하는 데이터에 결합하는 것을 지정합니다.

관련 항목:
정수 필드치

JoinNextDirection

public static final short JoinNextDirection
getDirection 로 설정 가능한 값입니다. 이 값은, 이 레코드에 관련지을 수 있었던 데이터를, 계속되는 데이터에 결합하는 것을 나타냅니다.

관련 항목:
정수 필드치

OriginateDirection

public static final short OriginateDirection
getDirection 로 설정 가능한 값입니다. 이 값은, 이 레코드에 관련지을 수 있었던 데이터를, 신규 요소의 생성에 사용하는 것을 나타냅니다. 이것은 일반적으로의 값이 됩니다.

관련 항목:
정수 필드치

JoinFractureDirection

public static final short JoinFractureDirection
getDirection 로 설정 가능한 값입니다. 이 값은, 이 레코드에 관련지을 수 있었던 데이터를, 분할 요소에 결합하는 것을 나타냅니다.

관련 항목:
정수 필드치
생성자 의 상세

DefaultStyledDocument.ElementSpec

public DefaultStyledDocument.ElementSpec(AttributeSet  a,
                                         short type)
마크 업이 문서에 포함되지 않는 경우의, 마크 업에 유효한 생성자 입니다.

파라미터:
a - 요소의 속성
type - 요소의 형태 (StartTagType, EndTagType, ContentType)

DefaultStyledDocument.ElementSpec

public DefaultStyledDocument.ElementSpec(AttributeSet  a,
                                         short type,
                                         int len)
데이터가 벌써 추가되고 있지만 len 정보가 필요한 경우에, 문서내에서 해석을 실시하는 생성자 입니다.

파라미터:
a - 요소의 속성
type - 요소의 형태 (StartTagType, EndTagType, ContentType)
len - 길이 >= 0

DefaultStyledDocument.ElementSpec

public DefaultStyledDocument.ElementSpec(AttributeSet  a,
                                         short type,
                                         char[] txt,
                                         int offs,
                                         int len)
문서에의 컨텐츠와 마크 업의 배치 입력의 스펙(명세서)를, 외부적으로 작성하는 생성자 입니다.

파라미터:
a - 요소의 속성
type - 요소의 형태 (StartTagType, EndTagType, ContentType)
txt - 요소의 텍스트
offs - 텍스트에 대한 오프셋(offset) >= 0
len - 텍스트의 길이 >= 0
메소드의 상세

setType

public void setType(short type)
요소의 형태를 설정합니다.

파라미터:
type - 요소의 형태 (StartTagType, EndTagType, ContentType)

getType

public short getType()
요소의 형태를 가져옵니다.

반환값:
요소의 형태 (StartTagType, EndTagType, ContentType)

setDirection

public void setDirection(short direction)
방향을 설정합니다.

파라미터:
direction - 방향 (JoinPreviousDirection, JoinNextDirection)

getDirection

public short getDirection()
방향을 가져옵니다.

반환값:
방향 (JoinPreviousDirection, JoinNextDirection)

getAttributes

public AttributeSet  getAttributes()
요소의 속성을 가져옵니다.

반환값:
속성 세트

getArray

public char[] getArray()
문자의 배열을 가져옵니다.

반환값:
배열

getOffset

public int getOffset()
개시 오프셋(offset)를 가져옵니다.

반환값:
오프셋(offset) >= 0

getLength

public int getLength()
길이를 가져옵니다.

반환값:
길이 >= 0

toString

public String  toString()
요소를 캐릭터 라인으로 변환합니다.

오버라이드(override):
클래스 Object 내의 toString
반환값:
캐릭터 라인

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.