Interface Component

All Known Subinterfaces:
Container, Window
All Known Implementing Classes:
AbstractComponent, AbstractPanel, AbstractWindow, BasicWindow, BorderPanel, Box, Button, GridPanel, Menu, Menu.MenuWindow, TextArea

public interface Component
  • Method Details

    • getPosition

      Position getPosition()
    • setPosition

      void setPosition(Position position)
    • getScreenPosition

      Position getScreenPosition()
    • isIn

      boolean isIn(int x, int y)
    • getSize

      Size getSize()
    • setSize

      void setSize(Size size)
    • getParent

      Container getParent()
    • getPreferredSize

      Size getPreferredSize()
    • isFocused

      boolean isFocused()
    • isEnabled

      boolean isEnabled()
    • enable

      void enable(boolean enabled)
    • focus

      void focus()
    • draw

      void draw(Screen screen)
    • getBehaviors

      EnumSet<Component.Behavior> getBehaviors()
    • handleMouse

      void handleMouse(MouseEvent event)
    • handleInput

      void handleInput(String input)