|
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(),
LayoutManagerfloat getLayoutAlignmentX(Container target)
float getLayoutAlignmentY(Container target)
void invalidateLayout(Container target)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。