ScrollbarChannel (クラス)
public ScrollbarChannel {inherits Canvas}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.CONTROL-UI-GENERIC.
直接継承しているサブクラス: StandardScrollbarChannel, SkinnableScrollbarChannel

ScrollbarUI に関連する channel を表現します。

説明

これは、ScrollbarUI オブジェクトのチャネルを表します。チャネル オブジェクトは、ユーザーが ScrollbarUI オブジェクトに関連する Scrollbar の値を変更するために使用するThumb を保持しています。
ScrollbarChannel.ui に関連する Scrollbar の値が変更される時はいつでも、メソッド ScrollbarChannel.note-value-changed が呼び出されます。このオブジェクトによって、Scrollbar の値を反映させるために Thumbが配置されます。

注意事項

ScrollbarUIのサブクラスを作成する場合、このクラスを使う必要はありません。ユーザーインターフェース オブジェクトの独自のチャンネルクラスを作成します。
このオブジェクトは、"ScrollbarChannel"のスタイル ルールを記述することでスタイル化することが出来ます。
導入: バージョン 6.0

コンストラクタ
default:このオブジェクトを作成します。
コンストラクタ public {ScrollbarChannel.default
ui:ScrollbarUI,
thumb-graphic:Graphic,
...
}

プロパティ
adjusted-minimum-thumb-length:Thumb の最小の長さです。
アクセサ public ScrollbarChannel.adjusted-minimum-thumb-length:Distance
bounds:このオブジェクトの境界です。
フィールド protected ScrollbarChannel.bounds:GRect ={GRect.empty}
cached-pixel-size:ピクセルのキャッシュサイズです。
フィールド public-get private-set ScrollbarChannel.cached-pixel-size:Distance
display-context:このオブジェクトに関連付けられている DisplayContext
非ローカル オプション public ScrollbarChannel.display-context:#DisplayContext
enabled?:Thumb が見えるかどうか設定します。
非ローカル オプション public ScrollbarChannel.enabled?:bool
max-inset:Scrollbar の最大値をあらわす終端から有効なチャネルの長さを端から減らします。
アクセサ public ScrollbarChannel.max-inset:Distance
セッター public ScrollbarChannel.max-inset:Distance
min-inset:Scrollbar の最小値をあらわす終端から有効なチャネルの長さを端から減らします。
アクセサ public ScrollbarChannel.min-inset:Distance
セッター public ScrollbarChannel.min-inset:Distance
minimum-thumb-length:Thumb の必要な最小の長さです。
非ローカル オプション public ScrollbarChannel.minimum-thumb-length:any
points-per-unit:この channel におけるユニット毎のポイントです。
フィールド public-get protected-set ScrollbarChannel.points-per-unit:double =0.0
scrollbar:ScrollbarChannel.ui が関連する Scrollbar です。
アクセサ public ScrollbarChannel.scrollbar:Scrollbar
style-element:スタイリングの目的のための、この Visual の "要素" や "型" です。
アクセサ public ScrollbarChannel.style-element:String
thumb:このオブジェクトに関連付けられている Thumb
フィールド public-get protected-set ScrollbarChannel.thumb:Thumb
thumb-pos:Scrollbar の最小値を表す channel の末端からの Thumb の位置です。
フィールド public-get protected-set ScrollbarChannel.thumb-pos:Distance =0m
thumb-size:Thumb の長さです。
フィールド public-get protected-set ScrollbarChannel.thumb-size:Distance =0m
ui:このオブジェクトが所属する ScrollbarUI です。
フィールド public constant ScrollbarChannel.ui:ScrollbarUI
vertical?:ScrollbarChannel.scrollbar が、垂直 Scrollbar かどうかを示します。
アクセサ public ScrollbarChannel.vertical?:bool
プロパティ 継承 Canvas: actual-height, actual-width, clip-child-shadows?, clonable-class?, points-per-pixel
プロパティ 継承 ShapeBox: as-Box
プロパティ 継承 AntialiasMixin: actual-oversample-factor, factor, layout-context, support-advanced-draw-operations?, use-host-rendering?
プロパティ 継承 SequenceBox: child-array, completely-clonable-children?, contains-valid?, graphical-children, invalid-epoch, layouts-have-valid-sequence-number?, option-register-proc, ordered-children, registered-option-keys, reverse-ordered-children
プロパティ 継承 ShapeRoot: as-ShapeRoot
プロパティ 継承 Visual: _style-element, 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
プロパティ 継承 ShapeContainerBase: as-Shape, shape-children
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 OptionListInterface: options-present-here
プロパティ 継承 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?, 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

クラス変数と定数
default-compliant-origin-elastic:このオブジェクトの長さや幅に使用されるエラスティックです。
public constant ScrollbarChannel.default-compliant-origin-elastic:OriginElastic ={make-origin-elastic last = {make-elastic minimum-size = 0pt, stretch-order = compliant-stretch-order } }

メソッド
create-thumb:このオブジェクトの Thumb を作成します。
public {ScrollbarChannel.create-thumb g:Graphic}:Thumb
get-height-preference:この Graphic の高さ設定を返します。
public {ScrollbarChannel.get-height-preference}:Dimension
get-thumb-size:このオブジェクトに関連する Thumb の幅と高さを計算します。
protected {ScrollbarChannel.get-thumb-size
}:(width:Distance, height:Distance)
get-width-preference:この Graphic の幅設定を返します。
public {ScrollbarChannel.get-width-preference}:Dimension
note-value-changed:ScrollbarChannel.uiに関連する Scrollbarの値が変更されたことを通知します。
public {ScrollbarChannel.note-value-changed}:void
reposition-thumb:ScrollbarChannel.scrollbar の値を反映させるために、このオブジェトに関連する Thumb を移動します。
public {ScrollbarChannel.reposition-thumb}:void
set-size:このオブジェクトにレイアウト幅と高さを代入します。
public {ScrollbarChannel.set-size lc:LayoutContext, bounds:GRect}:void
メソッド 継承 Canvas: add, add-at-index, allocate-layout-object, attempt-revalidate-layout, clone-appearance-helper, clone-children, constrain-height, constrain-width, draw, draw-internal, get-anchor, get-gui-path-to-child, get-xy, invalidate-shape-layout, move-to-xy, option-changed, set-anchor, set-child-index, set-child-index-after, set-child-index-before, shift-xy, size-changed
メソッド 継承 ShapeBox: add-shape-graphic-child, after-reposition, before-reposition, clear, get-current-draw-transformation, handle-crossing, note-attached, note-detaching, notify-option-children, on-drag-enter, on-pointer-enter, on-pointer-envelope-event, pick-child, register-options, request-draw, request-draw-rect, request-pointer-trace, shape-container-pick-child
メソッド 継承 AntialiasMixin: draw-antialiased, option-lookup, propagate-option-change, set-antialiased-size, set-antialiased-size-in-pixels
メソッド 継承 SequenceBox: add-at-index-with-layout, compare-children, end-pagination, find, graphical-child-visible-at, internal-remove-child, propagate-request-layout, swap-children, validate-layout-sequence-numbers
メソッド 継承 Visual: add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, 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
メソッド 継承 BasicBox: contains-point?, find-graphic-at, pointer-enter-occurred, pointer-leave-occurred
メソッド 継承 ShapeContainerBase: constrain-shape-layout-bounds, draw-shape-child, draw-shape-children, get-all-children-at-point, get-child-at-point, get-leaf-at-point, get-shape-bounds, get-shape-bounds-in-shape-root, get-shape-layout-bounds, get-shape-root, remove, set-shape-index, set-shape-index-after, set-shape-index-before, shape-container-fire-inferior-crossing-event, shape-container-handle-crossing, shape-container-pointer-enter-occurred, shape-container-pointer-leave-occurred
メソッド 継承 GraphicOptions: any-to-Distance, get-display-context
メソッド 継承 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
メソッド 継承 GetBoundsBox: get-bounds, get-elastic-bounds-into, get-nonparent-bounds-into, request-layout, validate-layout
メソッド 継承 DataBindingTarget: add-data-binding, get-data-binding, refresh-data-binding, remove-data-binding, unset-property, update-data-binding, validate-data-binding
メソッド 継承 EventTarget: accepts-event-class?, add-event-handler, event-handler-present?, remove-event-handler, verify-event
メソッド 継承 Box: find-test-children, get-delimited-child-text-selection, get-range-as-selected-text, get-visible-rect-in-root-into, make-gui-mark, search-next-here, search-prev-here
メソッド 継承 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-here, option-propagate-notify, option-set?, 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
メソッド 継承 BasicEventTarget: enqueue-event
メソッド 継承 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-inspection, paginate, paint-with-decorations, replace-with, search-next, search-prev, set-layout, start-pagination, xy-offset-to
メソッド 継承 InitRestArgParser: process-rest-args
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
default (コンストラクタ)
public {ScrollbarChannel.default
ui:ScrollbarUI,
thumb-graphic:Graphic,
...
}

このオブジェクトを作成します。

ui: この channel が関連する ScrollbarUI です。
thumb-graphic: thumb の中で使用する Graphic です。
導入: バージョン 6.0



プロパティ詳細
adjusted-minimum-thumb-length (アクセサ)
アクセサ public ScrollbarChannel.adjusted-minimum-thumb-length:Distance

Thumb の最小の長さです。

導入: バージョン 6.0


bounds (フィールド)
protected ScrollbarChannel.bounds:GRect ={GRect.empty}

このオブジェクトの境界です。

説明

これはキャッシュされた値で、このオブジェクトの最後に知られた境界を保持しています。ScrollbarChannel.set-size メソッドによって設定されます。
導入: バージョン 6.0


cached-pixel-size (フィールド)
public-get private-set ScrollbarChannel.cached-pixel-size:Distance

ピクセルのキャッシュサイズです。

注意事項

これは、DisplayContext が変更され、非 null の場合に、設定されます。
導入: バージョン 6.0


display-context (非ローカル オプション)
public ScrollbarChannel.display-context:#DisplayContext

このオブジェクトに関連付けられている DisplayContext

プログラミング注意事項

このオプションは、Curl グラフィック システム内での通信のために使用されます。これは、ユーザー コードで不用意に設定や設定解除を行わないでください。また、通常は、ユーザー コードで直接読み取るべきではありません。現在の DisplayContext が必要な場合は、Visual.get-display-context を呼び出すことによりフェッチしてください。

画面上のウィンドウまたは印刷されたページで表示可能なすべてのグラフィック階層は、そのルートにおいて、display-context オプションを DisplayContext オブジェクトに設定するオブジェクトを持つ必要があります。このオブジェクトは、グラフィック階層の表示に使用される表示媒体に適しています。つまり、オブジェクトは、display-context オプションの値が null から非 null DisplayContext オブジェクトに変更されるのをモニタリングすることにより、表示不可能なグラフィック階層に連結されていることを認識します。したがって、特定の動作を実行する必要のある Visual のサブクラスは、表示不可能なグラフィック階層に接続された場合、次のようなオプション宣言を含むことにより display-context オプションをモニタリングします。

{nonlocal-option public display-context:#DisplayContext
change handler}


ここで、change handler 内のコードは display-context オプションの現在値 (変数 display-context の値として、変更ハンドラ内にある) を取得し、null および非 null の値の間で行われる変更をモニタリングし、必要とされる動作を実行します。

ただし、このプログラミング熟語を使用するプログラマーは、グラフィカル表示を再配列する際、グラフィック階層からグラフィカル オブジェクトを一時的に分離し、これらを同じ階層に再アタッチすることが、割に一般的であることを理解するべきです。この処理により、一時的に分離されたオブジェクトは、display-context オブジェクトが null になり、再び非 null になるのを観察します。display-context オプションでの変更をモニタリングするコードは、この可能性を考慮に入れ、この状況における望ましくない動作の実行を回避しなくてはなりません。


enabled? (非ローカル オプション)
public ScrollbarChannel.enabled?:bool

Thumb が見えるかどうか設定します。

注意事項

false の場合、Thumb オブジェクトを隠します。そうでない場合は、そのオブジェクトを表示します。


max-inset (アクセサ)
アクセサ public ScrollbarChannel.max-inset:Distance
セッター public ScrollbarChannel.max-inset:Distance

Scrollbar の最大値をあらわす終端から有効なチャネルの長さを端から減らします。

導入: バージョン 6.0


min-inset (アクセサ)
アクセサ public ScrollbarChannel.min-inset:Distance
セッター public ScrollbarChannel.min-inset:Distance

Scrollbar の最小値をあらわす終端から有効なチャネルの長さを端から減らします。

導入: バージョン 6.0


minimum-thumb-length (非ローカル オプション)
public ScrollbarChannel.minimum-thumb-length:any

Thumb の必要な最小の長さです。

注意事項

これは、最小のサムの長さを必要とします。実際のサムの長さを取得するために、ScrollbarChannel.adjusted-minimum-thumb-length を呼び出してください。
導入: バージョン 6.0


points-per-unit (フィールド)
public-get protected-set ScrollbarChannel.points-per-unit:double =0.0

この channel におけるユニット毎のポイントです。

導入: バージョン 6.0


scrollbar (アクセサ)
アクセサ public ScrollbarChannel.scrollbar:Scrollbar

ScrollbarChannel.ui が関連する Scrollbar です。

導入: バージョン 6.0


style-element (アクセサ)
アクセサ public ScrollbarChannel.style-element:String

スタイリングの目的のための、この Visual の "要素" や "型" です。

説明

この実装によって Visual._style-elementの値が返されますが、通常は定数を返すためにオーバーライドされます。

オーバーライド

Visual のサブクラスのスタイルが他のオブジェクトと異なる場合、このゲッターは適切な文字列を返すようにオーバーライドされる必要があります。 慣例では,この文字列はクラス名または、オブジェクトを生成するマークアップの名前です。
オーバーライドでは、空の文字列でないかぎり、self._style-elementを返さなければなりません。
導入: バージョン 6.0


thumb (フィールド)
public-get protected-set ScrollbarChannel.thumb:Thumb

このオブジェクトに関連付けられている Thumb

注意事項

このオブジェクトのコンストラクタは、このオブジェクトを作成するのに ScrollbarChannel.create-thumb を呼び出します。
導入: バージョン 6.0


thumb-pos (フィールド)
public-get protected-set ScrollbarChannel.thumb-pos:Distance =0m

Scrollbar の最小値を表す channel の末端からの Thumb の位置です。

導入: バージョン 6.0


thumb-size (フィールド)
public-get protected-set ScrollbarChannel.thumb-size:Distance =0m

Thumb の長さです。

導入: バージョン 6.0


ui (フィールド)
public constant ScrollbarChannel.ui:ScrollbarUI

このオブジェクトが所属する ScrollbarUI です。

導入: バージョン 6.0


vertical? (アクセサ)
アクセサ public ScrollbarChannel.vertical?:bool

ScrollbarChannel.scrollbar が、垂直 Scrollbar かどうかを示します。

導入: バージョン 6.0



クラス変数と定数の詳細
default-compliant-origin-elastic (クラス定数)
public constant ScrollbarChannel.default-compliant-origin-elastic:OriginElastic ={make-origin-elastic last = {make-elastic minimum-size = 0pt, stretch-order = compliant-stretch-order } }

このオブジェクトの長さや幅に使用されるエラスティックです。

注意事項

ScrollbarChannel.vertical?trueの場合、このエラスティックは高さに使用されます。そうでなければ、ScrollbarChannel の幅に使用されます。
導入: バージョン 6.0




メソッド詳細
create-thumb (メソッド)
public {ScrollbarChannel.create-thumb g:Graphic}:Thumb

このオブジェクトの Thumb を作成します。

導入: バージョン 6.0


get-height-preference (メソッド)
public {ScrollbarChannel.get-height-preference}:Dimension

この Graphic の高さ設定を返します。

lc: このレイアウト ネゴシエーションに対して有効な LayoutContext

戻り値

オブジェクトの高さ設定を表す Dimension。この Dimension は、後続のレイアウト処理中に OriginElastic に変換されます。

オーバーライド

このメソッドは、Graphic のサブクラス内で定義する必要があります。

このメソッドをオーバライドするクラスでは必ず Dimension を返すようにして、これで必要な垂直軸に沿ったスペースをそのオブジェクトの起点との関係を含めて表します。実際には、これはこのメソッドが適切な OriginElastic または Dimension を返すことを意味します。Dimension の場合は、「次元から OriginElastics への変換」で説明する変換規則に従って、適切な OriginElastic に変換されます。


get-thumb-size (メソッド)
protected {ScrollbarChannel.get-thumb-size
}:(width:Distance, height:Distance)

このオブジェクトに関連する Thumb の幅と高さを計算します。

導入: バージョン 6.0


get-width-preference (メソッド)
public {ScrollbarChannel.get-width-preference}:Dimension

この Graphic の幅設定を返します。

lc: このレイアウト ネゴシエーションに対して有効な LayoutContext

戻り値

このオブジェクトの幅設定を表す Dimension。この Dimension は、後続のレイアウト処理中に OriginElastic に変換されます。

オーバーライド

このメソッドは、Graphic のサブクラスで定義する必要があります。

このメソッドをオーバライドするクラスでは必ず Dimension を返すようにして、これで必要な水平軸に沿ったスペースをそのオブジェクトの起点との関係を含めて表します。実際には、これはこのメソッドが適切な OriginElastic または Dimension を返すことを意味します。Dimension の場合は、「次元から OriginElastics への変換」で説明する変換規則に従って、適切な OriginElastic に変換されます。


note-value-changed (メソッド)
public {ScrollbarChannel.note-value-changed}:void

ScrollbarChannel.uiに関連する Scrollbarの値が変更されたことを通知します。

オーバーライド

ScrollbarChannel.ui オブジェクトに関連する Scrollbar の現在の値を反映するために、このチャネルのサムを適用するこのメソッドをサブクラスはオーバーライドする必要があります。
導入: バージョン 6.0


reposition-thumb (メソッド)
public {ScrollbarChannel.reposition-thumb}:void

ScrollbarChannel.scrollbar の値を反映させるために、このオブジェトに関連する Thumb を移動します。

導入: バージョン 6.0


set-size (メソッド)
public {ScrollbarChannel.set-size lc:LayoutContext, bounds:GRect}:void

このオブジェクトにレイアウト幅と高さを代入します。

説明

このオブジェクトで set-size を呼び出すと、オブジェクトのレイアウト サイズを代入し、オブジェクトのレイアウト ネゴシエーションを完了します。グラフィック階層のすべてのオブジェクトにレイアウト サイズが代入された後で階層のレイアウト ネゴシエーションが完了します。
lc: このレイアウト ネゴシエーションに対して有効な LayoutContext
bounds: このオブジェクトの境界ボックスの左右および上下の範囲をオブジェクトの起点から相対的に示す GRect

プログラミング注意事項

このメソッドは、オブジェクトのグラフィカルな親によって呼び出されます。

オーバーライド

既定のメソッド Graphic.set-size は何も行ないません。Graphicのサブクラスはこのメソッドをオーバーライドして、ここで提供した情報をインターセプトできます。