Fill (クラス)
public Fill {inherits StretchyGraphic}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.
直接継承しているサブクラス: SkinnableControlFill, SkinnableFill, ImageGraphic, Sash, AppletGraphic, DefaultPixmapTreeIcon

グラフィック ディスプレイの空き領域を埋める、パディングを提供します。

説明

Fill オブジェクトは、余分なスペースを埋めるために容易に伸長されるよう意図されています。これにより、Fill の配置場所の隣にある別のオブジェクトが伸長されるのを防ぎます。

既定の Fill オブジェクトは、高さと幅の両方に対して伸長可能性の高い Elastic を持ちます (このエラスティックのユーザー設定サイズは、すべての場合で 0 ですが、伸長順位compliant-stretch-order であり、伸長可能性は高くなっています)。

明示的に幅と高さの値を指定することにより、FillElastic 関連パラメータをオーバーライドできます。

注意事項

このオブジェクトは、"Fill"のスタイル ルールを記述することによりスタイル化することが出来ます。

コンストラクタ
clone-appearance-from:このタイプの新しいオブジェクトを作成するために Visual.clone-appearance が使用するコンストラクタ。
コンストラクタ protected {Fill.clone-appearance-from other:Fill}
default:新しい Fill オブジェクトを作成します。
コンストラクタ public {Fill.default ...}

プロパティ
clonable-class?:当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。
アクセサ protected Fill.clonable-class?:bool
style-element:Fill を初期化します。
アクセサ public Fill.style-element:String
プロパティ 継承 Graphic: avoid-page-break?, background, border-color, border-spec, border-style, border-width, cell-border-spec, cell-border-width, cell-margin, clip-child-shadows?, 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, completely-clonable-children?, 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
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 OptionListInterface: option-register-proc, options-present-here, registered-option-keys

メソッド
clone-appearance-helper:クローンを作成し、クローン自体を返します。
protected {Fill.clone-appearance-helper
fixup:#{proc-type {Visual, Visual}:Visual}
}:Visual
contains-point?:このクラスのオブジェクトでは、{contains-point? x, y} メソッドは、常に false を返します。これらはイベントについて通知されないからです。
public {Fill.contains-point? x:Distance, y:Distance}:bool
メソッド 継承 StretchyGraphic: get-height-preference, get-width-preference
メソッド 継承 Graphic: after-reposition, attempt-revalidate-layout, before-reposition, constrain-height, constrain-width, create-pagination-state, detach, draw, draw-range-as-selected, draw-shadow, end-pagination, find-ancestor, find-graphic-at, 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-range-as-selected-text, get-top-left-in-ancestor, get-visible-bounds-into, graphical-child-visible-at, make-gui-mark, on-drag-enter, on-inspection, on-pointer-enter, option-changed, paginate, paint-with-decorations, pointer-enter-occurred, pointer-leave-occurred, replace-with, request-draw, request-draw-rect, request-layout, request-pointer-trace, search-next, search-next-here, search-prev, search-prev-here, set-layout, set-size, start-pagination, xy-offset-to
メソッド 継承 Visual: add, add-from-init-args, animate, change-cursor, clear, clonable-appearance?, clone-appearance, find-test-children, get-focus-manager, get-gui-path-to-child, 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-attached, note-caret-position, note-detaching, on-drag-leave, on-pointer-envelope-event, 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
メソッド 継承 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
メソッド 継承 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
メソッド 継承 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, notify-option-children, option-change-notify, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, register-options, 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
メソッド 継承 InitRestArgParser: process-rest-args
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
clone-appearance-from (コンストラクタ)
protected {Fill.clone-appearance-from other:Fill}

このタイプの新しいオブジェクトを作成するために Visual.clone-appearance が使用するコンストラクタ。



default (コンストラクタ)
public {Fill.default ...}

新しい Fill オブジェクトを作成します。

...: 残余引数は、グラフィックのオプション設定やイベント ハンドラです。



プロパティ詳細
clonable-class? (アクセサ)
アクセサ protected Fill.clonable-class?:bool

当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。

オーバーライド

既定の実装は false を返します。クローン化機能を提供するクラスは、{type-of self} == {compile-time-type-of self} を返すためには、このゲッターをオーバーライドする必要があります。クローン化可能な Visual が必ずしもクローン化可能であるとは限らないので、単に true を返すだけでは正しくありません。
このメソッドをオーバーライドする場合は、Visual.clone-appearance-helper もオーバーライドする必要があります。


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

Fill を初期化します。

Fill を使用するさまざまな方法について、次の例で示します。


{VBox
    "A rather long and wordy line of text.",
    {HBox "Left", {Fill}},
    {HBox {Fill}, "Center", {Fill}},
    {HBox {Fill}, "Right"},
    {HBox {Fill width=0.5in}, "Indented", {Fill}},
    {HBox
        {Fill width=0.5in, background="cyan"},
        "Indented with color",
        {Fill}}}





メソッド詳細
clone-appearance-helper (メソッド)
protected {Fill.clone-appearance-helper
fixup:#{proc-type {Visual, Visual}:Visual}
}:Visual

クローンを作成し、クローン自体を返します。

オーバーライド

既定の実装はエラーをスローします。クローン化機能を提供するクラスは、
{{compile-time-type-of self}.clone-appearance-from self, fixup}
を返すためには、このゲッターをオーバーライドする必要があります。


contains-point? (メソッド)
public {Fill.contains-point? x:Distance, y:Distance}:bool

このクラスのオブジェクトでは、{contains-point? x, y} メソッドは、常に false を返します。これらはイベントについて通知されないからです。