(クラス)
テキストオブジェクトを表すVisualのサブクラス
説明
このクラスは、
TextFlowBoxのようなテキストコンテナによってレンダリングされるテキストを含むオブジェクトのコンテンツ意アクセスする為のパブリックAPIを提供します。Curlテキストフォーマットで返される値は、一般的に
TextVisualのサブクラスのインスタンスになります。
導入:
バージョン 7.0
コンストラクタ protected | {TextVisual.clone-appearance-from other:TextVisual} |
コンストラクタ protected | {TextVisual.default ...} |
ローカル オプション public TextVisual.background:
Background =Background.transparent
フィールド public-get protected-set TextVisual.text-receiver:#
TextReceiver
アクセサ public abstract TextVisual.visual-children:{
Iterator-of Visual}
プロパティ 継承 Visual:
_style-element, clonable-class?, completely-clonable-children?, cursor, data-source, display-context, dragee, font-size, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, possibly-displayed?, style-class, style-element, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data, visual-parent
public | {TextVisual.detach-receiver}:void |
public abstract | {TextVisual.get-visual-child-index c:Visual}:int |
public abstract | {TextVisual.remove-child c:Visual}:void |
public abstract | {TextVisual.replace-child-graphic}:void |
public abstract | {TextVisual.visit-visual-children}:void |
メソッド 継承 Visual:
add, add-from-init-args, animate, change-cursor, clear, clonable-appearance?, clone-appearance, clone-appearance-helper, find-graphical-ancestor, find-test-children, get-focus-manager, get-graphical-root, get-gui-path, get-gui-path-to-child, get-layout-context, get-origin-in-graphical-ancestor, get-origin-in-root, get-test-parent, get-test-property, get-text, get-top-left-in-ancestor, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-attached, note-caret-position, note-detaching, on-drag-enter, on-drag-leave, on-pointer-enter, 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-draw, 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, xy-offset-to メソッド 継承 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-inspection, 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 メソッド 継承 OptionListInterface:
add-option, add-style-option, change-option-parent-notify, clone-options, get-option, get-option-by-name, keyword-init-arg, name-to-option-key, new-option-item, notify-option-children, option-change-notify, option-changed, 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
(コンストラクタ)
protected | {TextVisual.clone-appearance-from other:TextVisual} |
(コンストラクタ)
protected | {TextVisual.default ...} |
(ローカル オプション)
public TextVisual.background:
Background =Background.transparent
TextVisual の背景の色またはパターン。
説明
TextVisual の背後に描画されるべき背景(background)を記述する為にこのオプションを設定します。
注意事項
多くのテキストコンテナは
TextVisual に対する全ての背景型を実装しているわけではありません。例えば、一部のコンテナは背景を塗りつぶします。その一方で背景のオプションは全て無視されます。
(フィールド)
public-get protected-set TextVisual.text-receiver:#
TextReceiver
(アクセサ)
(アクセサ)
アクセサ public abstract TextVisual.visual-children:{
Iterator-of Visual}
(メソッド)
(メソッド)
public | {TextVisual.detach-receiver}:void |
(メソッド)
public abstract | {TextVisual.get-visual-child-index c:Visual}:int |
(メソッド)
このオブジェクトでバインディング オプションが追加または変更されたときに呼び出されます。
item: 新しいバインディング オプション。
注意事項
プログラミング注意事項
オーバーライド
通常はオーバーライドされません。
(メソッド)
このオブジェクトでバインディング オプションが削除されると呼び出されます。
item: 削除されたバインディング オプション。
注意事項
このメソッドは、バインディング オプションの変更に関する通知の内容を決定します。これらの通知により、オブションのバインド解除をオブジェクトに知らせることができます。また、祖先も同じオプション キーをバインドする場合に、オプションの値が変更されたことをオブジェクトに知らせることができます。いずれの場合も、
OptionListInterface.propagate-option-change が呼び出されて通知が実際に行なわれます。
プログラミング注意事項
オーバーライド
通常はオーバーライドされません。
(メソッド)
public abstract | {TextVisual.remove-child c:Visual}:void |
(メソッド)
public abstract | {TextVisual.replace-child-graphic}:void |
この TextVisual の Graphic の子を置き換えます。
old-child: 削除される子オブジェクト
new-child: old-child の代わりに挿入される子オブジェクト。
注意事項
プログラミング注意事項
(メソッド)
このTextVisualとその子孫のコンテンツに関する情報を提供します。
説明
プログラミング注意事項
オーバーライド
TextVisualでのこのメソッドの基本の実装は、
text-receiverフィールドをセットすることです。ですから、このメソッドをオーバーライドするメソッドが
super.stream-contents-toを呼び出すことは重要です。
(メソッド)
public abstract | {TextVisual.visit-visual-children}:void |
このTextVisualの子ごとにプロシージャを呼び出します。
visit-proc: 呼び出されるプロシージャ
説明
プロシージャ
visit-procは、昇順でこの
TextVisualの各子オブジェクトで呼び出されます。
visit-procを呼び出して、trueが返ってきたら、子オブジェクトが存在する限り、次の子の為の
visit-procの呼び出しによってイテレーションは継続します。
visit-procの呼び出しが falseを返す場合、イテレーションは終了します。
(メソッド)
このオブジェクトに適した ラッパー
Graphic を返します。
g: このオブジェクトを含むテキストコンテナの単純な
Graphic。
戻り値
プログラミング注意事項
オーバーライド
このメソッドの既定の実装は、その引数を変更せずに返します。より複雑なラッパーを提供する必要があるサブクラスは、このメソッドをオーバーライドすることが出来ます。