JavaTM Platform
Standard Ed. 6

javax.swing
클래스 JRootPane.RootLayout

java.lang.Object 
  상위를 확장 javax.swing.JRootPane.RootLayout
모든 구현된 인터페이스:
LayoutManager , LayoutManager2 , Serializable
포함되어 있는 클래스:
JRootPane


protected class JRootPane.RootLayout
extends Object
implements LayoutManager2 , Serializable

layeredPane, glassPane, 및 menuBar 의 레이아웃을 처리하는 커스텀 레이아웃 매니저입니다.

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


생성자 의 개요
protected JRootPane.RootLayout ()
           
 
메소드의 개요
 void addLayoutComponent (Component  comp, Object  constraints)
          지정된 제약 객체를 사용해, 지정된 컴퍼넌트를 레이아웃에 추가합니다.
 void addLayoutComponent (String  name, Component  comp)
          레이아웃 매니저가 컴퍼넌트마다의 캐릭터 라인을 사용하는 경우, 레이아웃에 컴퍼넌트의 comp 를 추가해,name 에 의해 지정된 캐릭터 라인에 관련짓습니다.
 float getLayoutAlignmentX (Container  target)
          x 축방향의 배치를 돌려줍니다.
 float getLayoutAlignmentY (Container  target)
          y 축방향의 배치를 돌려줍니다.
 void invalidateLayout (Container  target)
          레이아웃을 무효로 합니다.
 void layoutContainer (Container  parent)
          레이아웃 매니저에게, 지정된 컨테이너의 레이아웃 처리를 실행하도록(듯이) 지시합니다.
 Dimension maximumLayoutSize (Container  target)
          레이아웃으로 사용할 수 있는 스페이스의 최대량을 돌려줍니다.
 Dimension minimumLayoutSize (Container  parent)
          레이아웃에 필요한 스페이스의 최소량을 돌려줍니다.
 Dimension preferredLayoutSize (Container  parent)
          레이아웃내의 스페이스의 양을 돌려줍니다.
 void removeLayoutComponent (Component  comp)
          지정된 컴퍼넌트를 레이아웃으로부터 삭제합니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

JRootPane.RootLayout

protected JRootPane.RootLayout()
메소드의 상세

preferredLayoutSize

public Dimension  preferredLayoutSize(Container  parent)
레이아웃내의 스페이스의 양을 돌려줍니다.

정의:
인터페이스 LayoutManager 내의 preferredLayoutSize
파라미터:
parent - 이 레이아웃 매니저를 사용한다 컨테이너
반환값:
레이아웃의 적절한 사이즈가 포함되고 있는 Dimension 객체
관련 항목:
LayoutManager.minimumLayoutSize(java.awt.Container)

minimumLayoutSize

public Dimension  minimumLayoutSize(Container  parent)
레이아웃에 필요한 스페이스의 최소량을 돌려줍니다.

정의:
인터페이스 LayoutManager 내의 minimumLayoutSize
파라미터:
parent - 이 레이아웃 매니저를 사용한다 컨테이너
반환값:
레이아웃의 최소 사이즈가 포함되고 있는 Dimension 객체
관련 항목:
LayoutManager.preferredLayoutSize(java.awt.Container)

maximumLayoutSize

public Dimension  maximumLayoutSize(Container  target)
레이아웃으로 사용할 수 있는 스페이스의 최대량을 돌려줍니다.

정의:
인터페이스 LayoutManager2 내의 maximumLayoutSize
파라미터:
target - 이 레이아웃 매니저를 사용한다 컨테이너
반환값:
레이아웃의 최대 사이즈가 포함되고 있는 Dimension 객체
관련 항목:
Component.getMaximumSize() , LayoutManager

layoutContainer

public void layoutContainer(Container  parent)
레이아웃 매니저에게, 지정된 컨테이너의 레이아웃 처리를 실행하도록(듯이) 지시합니다.

정의:
인터페이스 LayoutManager 내의 layoutContainer
파라미터:
parent - 이 레이아웃 매니저를 사용한다 컨테이너

addLayoutComponent

public void addLayoutComponent(String  name,
                               Component  comp)
인터페이스 LayoutManager 의 기술:
레이아웃 매니저가 컴퍼넌트마다의 캐릭터 라인을 사용하는 경우, 레이아웃에 컴퍼넌트의 comp 를 추가해,name 에 의해 지정된 캐릭터 라인에 관련짓습니다.

정의:
인터페이스 LayoutManager 내의 addLayoutComponent
파라미터:
name - 컴퍼넌트에 관련지을 수 있었던 캐릭터 라인
comp - 추가되는 컴퍼넌트

removeLayoutComponent

public void removeLayoutComponent(Component  comp)
인터페이스 LayoutManager 의 기술:
지정된 컴퍼넌트를 레이아웃으로부터 삭제합니다.

정의:
인터페이스 LayoutManager 내의 removeLayoutComponent
파라미터:
comp - 삭제되는 컴퍼넌트

addLayoutComponent

public void addLayoutComponent(Component  comp,
                               Object  constraints)
인터페이스 LayoutManager2 의 기술:
지정된 제약 객체를 사용해, 지정된 컴퍼넌트를 레이아웃에 추가합니다.

정의:
인터페이스 LayoutManager2 내의 addLayoutComponent
파라미터:
comp - 추가되는 컴퍼넌트
constraints - 레이아웃에 컴퍼넌트를 추가하는 장소/방법

getLayoutAlignmentX

public float getLayoutAlignmentX(Container  target)
인터페이스 LayoutManager2 의 기술:
x 축방향의 배치를 돌려줍니다. 이것은, 그 컴퍼넌트가 다른 컴퍼넌트에 대해서 어떻게 배치되어야할 것인가를 지정한 것입니다. 이 값은 0 에서 1 의 사이의 수치로, 0 은 기점을 따른 배치를 나타내, 1 은 기점으로부터도 와도 먼 곳에, 0.5 는 중앙에 배치됩니다.

정의:
인터페이스 LayoutManager2 내의 getLayoutAlignmentX

getLayoutAlignmentY

public float getLayoutAlignmentY(Container  target)
인터페이스 LayoutManager2 의 기술:
y 축방향의 배치를 돌려줍니다. 이것은, 그 컴퍼넌트가 다른 컴퍼넌트에 대해서 어떻게 배치되어야할 것인가를 지정한 것입니다. 이 값은 0 에서 1 의 사이의 수치로, 0 은 기점을 따른 배치를 나타내, 1 은 기점으로부터도 와도 먼 곳에, 0.5 는 중앙에 배치됩니다.

정의:
인터페이스 LayoutManager2 내의 getLayoutAlignmentY

invalidateLayout

public void invalidateLayout(Container  target)
인터페이스 LayoutManager2 의 기술:
레이아웃을 무효로 합니다. 이 때, 레이아웃 매니저가 정보를 캐쉬하고 있으면 그것을 파기합니다.

정의:
인터페이스 LayoutManager2 내의 invalidateLayout

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