Interface Control
- All Known Implementing Classes:
AbstractCell,AbstractControl,AbstractListCell,AbstractTextCell,AbstractView,AppView,BoxView,ButtonView,DialogView,GridView,InputView,ListCell.DefaultListCell,ListView,MenuBarView,MenuView,ProgressView,StatusBarView,TextCell.DefaultTextCell,WindowView
public interface Control
-
Method Summary
Modifier and TypeMethodDescriptionvoidgetRect()Gets rectanle of a bounded box for thisView.voidsetRect(int x, int y, int width, int height) Sets bounds where thisControlshould operate.voidsetThemeName(String themeName) Sets a theme name to use.voidsetThemeResolver(ThemeResolver themeResolver) Sets aThemeResolver.
-
Method Details
-
draw
- Parameters:
screen- the screen
-
getRect
Rectangle getRect()Gets rectanle of a bounded box for thisView.- Returns:
- the rectanle of a bounded box
-
setRect
void setRect(int x, int y, int width, int height) Sets bounds where thisControlshould operate.- Parameters:
x- a x coord of a bounded boxy- an y coord of a bounded boxwidth- a width of a bounded boxheight- a height of a bounded box
-
setThemeResolver
Sets aThemeResolver.- Parameters:
themeResolver- the theme resolver
-
setThemeName
Sets a theme name to use.- Parameters:
themeName- the theme name
-