|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
public interface LayoutManager2
레이아웃 제약 객체에 근거해, 컨테이너를 어떻게 배치하는지를 인식하고 있는 클래스를 위한 인터페이스를 정의합니다. 이 인터페이스는, 컴퍼넌트를 레이아웃의 어디에 어떻게 추가하는지를 지정하는 제약 객체에 의해 레이아웃을 명시적으로 처리하도록(듯이) LayoutManager 인터페이스를 확장합니다.
LayoutManager 의 이 최저한의 확장은, 제약 레이아웃을 작성하는 툴 제공자를 위한 것입니다. 이것은 아직 제약 베이스의 커스텀 레이아웃 매니저를 완전하게, 한편 일반적으로 지원하는 것이 아닙니다.
LayoutManager
,
Container
메소드의 개요 | |
---|---|
void |
addLayoutComponent (Component comp,
Object constraints)
지정된 제약 객체를 사용해, 지정된 컴퍼넌트를 레이아웃에 추가합니다. |
float |
getLayoutAlignmentX (Container target)
x 축방향의 배치를 돌려줍니다. |
float |
getLayoutAlignmentY (Container target)
y 축방향의 배치를 돌려줍니다. |
void |
invalidateLayout (Container target)
레이아웃을 무효로 합니다. |
Dimension |
maximumLayoutSize (Container target)
지정된 컨테이너의 최대 사이즈의 치수를 계산합니다. |
인터페이스 java.awt. LayoutManager 로부터 상속된 메소드 |
---|
addLayoutComponent , layoutContainer , minimumLayoutSize , preferredLayoutSize , removeLayoutComponent |
메소드의 상세 |
---|
void addLayoutComponent(Component comp, Object constraints)
comp
- 추가되는 컴퍼넌트constraints
- 레이아웃에 컴퍼넌트를 추가하는 장소/방법Dimension maximumLayoutSize(Container target)
Component.getMaximumSize()
,
LayoutManager
float getLayoutAlignmentX(Container target)
float getLayoutAlignmentY(Container target)
void invalidateLayout(Container target)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.