DefaultPixmapTreeIcon (クラス)
public DefaultPixmapTreeIcon {inherits Fill, DefaultTreeIcon}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.CONTROL-LOGICAL.

DefaultTreeItem で使用されるピクスマップベースのアイコン。

説明

このクラスは、その関連するノードがリーフ ノードである場合、その既定のピクスマップを表示します。このクラスは、2 つのオプションのピクスマップも提供し、関連ノードが子を持つ場合、および展開される場合に別の表示を指定します。
このオブジェクトの既定の horigin および vorigin の値は「center」です。このオブジェクトの配置および起点の重要性に関する詳細については、DefaultTreeItem を参照してください。

コンストラクタ
default:このオブジェクトを作成します。
コンストラクタ public {DefaultPixmapTreeIcon.default
pixmap:Pixmap,
parent-pixmap:#Pixmap = null,
expanded-parent-pixmap:#Pixmap = null,
...
}

プロパティ
expanded-parent-pixmap:関連ノードが子を持ち、展開される場合に、このアイコンに表示される Pixmap
アクセサ public DefaultPixmapTreeIcon.expanded-parent-pixmap:#Pixmap
セッター public DefaultPixmapTreeIcon.expanded-parent-pixmap:#Pixmap
parent-pixmap:関連ノードが子を持つ場合に、このアイコンに表示される Pixmap
アクセサ public DefaultPixmapTreeIcon.parent-pixmap:#Pixmap
セッター public DefaultPixmapTreeIcon.parent-pixmap:#Pixmap
pixmap:この項目のために表示される既定の Pixmap
アクセサ public DefaultPixmapTreeIcon.pixmap:Pixmap
セッター public DefaultPixmapTreeIcon.pixmap:Pixmap
プロパティ 継承 Fill: clonable-class?, style-element
プロパティ 継承 DefaultTreeIcon: item
プロパティ 継承 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

メソッド
constrain-height:指定した高さの制約を受けた場合にこの Graphic の幅設定を返します。
public {DefaultPixmapTreeIcon.constrain-height
lc:LayoutContext,
ascent:Distance,
descent:Distance
}:Dimension
constrain-width:指定した高さの制約を受けた場合にこの Graphic の高さ設定を返します。
public {DefaultPixmapTreeIcon.constrain-width
lc:LayoutContext,
lextent:Distance,
rextent:Distance
}:Dimension
draw:このオブジェクトの可視表現を描画します。
public {DefaultPixmapTreeIcon.draw renderer2d:Renderer2d}:void
get-height-preference:この Graphic の高さ設定を返します。
public {DefaultPixmapTreeIcon.get-height-preference}:Dimension
get-width-preference:この Graphic の幅設定を返します。
public {DefaultPixmapTreeIcon.get-width-preference}:Dimension
メソッド 継承 Fill: clone-appearance-helper, contains-point?
メソッド 継承 DefaultTreeIcon: refresh
メソッド 継承 Graphic: after-reposition, attempt-revalidate-layout, before-reposition, create-pagination-state, detach, 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



コンストラクタ詳細
default (コンストラクタ)
public {DefaultPixmapTreeIcon.default
pixmap:Pixmap,
parent-pixmap:#Pixmap = null,
expanded-parent-pixmap:#Pixmap = null,
...
}

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

pixmap: DefaultPixmapTreeIcon.pixmap の初期値。
parent-pixmap: DefaultPixmapTreeIcon.parent-pixmap の初期値。
expanded-parent-pixmap: DefaultPixmapTreeIcon.expanded-parent-pixmap の初期値。
...: このオブジェクトのオプション設定およびイベント ハンドラ。



プロパティ詳細
expanded-parent-pixmap (アクセサ)
アクセサ public DefaultPixmapTreeIcon.expanded-parent-pixmap:#Pixmap
セッター public DefaultPixmapTreeIcon.expanded-parent-pixmap:#Pixmap

関連ノードが子を持ち、展開される場合に、このアイコンに表示される Pixmap

説明

null の場合、代わりに DefaultPixmapTreeIcon.parent-pixmap が表示されます。parent-pixmapnull の場合、DefaultPixmapTreeIcon.pixmap が表示されます。


parent-pixmap (アクセサ)
アクセサ public DefaultPixmapTreeIcon.parent-pixmap:#Pixmap
セッター public DefaultPixmapTreeIcon.parent-pixmap:#Pixmap

関連ノードが子を持つ場合に、このアイコンに表示される Pixmap

説明

null の場合、代わりに DefaultPixmapTreeIcon.pixmap が表示されます。


pixmap (アクセサ)
アクセサ public DefaultPixmapTreeIcon.pixmap:Pixmap
セッター public DefaultPixmapTreeIcon.pixmap:Pixmap

この項目のために表示される既定の Pixmap






メソッド詳細
constrain-height (メソッド)
public {DefaultPixmapTreeIcon.constrain-height
lc:LayoutContext,
ascent:Distance,
descent:Distance
}:Dimension

指定した高さの制約を受けた場合にこの Graphic の幅設定を返します。

lc: このレイアウト ネゴシエーションに対して有効な LayoutContext
ascent, descent: 高さの制約。この Graphic の起点からの相対的な上昇および下降の距離で表されます。

戻り値

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

オーバーライド

既定のメソッド Graphic.constrain-height は、単に Graphic.get-width-preference を呼び出します。このメソッドは、オブジェクトが幅設定を計算する際に高さの制約を考慮しなくてもいい場合はオーバーライドする必要がありません。

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

重要:このメソッドのオーバーライド実装には、レイアウト ネゴシエーションが確実にグラフィック階層全体に適用されるように、スーパークラス実装の呼び出しを含める必要があります。


constrain-width (メソッド)
public {DefaultPixmapTreeIcon.constrain-width
lc:LayoutContext,
lextent:Distance,
rextent:Distance
}:Dimension

指定した高さの制約を受けた場合にこの Graphic の高さ設定を返します。

lc: このレイアウト ネゴシエーションに対して有効な LayoutContext
lextent, rextent: 幅の制約。起点からの左と右の相対距離で表されます。

戻り値

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

オーバーライド

既定のメソッド Graphic.constrain-width は、単に Graphic.get-height-preference を呼び出します。このメソッドは、オブジェクトが高さ設定を計算する際に幅制約を考慮しなくてもいい場合はオーバーライドする必要がありません。

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

重要:このメソッドのオーバーライド実装には、レイアウト ネゴシエーションが確実にグラフィック階層全体に適用されるように、スーパークラス実装の呼び出しを含める必要があります。


draw (メソッド)
public {DefaultPixmapTreeIcon.draw renderer2d:Renderer2d}:void

このオブジェクトの可視表現を描画します。

renderer2d: このオブジェクトを使用してそれ自身を描画する Renderer2d

オーバーライド

既定のメソッド Graphic.draw は何もしません。Graphic のサブクラスは、必要とされる描画の操作を実行するコードでこのメソッドをオーバーライドしなければなりません。
このメソッドをオーバーライドする場合は、再描画が必要となる時はいつでも、描画する Graphic の範囲が有効でない事を確認しなければなりません。たとえば、データの値を更新するために描画をする時は、データの値が変わる時にアプレットは必ず Graphic.request-drawGraphic.request-draw-rectを呼び出さなければなりません。


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

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

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

戻り値

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

オーバーライド

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

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


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

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

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

戻り値

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

オーバーライド

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

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