すべてのファーストクラス グラフィカル オブジェクトの (抽象) 基本クラス。このオブジェクトは、グラフィックで表示したり、レイアウト ネゴシエーションに参加できます。
注意事項
プログラミング注意事項
| このタイプの新しいオブジェクトを作成するために |
| true の場合は、この Graphic のコンテナは、パジネーションが実行される時に、この |
| グラフィカル オブジェクトの背景色または背景パターン。 |
| グラフィカル オブジェクトの境界の色またはパターン。 |
| オブジェクトの境界の外観を指定します。 |
| オブジェクトの境界の幅を指定します。 |
| Table のテーブル セル ボーダーの幅を指定します。 |
| テーブル セルの境界とその子スロット (テーブル セルがその子グラフィックを配置する場所) の間の距離を指定します。 |
| この |
| この Graphic が |
| このオブジェクトに関連付けられている |
| この Graphic を |
| オブジェクトの外側起点の x 座標を指定します。 |
| true の場合は、この Graphic がパジネートします。 |
| このオブジェクトに関連付けて、 |
| オブジェクトのボーダーとその子スロット (オブジェクトがそのグラフィカルな子を配置する場所) との間の距離を指定します。 |
| 透明なセクションに発生する |
| オブジェクトのオプションの親を返します。 |
| このオプションが非 null のときは、この |
| オブジェクトのグラフィカルな親を返します。 |
| このグラフィックとそのグラフィック子孫に関連付けられた |
| 影の色です。既定の色は黒で、アルファ値は 0.175 です。 |
| 描画や |
| 最後のレイアウト ネゴシエーションが完了してから、 |
| 指定した高さの制約を受けた場合にこの |
| 指定した高さの制約を受けた場合にこの |
| 指定されたポイントで発生するイベントが、ターゲット ボックス ( |
| をそのグラフィカルな親から削除します。 |
| このオブジェクトの可視表現を描画します。 |
| このグラフィックの一部を選択領域として描画します。 |
| オブジェクトの影を描画します。 |
| この |
| 与えられた述語に適合する最も近いグラフィックの祖先を返します。 |
| 指定ポイントをカバーし、指定テストの条件を満たす |
| 与えられた述語に適合する最も近いグラフィックの祖先を返します。 |
| このオブジェクトで |
| この |
| グラフィック階層内における指定された祖先に対する |
| グラフィック階層のルートにあるオブジェクトを基準とし、Visual の位置を取得します。 |
| start-bound と end-bound 間の、このグラフィック内に含まれる選択したテキストを取得します。 |
| グラフィック階層に含まれる指定上位オブジェクトの座標フレームでこのオブジェクトの左上隅のロケーションを見つけます。 |
| オブジェクトの実際の可視領域の境界ボックスを計算します。 |
| この |
| 位置 x、y にある目に見えるグラフィカルな子を規定します。 |
| この Graphic を参照する |
| このオブジェクトにオプションの値が変更したことを通知します。 |
| グラフィックにパジネーションを適用します。 |
| ボーダーやマージンを含めたオブジェクトのセル全体を描画します。 |
| このオブジェクトで |
| このオブジェクトで |
| このオブジェクトに代わって別のオブジェクトをグラフィック階層に置きます。 |
| 描画する |
| 指定した |
| 表示されたオブジェクトの幾何形状が変更されていることを宣言し、必要な |
| この Graphic 内か、その子の 1 つに現れるパターンの境界を返します。 |
| この Graphic 内か、その子の 1 つに現れるパターンの境界を返します。通常このメソッドは、アプリケーション コードから直接呼び出しません。代わりに |
| この Graphic 内か、その子の 1 つに現れるパターンの境界を返します。 |
| この Graphic 内か、その子の 1 つに現れるパターンの境界を返します。通常このメソッドは、アプリケーション コードから直接呼び出しません。代わりに |
| このオブジェクトにレイアウト幅と高さを代入します。 |
| パジネートできるように |
| 2 つの グラフィカル オブジェクトの起点の間の (x、y) オフセットを計算します。 |
このタイプの新しいオブジェクトを作成するために
注意事項
説明
説明
true の場合は、この Graphic のコンテナは、パジネーションが実行される時に、この
注意事項
グラフィカル オブジェクトの背景色または背景パターン。
説明
例
| 例: 背景を文字列に設定 | |
{CheckButton
label="Check here if you like my background",
background="lime"
}
|
| 例: 背景を Background オブジェクトに設定 | |
![]() | |
{Fill
width = 2cm,
height = 2cm,
background =
{Background
{url "curl://install/docs/default/images/grass.jpg"}
}
}
|
注意事項
グラフィカル オブジェクトの境界の色またはパターン。
説明
説明
例
| 例: BorderSpec の使用 | |
![]() | |
{define-proc package {make-frame
border-style:BorderStyle,
border-color:FillPattern =
FillPattern.blue,
border-spec:#BorderSpec = null
}
{return
{Frame
border-width = 3pt,
margin = 10pt,
background = FillPattern.silver,
border-color = border-color,
border-style = border-style,
border-spec = border-spec,
"Apple"
}
}
}
{spaced-hbox
margin = 2pt,
|| Note that this Frame is setting the left and right border
|| width to 0pt. Since top and bottom border width are not
|| specified in the BorderSpec they will be equal to the
|| value of the border-width option on the Frame.
{make-frame
BorderStyle.dot,
border-spec =
{BorderSpec
left-border-width = 0pt,
right-border-width = 0pt
}
},
|| Note that this Frame is setting the left and right margin
|| to 0pt. Since top and bottom margin are not specified in the
|| BorderSpec they will be equal to the value of the margin
|| option on the Frame.
{make-frame
BorderStyle.dot,
border-spec =
{BorderSpec
left-margin = 0pt,
right-margin = 0pt
}
}
}
|
オブジェクトの境界の外観を指定します。
説明
例
| 例: 次は、さまざまなテーブル セルのボーダー スタイルを青で表示しています (tiled を除く)。 | |
{define-proc package {make-frame
border-style:BorderStyle,
border-color:FillPattern =
FillPattern.blue
}
let label:String = {{String border-style}.tail 12}
{return
|| Outer Frame is added for spacing only.
{Frame margin = 3pt,
{Frame
width = 2cm,
height = 1cm,
border-width = 3pt,
background = FillPattern.silver,
border-color = border-color,
border-style = border-style,
label
}
}
}
}
{RasterBox
{make-frame BorderStyle.none},
{make-frame BorderStyle.flat},
{make-frame BorderStyle.raised},
{make-frame BorderStyle.sunken},
{make-frame BorderStyle.ridge},
{make-frame BorderStyle.groove},
{make-frame BorderStyle.dash},
{make-frame BorderStyle.dot},
{make-frame BorderStyle.double}
}
|

| 例: tiled ボーダー スタイルの使用 | |
![]() | |
{let constant f:Frame =
{Frame
border-width = 60px,
border-style = BorderStyle.tiled,
border-color =
{FillPattern.from-url
{url "curl://source/docs/default/images/tiled-border.gif"}
}
}
}
{value
{f.add
{HBox
background = "#6f4e20",
control-content-background = "#6f4e20",
color = "white",
spacing = 5mm,
"border-width:",
{TextField
width = 2cm,
value = "60px",
control-appearance-changeable? = true,
{on ValueFinished at tf:TextField do
set f.border-width = {evaluate tf.value}
}
}
}
}
f
}
|
注意事項
オブジェクトの境界の幅を指定します。
説明
例
| 例 | |
![]() | |
{spaced-hbox
valign="bottom",
{Frame width=3cm,
height=2cm,
background="silver",
border-color="blue",
border-width=3pt},
{Frame width=3cm,
height=2cm,
background="silver",
border-color="blue",
border-width=0.25cm}}
|
注意事項
説明
例
| 例: BorderSpec の使用 |
![]() |
{define-proc package {make-table
cell-border-style:BorderStyle,
cell-border-color:FillPattern =
FillPattern.blue,
cell-border-spec:#BorderSpec = null
}
{return
{Table
columns = 3,
width = 7cm,
height = 3cm,
background = FillPattern.silver,
border-width = 1pt,
border-color = FillPattern.black,
cell-border-style = cell-border-style,
cell-border-color = cell-border-color,
cell-border-width = 2pt,
cell-margin = 5pt,
cell-border-spec = cell-border-spec,
"Apple", "Banana", "Grapes",
"Papaya", "Strawberry", "Guava"
}
}
}
{spaced-hbox
margin = 2pt,
|| Note that this Table is setting the left and right cell
|| border width to 0pt. Since top and bottom cell border width
|| are not specified in the BorderSpec they will be equal to
|| the value of the cell-border-width option on the Table.
{make-table
BorderStyle.flat,
cell-border-spec =
{BorderSpec
left-border-width = 0pt,
right-border-width = 0pt
}
},
|| Note that this Table is setting the left and right cell
| |