(クラス)
PanedWindow コンテナは、グラフィックを水平または垂直に並べて管理します。各グラフィックは Pane に存在します。ペインの各ペアは、Sash により区切られています。ユーザーは、該当するサッシを選択して目的の場所にドラッグし、PanedWindow 内の各ペインに割り当てられたスペースの量を割り当てなおすことができます。サッシを離すと、PanedWindow はその場所でサッシの直前と直後にあるペインが共有するスペースの量を分割します。
注意事項
このオブジェクトは、"PanedWindow"のスタイル ルールを記述することによりスタイル化することが出来ます。
コンストラクタ public | {PanedWindow.default} |
orientation: | orientation フィールドは、PanedWindow 内の Pane の配置を定義します。このオプションは、次の 2 つの値のうちのいずれかになります。- Orientation.horizontal は、ウィンドウ内でペインが左から右に追加されるように指定します。
- Orientation.vertical は、ウィンドウ内でペインが上から下に配置されるように指定します。
|
フィールド public-get protected-set PanedWindow.orientation:
Orientation
フィールド protected PanedWindow.pane-count-field:
int =0
非ローカル オプション public PanedWindow.sash-background:
Background
非ローカル オプション public PanedWindow.sash-border-color:
FillPattern
アクセサ public PanedWindow.style-element:
String プロパティ 継承 Graphic:
avoid-page-break?, background, border-color, border-spec, border-style, border-width, cell-border-spec, cell-border-width, cell-margin, discrete-select-in-range?, display-context, enabled?, graphic-selectable, height, horigin, is-paginating?, layout, margin, opaque-to-events?, option-parent, outside-margin, pagination-state, parent, possibly-displayed?, selection-context, shadow-color, shadow-spec, visible?, visual-parent, vorigin, width プロパティ 継承 Visual:
_style-element, clonable-class?, cursor, data-source, dragee, font-size, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, style-class, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data
public | {PanedWindow.add-pane-at-index}:void |
find: | グラフィックを表示するペインのゼロベースのインデックスを返します。 |
public | {PanedWindow.find child:any}:int |
public | {PanedWindow.find-paned-child-at-point}:#Graphic |
get: | 指定したインデックスのペインに表示される子を返します。 |
public | {PanedWindow.get-pane index:int}:#Pane |
public | {PanedWindow.move-pane old-index:int, new-index:int}:void |
public | {PanedWindow.pane-count}:int |
public | {PanedWindow.remove-pane-at-index index:int}:#Graphic |
public | {PanedWindow.set-pane-sizes sizes:{Array-of double}}:void |
メソッド 継承 SequenceBox:
add, add-at-index, add-at-index-with-layout, after-reposition, attempt-revalidate-layout, before-reposition, clear, compare-children, draw, end-pagination, graphical-child-visible-at, internal-remove-child, note-attached, note-detaching, notify-option-children, pick-child, propagate-request-layout, register-options, request-draw, request-pointer-trace, swap-children, validate-layout-sequence-numbers メソッド 継承 Graphic:
create-pagination-state, detach, draw-range-as-selected, draw-shadow, find-ancestor, find-graphical-ancestor, fire-inferior-crossing-event, get-graphical-root, get-gui-path, get-origin-in-graphical-ancestor, get-origin-in-root, get-pagination-state, get-top-left-in-ancestor, get-visible-bounds-into, on-drag-enter, on-inspection, on-pointer-enter, paginate, paint-with-decorations, replace-with, request-draw-rect, search-next, search-prev, set-layout, start-pagination, xy-offset-to メソッド 継承 Visual:
add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, clone-appearance-helper, get-focus-manager, get-layout-context, get-test-parent, get-test-property, get-text, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-caret-position, on-drag-leave, on-pointer-leave, pop-cursor, prepare-test-object, prepare-test-parent, push-cursor, quantize-width, refresh-style-options, release-key-focus, request-key-focus, scroll-to-include, test-record, test-run, transform-from-display-coordinates, transform-from-graphical-root-coordinates, transform-to-display-coordinates, transform-to-graphical-root-coordinates メソッド 継承 GuiEventTarget:
handle-delegate-event, handle-event, on-action, on-cancel-mode, on-command-changed, on-commit, on-composition-change-event, on-composition-result-event, on-context-menu-event, on-current-record-change-request, on-current-record-changed, on-destroy-notify, on-destroy-requested, on-drag-over, on-drag-pointer, on-drag-started, on-drop, on-end-composition-event, on-focus-event, on-focus-in, on-focus-out, on-gesture, on-gesture-begin, on-gesture-end, on-gesture-magnify, on-gesture-pan, on-gesture-rotate, on-gesture-swipe, on-gesture-tap, on-gesture-touch, on-grab-release, on-gui-event, on-input-method-event, on-key-event, on-key-press, on-pointer-button, on-pointer-crossing, on-pointer-event, on-pointer-motion, on-pointer-press, on-pointer-release, on-pointer-scroll, on-raw-key-event, on-raw-key-press, on-raw-key-release, on-reset, on-selectable-added, on-selectable-removed, on-selection-changed, on-selection-context-activated, on-selection-context-deactivated, on-selection-event, on-start-composition-event, on-start-event, on-stop-event, on-view-activate, on-view-deactivate, on-window-close, remove-event-handlers-for-event-class メソッド 継承 OptionListInterface:
add-option, add-style-option, change-option-parent-notify, clone-options, get-option, get-option-by-name, keyword-init-arg, local-add-notify, local-remove-notify, name-to-option-key, new-option-item, option-change-notify, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, remove-option, remove-style-option, remove-styles, set-option-by-name, set-style-option-by-name, unset-option-by-name, unset-style-option-by-name
(コンストラクタ)
public | {PanedWindow.default} |
新しい PanedWindow を作成します。
orientation: PanedWindow の Pane の配置を指定します。グラフィックは、horizontal または vertical の方向に並べられます。
rest-args: PanedWindow で設定されるプロパティとイベント ハンドラ。
(フィールド)
public-get protected-set PanedWindow.orientation:
Orientation orientation フィールドは、PanedWindow 内の Pane の配置を定義します。このオプションは、次の 2 つの値のうちのいずれかになります。
- Orientation.horizontal は、ウィンドウ内でペインが左から右に追加されるように指定します。
- Orientation.vertical は、ウィンドウ内でペインが上から下に配置されるように指定します。
(フィールド)
protected PanedWindow.pane-count-field:
int =0
(非ローカル オプション)
(非ローカル オプション)
(アクセサ)
アクセサ public PanedWindow.style-element:
String スタイリングの目的のための、この Visual の "要素" や "型" です。
説明
オーバーライド
Visual のサブクラスのスタイルが他のオブジェクトと異なる場合、このゲッターは適切な文字列を返すようにオーバーライドされる必要があります。 慣例では,この文字列はクラス名または、オブジェクトを生成するマークアップの名前です。
オーバーライドでは、空の文字列でないかぎり、self._style-elementを返さなければなりません。
導入:
バージョン 6.0
(メソッド)
PanedWindow の終わりに新しいペインを追加します。
g: 新しいペインに配置するグラフィック。
min: PanedWindow の Pane のサイズを変更する際に適用できる最小寸法。このパラメータの既定値は 1mm です。
(メソッド)
public | {PanedWindow.add-pane-at-index}:void |
PanedWindow に N 番目のアイテムとしてペインを挿入します。この場合、N はゼロベースのインデックスです。
g: 新しいペインに配置するグラフィック。
index: ウィンドウ内の新しい Pane の位置 (ゼロベース)。
min: PanedWindow の Pane のサイズを変更する際に適用できる最小寸法。このパラメータの既定値は 1mm です。
(メソッド)
public | {PanedWindow.find child:any}:int |
グラフィックを表示するペインのゼロベースのインデックスを返します。
child: 検索する子グラフィック。
戻り値
子を表示するペインの、ゼロベースのインデックス。見つからない場合は、-1。
(メソッド)
public | {PanedWindow.find-paned-child-at-point}:#Graphic |
PanedWindow 内のポイントに位置する Pane または Sash グラフィックを返します。ポイントは、PanedWindow の左下隅の起点に基づいて指定されます。
戻り値
座標に位置するグラフィック。
(メソッド)
指定したインデックスのペインに表示される子を返します。
index: pane の 0-起点 のインデックスの値。
戻り値
ペインに表示されるグラフィック。見つからない場合は null。
(メソッド)
public | {PanedWindow.get-pane index:int}:#Pane |
指定された index の、Pane を返します。
index: pane の 0-起点 のインデックスの値。
戻り値
(メソッド)
public | {PanedWindow.move-pane old-index:int, new-index:int}:void |
ペインを PanedWindow 内の新しい位置へ移動します。
old-index: ウィンドウ内の Pane の元の位置 (ゼロベース)。
new-index: ウィンドウ内の Pane の新しい位置 (ゼロベース)。
(メソッド)
(メソッド)
public | {PanedWindow.pane-count}:int |
PanedWindow 内のペインの数を返します。
戻り値
PanedWindow 内のペインの数 (整数) です。
(メソッド)
public | {PanedWindow.remove-pane-at-index index:int}:#Graphic |
PanedWindow の N 番目のペインを削除します。この場合、N はゼロベースのインデックスです。
index: ウィンドウ内の新しい Pane の位置 (ゼロベース)。
戻り値
PanedWindow から削除された Pane。
(メソッド)
public | {PanedWindow.set-pane-sizes sizes:{Array-of double}}:void |
全ペインのサイズを一度に設定します。
sizes: 数値の配列 (各ペインに 1 つ)。各数字は、左から右へ、各ペインの伸長度として割り当てられます。ペインのサイズはそれに合わせて設定されます。