お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ui.Panel.Layout.flow
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ウィジェットを水平方向または垂直方向のフローに配置するレイアウトを返します。
デフォルトでは、ウィジェットはフロー レイアウト パネル内の自然なスペースを占有します。追加したウィジェットの「stretch」スタイル プロパティを設定して、関連する方向に利用可能なスペースを埋めるようにウィジェットを拡大します。
- 水平、垂直、両方
複数のウィジェットが拡大される場合、利用可能なスペースはそれらの間で均等に分割されます。パネルはウィジェット自体であり、「stretch」スタイル プロパティを指定することで拡大できます。
用途 | 戻り値 |
---|
ui.Panel.Layout.flow(direction, wrap) | ui.Panel.Layout |
引数 | タイプ | 詳細 |
---|
direction | 文字列、省略可 | フローの方向。「horizontal」または「vertical」のいずれか。デフォルトは「vertical」です。 |
wrap | ブール値、省略可 | 1 行に表示するには子要素が多すぎる場合に、レイアウトで子要素を折り返すかどうか。デフォルトは false です。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003eui.Panel.Layout.flow()\u003c/code\u003e function arranges widgets within a panel in either a horizontal or vertical flow.\u003c/p\u003e\n"],["\u003cp\u003eWidgets naturally occupy their required space but can be stretched to fill available space using the "stretch" style property.\u003c/p\u003e\n"],["\u003cp\u003eWhen multiple widgets have the "stretch" property, the available space is divided equally among them, including panels which are also widgets.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eflow\u003c/code\u003e layout can be customized using the \u003ccode\u003edirection\u003c/code\u003e argument for flow orientation (horizontal or vertical) and the \u003ccode\u003ewrap\u003c/code\u003e argument to control wrapping of overflowing widgets.\u003c/p\u003e\n"]]],[],null,["# ui.Panel.Layout.flow\n\n\u003cbr /\u003e\n\nReturns a layout that places its widgets in a flow, either horizontal or vertical.\n\n\u003cbr /\u003e\n\nBy default, widgets take up their natural space within a flow layout panel. Set the \"stretch\" style property on an added widget to stretch it to fill available space in the relevant direction:\n\n- horizontal, vertical, both\n\nWhen multiple widgets are stretched, the available space is split equally among them. Panels are widgets themselves and can be stretched by specifying a \"stretch\" style property.\n\n| Usage | Returns |\n|--------------------------------------------------|-----------------|\n| `ui.Panel.Layout.flow(`*direction* `, `*wrap*`)` | ui.Panel.Layout |\n\n| Argument | Type | Details |\n|-------------|-------------------|------------------------------------------------------------------------------------------------------|\n| `direction` | String, optional | The direction of the flow. One of 'horizontal' or 'vertical'. Defaults to 'vertical'. |\n| `wrap` | Boolean, optional | Whether to wrap children in the layout if there are too many to show in one line. Defaults to false. |"]]