(クラス)
default: | 新しい DiscreteGraphicSelectionContext を作成します。 |
コンストラクタ public | {DiscreteGraphicSelectionContext.default} |
アクセサ public DiscreteGraphicSelectionContext.container:
Graphic
draw-style: | 選択された Graphic または Shape をどのように描画するかを指定します。 |
フィールド public DiscreteGraphicSelectionContext.selection-rectangle-enabled?:
bool =true
public | {DiscreteGraphicSelectionContext.create-command}:#Command |
protected | {DiscreteGraphicSelectionContext.internal-fire-event-at-selectable}:void |
public | {DiscreteGraphicSelectionContext.note-dragscroll-continued}:void |
public | {DiscreteGraphicSelectionContext.note-dragscroll-ended}:void |
public | {DiscreteGraphicSelectionContext.note-dragscroll-started}:void |
public | {DiscreteGraphicSelectionContext.on-drag-started}:void |
public | {DiscreteGraphicSelectionContext.on-pointer-press}:void |
public | {DiscreteGraphicSelectionContext.on-pointer-release}:void |
public | {DiscreteGraphicSelectionContext.overdraw-selection}:void |
public | {DiscreteGraphicSelectionContext.overdraw-shape-selection}:bool |
public | {DiscreteGraphicSelectionContext.select-all}:void |
メソッド 継承 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-enter, on-drag-leave, on-drag-over, on-drag-pointer, 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-gui-event, on-input-method-event, on-inspection, on-key-event, on-key-press, on-pointer-button, on-pointer-crossing, on-pointer-enter, on-pointer-envelope-event, on-pointer-event, on-pointer-leave, 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-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
(コンストラクタ)
public | {DiscreteGraphicSelectionContext.default} |
新しい DiscreteGraphicSelectionContext を作成します。
selection-rectangle-enabled?: このコンテキストで、選択された四角形のドラッグアウトによる選択をサポートする必要があるかどうかを示します。
multiple-selection-enabled?: このコンテキストが複数アイテムの選択をサポートするかどうかを指定します。
(アクセサ)
アクセサ public DiscreteGraphicSelectionContext.container:
Graphic この SelectionContext が適用される Graphic。
説明
ネストされた
SelectionContext のメンバではない、この
Graphic の内容 (グラフィカルな子を含む) は、いずれもオブジェクトによる選択候補になります。
(フィールド)
選択された Graphic または Shape をどのように描画するかを指定します。
説明
(フィールド)
public DiscreteGraphicSelectionContext.selection-rectangle-enabled?:
bool =true
ドラッグ操作で複数選択用の四角形を作成するかどうかを示します。
(メソッド)
public | {DiscreteGraphicSelectionContext.create-command}:#Command |
時間をかけてコマンドを作成します。
説明
オーバーライド
要求されたときにこの
CommandContext で動的にインスタンス化する必要があるコマンドの場合は、このメソッドをオーバーライドします。スーパークラスから動的に作成されたコマンドも同様に継承したい場合は、必ずこのメソッドのスーパークラスの実装も呼び出してください。
なお、コマンドは、クラスのコンストラクタでメソッド
CommandContext.add-command を呼び出して指定することもできます。パフォーマンスの理由と、サブクラスでコマンドをオーバーライドできるようにするために、このメソッドを代わりに使用することを推奨します。
(メソッド)
protected | {DiscreteGraphicSelectionContext.internal-fire-event-at-selectable}:void |
(メソッド)
public | {DiscreteGraphicSelectionContext.note-dragscroll-continued}:void |
ドラッグスクロール動作が続いていることを記録します。
x: 操作が連続して行われる、水平位置です。
y: 操作が続いている垂直のポイントです。
説明
このメソッドは、マウスが移動するときに呼び出されます。または、自動スクロールのタイマーが開始された場合は、それが発生する定期間隔で呼び出されます。
(メソッド)
public | {DiscreteGraphicSelectionContext.note-dragscroll-ended}:void |
ドラッグスクロール動作が終了したことを記録します。
(メソッド)
public | {DiscreteGraphicSelectionContext.note-dragscroll-started}:void |
ドラッグスクロール動作が開始されたことを記録します。
x: 操作が開始される、水平位置です。
y: 操作が開始された垂直のポイントです。
(メソッド)
public | {DiscreteGraphicSelectionContext.on-drag-started}:void |
(メソッド)
public | {DiscreteGraphicSelectionContext.on-pointer-press}:void |
(メソッド)
public | {DiscreteGraphicSelectionContext.on-pointer-release}:void |
(メソッド)
public | {DiscreteGraphicSelectionContext.overdraw-selection}:void |
この選択コンテキストに存在する g の上に、選択アフォーダンスを描画します。
説明
このメソッドは、Curl の描画メカニズムにより呼び出されます。通常は、直接呼び出す必要はありません。
オーバーライド
このメソッドの実装では、gc で設定された clipping-rectangle が g のセル境界になるように設定される必要があることに注意してください。これにより、SelectionContext は g's のボーダーとマージン、ならびに g の境界の上に選択アフォーダンスを描画できるようになります。このメソッドの実装では、特に g で関連する描画メソッドを呼び出す前に、さらにクリップを実行する方が適した場合があります。
(メソッド)
public | {DiscreteGraphicSelectionContext.overdraw-shape-selection}:bool |
この選択コンテキストに存在する s の上での描画選択のアフォーダンス。
戻り値
Shape が選択されたかどうかを示すbool。Shape が選択されたため上書きされた場合は true になります。
説明
このメソッドは、Curl の描画メカニズムにより呼び出されます。通常は、直接呼び出す必要はありません。
注意事項
(メソッド)
public | {DiscreteGraphicSelectionContext.select-all}:void |