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

アンチエイリアス処理を使用して描画される子 Graphic を 0 または 1 つ保持できるコンテナ。

説明

AntialiasedFrame は、その中に含まれる Graphic のアンチエイリアス処理を考慮する AntialiasMixin の実装です。
アンチエイリアス処理の実装の詳細については、AntialiasedFrame の親クラスである AntialiasMixin を参照してください。

注意事項

Curl RTE の バージョン 6.0 はアプレットを通じて アンチエイリアス をサポートし、このクラスを不必要なものにする場合があります。set-rendering-mode を 引数 RenderingMode.high-quality を伴って呼び出し、true が返却されると、全てのレンダリングが アンチエイリアス 処理されます。このモードは Windows と Mac では利用可能ですが、Linux では利用できない場合があります。
アンチエイリアス が実際に有効な場合(AntialiasedFrame.factorAntialiasFactor.off 以外に設定されている場合)、AntialiasedFrame は通常の方法で背景を描画しません。多くの場合、透明でない背景を AntialiasedFrame.background に適用することが最適です。
アンチエイリアスに関する情報については、AntialiasMixin (AntialiasedFrame の親クラス) に関するクラス ドキュメントを参照してください。


例: AntialiasedFrame 内に EllipseGraphic を配置
{AntialiasedFrame
    height = 2in,
    background = {FillPattern.get-white},
    factor = AntialiasFactor.low,
    {VBox
        hstretch? = true,
        {EllipseGraphic
            fill-color = {FillPattern.get-blue}
        },
        {center
            {big
            An ellipse rendered using antialiasing.
            }
        }
    }
}

コンストラクタ
default:新しい AntialiasedFrame を作成します。
コンストラクタ public {AntialiasedFrame.default
factor:AntialiasFactor = AntialiasFactor.low,
use-host-rendering?:bool = true,
support-advanced-draw-operations?:bool = false,
...
}

プロパティ
style-element:スタイリングの目的のための、この Visual の "要素" や "型" です。
アクセサ public AntialiasedFrame.style-element:String
プロパティ 継承 Frame: clonable-class?, halign, halign-spec, hstretch?, hstretch?-spec, valign, valign-spec, vstretch?, vstretch?-spec
プロパティ 継承 AntialiasMixin: actual-oversample-factor, factor, layout-context, support-advanced-draw-operations?, use-host-rendering?
プロパティ 継承 BaseFrame: child, completely-clonable-children?, graphical-children, ordered-children, reverse-ordered-children, width-first?
プロパティ 継承 Visual: _style-element, cursor, data-source, dragee, font-size, input-method-enabled?, input-method-keyboard-mode, name, options, options-present-here, style-class, style-manager, style-options, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 Box: clip-child-shadows?
プロパティ 継承 OptionListInterface: option-register-proc, registered-option-keys
プロパティ 継承 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?, display-context, enabled?, graphic-selectable, height, horigin, is-paginating?, layout, margin, opaque-to-events?, option-parent, outside-margin, pagination-state, parent, selection-context, shadow-color, shadow-spec, visible?, vorigin, width

メソッド
draw:このオブジェクトの可視表現を描画します。
public {AntialiasedFrame.draw renderer2d:Renderer2d}:void
draw-internal:AntialiasMixin の内容をレンダリングします。
protected {AntialiasedFrame.draw-internal
renderer2d:Renderer2d,
cell-bounds:GRect,
bounds:GRect
}:void
set-size:このオブジェクトに、レイアウト ネゴシエーションが終了したことを通知します。
public {AntialiasedFrame.set-size lc:LayoutContext, bounds:GRect}:void
メソッド 継承 Frame: add, clone-appearance-helper, remove-child
メソッド 継承 AntialiasMixin: draw-antialiased, option-lookup, propagate-option-change, set-antialiased-size, set-antialiased-size-in-pixels
メソッド 継承 BaseFrame: add-internal, after-reposition, allocate-layout-object, attempt-revalidate-layout, before-reposition, compute-child-bounds, compute-parent-elastic, constrain-height, constrain-width, end-pagination, get-height-preference, get-text, get-width-preference, install-child-bounds, internal-remove-child, note-attached, note-detaching, notify-option-children, paginate, pick-child, propagate-request-layout, register-options
メソッド 継承 Visual: add-from-init-args, add-option, add-style-option, animate, change-cursor, clonable-appearance?, clone-appearance, get-focus-manager, get-layout-context, get-test-parent, get-test-property, 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, release-key-focus, remove-option, remove-style-option, 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, handle-crossing, on-pointer-envelope-event, pointer-enter-occurred, pointer-leave-occurred
メソッド 継承 GraphicOptions: any-to-Distance, get-display-context
メソッド 継承 GuiEventTarget: 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-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: clear, compare-children, find-test-children, get-delimited-child-text-selection, get-range-as-selected-text, get-visible-rect-in-root-into, graphical-child-visible-at, make-gui-mark, search-next-here, search-prev-here
メソッド 継承 OptionListInterface: 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-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-origin-in-graphical-ancestor, get-origin-in-root, get-pagination-state, get-top-left-in-ancestor, get-visible-bounds-into, on-drag-enter, on-inspection, on-pointer-enter, option-changed, paint-with-decorations, replace-with, request-draw, request-draw-rect, request-pointer-trace, 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 {AntialiasedFrame.default
factor:AntialiasFactor = AntialiasFactor.low,
use-host-rendering?:bool = true,
support-advanced-draw-operations?:bool = false,
...
}

新しい AntialiasedFrame を作成します。

factor: オーバーサンプリング係数の初期値。この値は、AntialiasedFrame.factor アクセッサで変更できます。アンチエイリアス処理、およびこの係数の作用については、AntialiasMixin のクラスの説明を参照してください。
use-host-rendering?: 含まれているグラフィックに対して標準ホスト レンダラを使用するかどうかを決定します。詳細については、AntialiasMixin.use-host-rendering? を参照してください。
support-advanced-draw-operations?: 含まれているグラフィックの描画に使用されるレンダラが高度な DrawOperation をサポートするかどうかを決定します。詳細については、AntialiasMixin.use-host-rendering? を参照してください。

注意事項

このコンストラクタが受け取るパラメータは、そのスーパークラス Frame のパラメータと同一です。唯一の例外は、上で説明した factor キーワード引数です。

その他のすべてのパラメータについては、Frame の説明を参照してください。



プロパティ詳細
style-element (アクセサ)
アクセサ public AntialiasedFrame.style-element:String

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

説明

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

オーバーライド

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





メソッド詳細
draw (メソッド)
public {AntialiasedFrame.draw renderer2d:Renderer2d}:void

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

説明

AntialiasedFrame によってオーバーライドされ、オフスクリーンDrawable へのレンダリングを実行します(オフスクリーン Drawable については、AntialiasedFrame を参照してください)。

AntialiasedFrame では、このメソッドは、オフスクリーン Renderer2d に適切な変換および背景を設定する役割を果たします。次に、その子の Graphic.draw メソッドを呼び出して、レンダリング用にオフスクリーン Renderer2d を渡します。最後に、このレンダリングの結果が、ダウンサンプリング用の scale 画像フィルタを使って、画面にコピーされます。

draw メソッド自体の詳細については、Graphic.draw を参照してください。


draw-internal (メソッド)
protected {AntialiasedFrame.draw-internal
renderer2d:Renderer2d,
cell-bounds:GRect,
bounds:GRect
}:void

AntialiasMixin の内容をレンダリングします。

renderer2d: この AntialiasMixin と関連したオフスクリーン Drawable にレンダリングする Renderer2d
cell-bounds: AntialiasMixin.draw-antialiased に渡される、このオブジェクトのセル境界。
bounds: AntialiasMixin.draw-antialiased に渡される、このオブジェクトの境界。

説明

AntialiasMixin の実装は、このメソッドをオーバーライドするものでなければなりません。renderer2d を使用して描画されたものは、アンチエイリアス処理されたように表示されます。このクラスの通常の実装 (AntialiasedFrameCanvas など) では、その子を描画するようにこのメソッドが実装されます。
通常の実装では、その draw メソッド内でこのメソッドが呼び出されるだけで、それ以上ことは行われません。アンチエイリアス処理を活用したいレンダリング操作は、すべて AntialiasMixin.draw-internal 内で行う必要があります。

注意事項

renderer2d は、常にオフスクリーン レンダラであるとは限りません。印刷時には、このメソッドが通常レンダラ内で直接呼び出されます。
オフスクリーン領域は、AntialiasMixin.draw-antialiased メソッドに渡される clear-color パラメータに従ってクリアされます。Background オブジェクトを (例えば、Graphic.background オプションから) 適用したい場合は、与えられた Renderer2d 内で Background.draw メソッドを呼び出します。


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

このオブジェクトに、レイアウト ネゴシエーションが終了したことを通知します。

説明

AntialiasedFrame は、このメソッドが呼び出されたときにオフスクリーン Drawable を保持しています (オフスクリーン Drawable の詳細については、AntialiasedFrame を参照してください)。

Drawable が作成またはサイズ変更されるのはこの時点です。その結果、新しい DisplayContextAntialiasedFrame のグラフィカルな子に割り当てられる場合があります。

詳細については、Graphic.set-size を参照してください。