EllipticalArcGraphic (クラス)
public EllipticalArcGraphic {inherits SimpleShape}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.

楕円、または (パイの形のような) 楕円のウェッジ。

注意事項

CURL.GUI.SHAPESで定義されているクラスの使用も検討して下さい。それらのクラスは、このクラスでは実現が困難な機能を提供しています。
このオブジェクトは、"EllipticalArcGraphic"のスタイル ルールを記述することによりスタイル化することが出来ます。

コンストラクタ
clone-appearance-from:新規オブジェクトを生成するためのコンストラクタ。
コンストラクタ protected {EllipticalArcGraphic.clone-appearance-from}
default:新しい EllipticalArcGraphic を初期化します。キーワード パラメータ start および wedge-size を使用して、対応するローカル オプション EllipticalArcGraphic.start および EllipticalArcGraphic.wedge-size を設定します。必要に応じて、残りの引数を他のグラフィック オプションとイベント ハンドラ用に使用します。
コンストラクタ public {EllipticalArcGraphic.default ...}

プロパティ
clonable-class?:当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。
アクセサ protected EllipticalArcGraphic.clonable-class?:bool
start:ウェッジの開始位置 (EllipticalArcGraphic.angle オプションとの相対) を指定します。
ローカル オプション public EllipticalArcGraphic.start:Angle =0degrees
style-element:スタイリングの目的のための、この Visual の "要素" や "型" です。
アクセサ public EllipticalArcGraphic.style-element:String
wedge-size:ウェッジの時計回り方向の広がりを示す、 EllipticalArcGraphic.start オプションとの相対角度。指定されなかった場合の既定値は 360 度です。
ローカル オプション public EllipticalArcGraphic.wedge-size:Angle =0degrees
プロパティ 継承 SimpleShape: color, stretch?
プロパティ 継承 NewShape: angle, display-context, edit-selected?, editable?, height, width
プロパティ 継承 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?, enabled?, graphic-selectable, 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
プロパティ 継承 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 {EllipticalArcGraphic.clone-appearance-helper
fixup:#{proc-type {Visual, Visual}:Visual}
}:Visual
contains-point?:指定されたポイントで発生するイベントが、ターゲット ボックス (BasicBox.contains-point? を参照) か、またはそのグラフィカルな子のどちらに関するものかを判定します。
public {EllipticalArcGraphic.contains-point?}:bool
shape-draw:描画の代わりにこれをオーバーライドします。選択時に特別な描画方法がある場合に限り、描画をオーバーライドします。
public {EllipticalArcGraphic.shape-draw
renderer2d:Renderer2d,
x1:Distance,
y1:Distance,
x2:Distance,
y2:Distance
}:void
メソッド 継承 NewShape: draw, draw-shadow, get-height-preference, get-width-preference
メソッド 継承 Graphic: after-reposition, attempt-revalidate-layout, before-reposition, constrain-height, constrain-width, create-pagination-state, detach, draw-range-as-selected, 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 {EllipticalArcGraphic.clone-appearance-from}

新規オブジェクトを生成するためのコンストラクタ。

other: クローンする EllipticalArcGraphic

注意事項

クローン化をサポートする EllipticalArcGraphic のサブクラスには、このコンストラクタを呼び出すコンストラクタが必要です。ただし、これらのコンストラクタがそれぞれ自身のオプションをクローン化する場合は、その限りではありません。


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

新しい EllipticalArcGraphic を初期化します。キーワード パラメータ start および wedge-size を使用して、対応するローカル オプション EllipticalArcGraphic.start および EllipticalArcGraphic.wedge-size を設定します。必要に応じて、残りの引数を他のグラフィック オプションとイベント ハンドラ用に使用します。




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

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

オーバーライド

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


start (ローカル オプション)
public EllipticalArcGraphic.start:Angle =0degrees

ウェッジの開始位置 (EllipticalArcGraphic.angle オプションとの相対) を指定します。



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

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

説明

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

オーバーライド

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


wedge-size (ローカル オプション)
public EllipticalArcGraphic.wedge-size:Angle =0degrees

ウェッジの時計回り方向の広がりを示す、 EllipticalArcGraphic.start オプションとの相対角度。指定されなかった場合の既定値は 360 度です。






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

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

オーバーライド

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


contains-point? (メソッド)
public {EllipticalArcGraphic.contains-point?}:bool

指定されたポイントで発生するイベントが、ターゲット ボックス (BasicBox.contains-point? を参照) か、またはそのグラフィカルな子のどちらに関するものかを判定します。

x, y: ポイントの座標。ターゲット オブジェクトの起点を基準として表現します。

プログラミング注意事項

このメソッドは通常、ポインタ イベントを子のオブジェクトに転送するかどうかを判断するために、ターゲット オブジェクトのグラフィカルな親によって呼び出されます。

オーバーライド

ポイントがオブジェクトの境界ボックス内にある場合にのみ、既定のメソッドは true を返します。円などの複雑な形状を含むオブジェクトは、最初に {super.contains-point? x, y} を呼び出し、その呼び出しにより false が返された場合に false を返すメソッドで、このメソッドをオーバーライドします。その呼び出しが true を返した場合、オブジェクトに実際にポイントを保持しているかどうかを判定するための計算をメソッドでさらに実行します。このようなスタイルに従うことにより、メソッドは非効率的な計算の前に効率的な bounding-box チェックを行います。このような規律が大切なのは、オブジェクトから離れた (x,y) 位置から contains-point? が頻繁に呼び出されるためです。


shape-draw (メソッド)
public {EllipticalArcGraphic.shape-draw
renderer2d:Renderer2d,
x1:Distance,
y1:Distance,
x2:Distance,
y2:Distance
}:void

描画の代わりにこれをオーバーライドします。選択時に特別な描画方法がある場合に限り、描画をオーバーライドします。