インターフェース Control
- すべての既知の実装クラス:
AbstractCell、AbstractControl、AbstractListCell、AbstractTextCell、AbstractView、AppView、BoxView、ButtonView、DialogView、GridView、InputView、ListCell.DefaultListCell、ListView、MenuBarView、MenuView、ProgressView、StatusBarView、TextCell.DefaultTextCell、WindowView
public interface Control
方法の概要
修飾子と型メソッド説明voidgetRect()このViewの境界ボックスの長方形を取得します。voidsetRect(int x, int y, int width, int height) このControlが動作する範囲を設定します。voidsetThemeName(StringSE themeName) 使用するテーマ名を設定します。voidsetThemeResolver(ThemeResolver themeResolver) ThemeResolverを設定します。
方法の詳細
draw
- パラメーター:
screen- スクリーン
getRect
Rectangle getRect()このViewの境界ボックスの長方形を取得します。- 戻り値:
- 有界ボックスの長方形
setRect
void setRect(int x, int y, int width, int height) このControlが動作する範囲を設定します。- パラメーター:
x- 境界ボックスの x 座標y- 有界ボックスの y 座標width- 境界ボックスの幅height- 境界ボックスの高さ
setThemeResolver
ThemeResolverを設定します。- パラメーター:
themeResolver- テーマリゾルバー
setThemeName
使用するテーマ名を設定します。- パラメーター:
themeName- テーマ名