All Known Subinterfaces:
Cell<T>, ListCell<T>, TextCell<T>, View
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
Base interface for all controls. Control is able to define a Rectangle it is bound to and draw into a Screen.
See Also:
  • Method Details

    • draw

      void draw(Screen screen)
      Draw Control into a Screen.
      Parameters:
      screen - the screen
    • getRect

      Rectangle getRect()
      Gets rectanle of a bounded box for this View.
      Returns:
      the rectanle of a bounded box
    • setRect

      void setRect(int x, int y, int width, int height)
      Sets bounds where this Control should operate.
      Parameters:
      x - a x coord of a bounded box
      y - an y coord of a bounded box
      width - a width of a bounded box
      height - a height of a bounded box
    • setThemeResolver

      void setThemeResolver(@Nullable ThemeResolver themeResolver)
      Parameters:
      themeResolver - the theme resolver
    • setThemeName

      void setThemeName(@Nullable String themeName)
      Sets a theme name to use.
      Parameters:
      themeName - the theme name