JavaTM Platform
Standard Ed. 6

javax.swing.border
클래스 EmptyBorder

java.lang.Object 
  상위를 확장 javax.swing.border.AbstractBorder 
      상위를 확장 javax.swing.border.EmptyBorder
모든 구현된 인터페이스:
Serializable , Border
직계의 기존의 서브 클래스:
BorderUIResource.EmptyBorderUIResource , MatteBorder


public class EmptyBorder
extends AbstractBorder
implements Serializable

스페이스를 차지하지만 draw는 하지 않는, 빈 상태(empty)의 투과 경계를 제공하는 클래스입니다.

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


필드의 개요
protected  int bottom
           
protected  int left
           
protected  int right
           
protected  int top
           
 
생성자 의 개요
EmptyBorder (Insets  borderInsets)
          지정된 인 세트의 값을 가지는, 빈 상태(empty)의 경계를 작성합니다.
EmptyBorder (int top, int left, int bottom, int right)
          지정된 인 세트의 값을 가지는, 빈 상태(empty)의 경계를 작성합니다.
 
메소드의 개요
 Insets getBorderInsets ()
          경계의 인 세트의 값을 돌려줍니다.
 Insets getBorderInsets (Component  c)
          경계의 인 세트의 값을 돌려줍니다.
 Insets getBorderInsets (Component  c, Insets  insets)
          insets 파라미터를, 이 Border 의 현재의 Insets 로 다시 초기화합니다.
 boolean isBorderOpaque ()
          경계가 불투명한가 어떤가를 돌려줍니다.
 void paintBorder (Component  c, Graphics  g, int x, int y, int width, int height)
          디폴트에서는, draw를 실시하지 않습니다.
 
클래스 javax.swing.border. AbstractBorder 로부터 상속된 메소드
getBaseline , getBaselineResizeBehavior , getInteriorRectangle , getInteriorRectangle
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

필드의 상세

left

protected int left

right

protected int right

top

protected int top

bottom

protected int bottom
생성자 의 상세

EmptyBorder

public EmptyBorder(int top,
                   int left,
                   int bottom,
                   int right)
지정된 인 세트의 값을 가지는, 빈 상태(empty)의 경계를 작성합니다.

파라미터:
top - 경계 상인 세트
left - 경계의 왼쪽 인 세트
bottom - 경계하인 세트
right - 경계의 오른쪽 인 세트

EmptyBorder

public EmptyBorder(Insets  borderInsets)
지정된 인 세트의 값을 가지는, 빈 상태(empty)의 경계를 작성합니다.

파라미터:
borderInsets - 경계의 인 세트
메소드의 상세

paintBorder

public void paintBorder(Component  c,
                        Graphics  g,
                        int x,
                        int y,
                        int width,
                        int height)
디폴트에서는, draw를 실시하지 않습니다.

정의:
인터페이스 Border 내의 paintBorder
오버라이드(override):
클래스 AbstractBorder 내의 paintBorder
파라미터:
c - 이 경계가 페인트 되는 컴퍼넌트
g - 페인트의 그래픽스
x - 페인트 된 경계의 x 좌표
y - 페인트 된 경계의 y 좌표
width - 페인트 된 경계의 폭
height - 페인트 된 경계의 높이

getBorderInsets

public Insets  getBorderInsets(Component  c)
경계의 인 세트의 값을 돌려줍니다.

정의:
인터페이스 Border 내의 getBorderInsets
오버라이드(override):
클래스 AbstractBorder 내의 getBorderInsets
파라미터:
c - 이 경계의 인 세트의 값을 적용하는 컴퍼넌트
반환값:
0 에 초기화되는 새로운 Insets 객체
도입된 버젼:
1.3

getBorderInsets

public Insets  getBorderInsets(Component  c,
                              Insets  insets)
insets 파라미터를, 이 Border 의 현재의 Insets 로 다시 초기화합니다.

오버라이드(override):
클래스 AbstractBorder 내의 getBorderInsets
파라미터:
c - 이 경계의 인 세트의 값을 적용하는 컴퍼넌트
insets - 다시 초기화하는 객체
반환값:
insets 객체

getBorderInsets

public Insets  getBorderInsets()
경계의 인 세트의 값을 돌려줍니다.

도입된 버젼:
1.3

isBorderOpaque

public boolean isBorderOpaque()
경계가 불투명한가 어떤가를 돌려줍니다. 디폴트에서는 false 를 돌려줍니다.

정의:
인터페이스 Border 내의 isBorderOpaque
오버라이드(override):
클래스 AbstractBorder 내의 isBorderOpaque
반환값:
false

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 도 참조해 주세요.