JavaTM Platform
Standard Ed. 6

javax.swing.plaf.basic
클래스 BasicSplitPaneUI.BasicHorizontalLayoutManager

java.lang.Object 
  상위를 확장 javax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager
모든 구현된 인터페이스:
LayoutManager , LayoutManager2
직계의 기존의 서브 클래스:
BasicSplitPaneUI.BasicVerticalLayoutManager
포함되어 있는 클래스:
BasicSplitPaneUI


public class BasicSplitPaneUI.BasicHorizontalLayoutManager
extends Object
implements LayoutManager2

HORIZONTAL_SPLIT 방향의 JSplitPane 의 LayoutManager 입니다.


필드의 개요
protected  Component [] components
           
protected  int[] sizes
           
 
메소드의 개요
 void addLayoutComponent (Component  comp, Object  constraints)
          지정된 제약 객체를 사용해, 지정된 컴퍼넌트를 레이아웃에 추가합니다.
 void addLayoutComponent (String  place, Component  component)
          컴퍼넌트를 place 에 추가합니다.
protected  int getAvailableSize (Dimension  containerSize, Insets  insets)
          컨테이너의 사이즈와 인 세트에 근거해 유효한 폭을 돌려줍니다.
protected  int getInitialLocation (Insets  insets)
          Insets 가 null 가 아닌 경우는 왼쪽 인 세트, null 의 경우는 0 을 돌려줍니다.
 float getLayoutAlignmentX (Container  target)
          x 축방향의 배치를 돌려줍니다.
 float getLayoutAlignmentY (Container  target)
          y 축방향의 배치를 돌려줍니다.
protected  int getPreferredSizeOfComponent (Component  c)
          건네받은 컴퍼넌트의 적절한 사이즈의 폭을 돌려줍니다.
protected  int getSizeOfComponent (Component  c)
          건네받은 컴퍼넌트의 폭을 돌려줍니다.
protected  int[] getSizes ()
          컴퍼넌트의 사이즈를 돌려줍니다.
 void invalidateLayout (Container  c)
          아무것도 실시하지 않습니다.
 void layoutContainer (Container  container)
          실제의 레이아웃을 실시합니다.
 Dimension maximumLayoutSize (Container  target)
          최대의 레이아웃 사이즈를 돌려줍니다.
 Dimension minimumLayoutSize (Container  container)
          아이를 포함하기 위해서 필요한 최소 사이즈를 돌려줍니다.
 Dimension preferredLayoutSize (Container  container)
          아이를 포함하기 위한 적절한 사이즈를 돌려줍니다.
 void removeLayoutComponent (Component  component)
          지정된 컴퍼넌트를 삭제합니다.
protected  void resetSizeAt (int index)
          건네받은 위치에 있는 Component 의 사이즈를 리셋 합니다.
 void resetToPreferredSizes ()
          다음번 이 인스턴스가 배치될 때 적절한 사이즈를 설정하도록(듯이), 리시버에 마크 합니다.
protected  void setComponentToSize (Component  c, int size, int location, Insets  insets, Dimension  containerSize)
          x 위치를 location, y 위치를 insets.top 에 배치하는 것으로써, 컴퍼넌트 c 의 폭을 size 로 설정해, 그 높이를 containersize.height 로부터 상인 세트와 하인 세트를 감산한 값으로 설정합니다.
protected  void setSizes (int[] newSizes)
          사이즈를 newSizes 로 설정합니다.
protected  void updateComponents ()
          컴퍼넌트를 판정합니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

필드의 상세

sizes

protected int[] sizes

components

protected Component [] components
메소드의 상세

layoutContainer

public void layoutContainer(Container  container)
실제의 레이아웃을 실시합니다.

정의:
인터페이스 LayoutManager 내의 layoutContainer
파라미터:
container - 배치되는 컨테이너

addLayoutComponent

public void addLayoutComponent(String  place,
                               Component  component)
컴퍼넌트를 place 에 추가합니다. place 는, JSplitPane.LEFT, RIGHT, TOP, BOTTOM, 또는 null (디바이더의 경우)의 어떤 것인가 나오지 않으면 안됩니다.

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

minimumLayoutSize

public Dimension  minimumLayoutSize(Container  container)
아이를 포함하기 위해서 필요한 최소 사이즈를 돌려줍니다. 폭은 각각의 아이의 최소폭의 합계, 높이는 각각의 아이의 최소의 높이의 최대치입니다.

정의:
인터페이스 LayoutManager 내의 minimumLayoutSize
파라미터:
container - 배치되는 컴퍼넌트
관련 항목:
LayoutManager.preferredLayoutSize(java.awt.Container)

preferredLayoutSize

public Dimension  preferredLayoutSize(Container  container)
아이를 포함하기 위한 적절한 사이즈를 돌려줍니다. 폭은 각각의 아이의 적절한 폭의 합계, 높이는 각각의 아이의 적절한 높이의 최대치입니다.

정의:
인터페이스 LayoutManager 내의 preferredLayoutSize
파라미터:
container - 배치되는 컨테이너
관련 항목:
LayoutManager.minimumLayoutSize(java.awt.Container)

removeLayoutComponent

public void removeLayoutComponent(Component  component)
지정된 컴퍼넌트를 삭제합니다.

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

addLayoutComponent

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

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

getLayoutAlignmentX

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

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

getLayoutAlignmentY

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

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

invalidateLayout

public void invalidateLayout(Container  c)
아무것도 실시하지 않습니다. 뷰의 어떤 것인가의 사이즈를 변경하는 경우, 개발자는 JSplitPane.resetToPreferredSizes 를 메세지로서 보낼 필요가 있습니다.

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

maximumLayoutSize

public Dimension  maximumLayoutSize(Container  target)
최대의 레이아웃 사이즈를 돌려줍니다. 양방향 모두 Integer.MAX_VALUE 입니다.

정의:
인터페이스 LayoutManager2 내의 maximumLayoutSize
관련 항목:
Component.getMaximumSize() , LayoutManager

resetToPreferredSizes

public void resetToPreferredSizes()
다음번 이 인스턴스가 배치될 때 적절한 사이즈를 설정하도록(듯이), 리시버에 마크 합니다.


resetSizeAt

protected void resetSizeAt(int index)
건네받은 위치에 있는 Component 의 사이즈를 리셋 합니다.


setSizes

protected void setSizes(int[] newSizes)
사이즈를 newSizes 로 설정합니다.


getSizes

protected int[] getSizes()
컴퍼넌트의 사이즈를 돌려줍니다.


getPreferredSizeOfComponent

protected int getPreferredSizeOfComponent(Component  c)
건네받은 컴퍼넌트의 적절한 사이즈의 폭을 돌려줍니다.


getSizeOfComponent

protected int getSizeOfComponent(Component  c)
건네받은 컴퍼넌트의 폭을 돌려줍니다.


getAvailableSize

protected int getAvailableSize(Dimension  containerSize,
                               Insets  insets)
컨테이너의 사이즈와 인 세트에 근거해 유효한 폭을 돌려줍니다.


getInitialLocation

protected int getInitialLocation(Insets  insets)
Insets 가 null 가 아닌 경우는 왼쪽 인 세트, null 의 경우는 0 을 돌려줍니다.


setComponentToSize

protected void setComponentToSize(Component  c,
                                  int size,
                                  int location,
                                  Insets  insets,
                                  Dimension  containerSize)
x 위치를 location, y 위치를 insets.top 에 배치하는 것으로써, 컴퍼넌트 c 의 폭을 size 로 설정해, 그 높이를 containersize.height 로부터 상인 세트와 하인 세트를 감산한 값으로 설정합니다.


updateComponents

protected void updateComponents()
컴퍼넌트를 판정합니다. 이 메소드는, 새로운 인스턴스가 기존의 SplitPane 에 인스톨 될 때 반드시 불려 갑니다.


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