Class Widget

  • All Implemented Interfaces:
    Renderable, Updatable, SubSystem
    Direct Known Subclasses:
    Button, SelectBox, TextField, TextLabel

    public abstract class Widget
    extends java.lang.Object
    implements SubSystem
    Base class for all subsystems that emulate user interface widgets (buttons, select boxes, text fields, etc.). This does not actually use the platform's native user interface, but implements graphics and interaction entirely in MultimediaLib so that the widgets works across all platforms.
    • Constructor Detail

      • Widget

        public Widget​(Location location)
    • Method Detail

      • setLocation

        public void setLocation​(Location location)
      • getLocation

        public Location getLocation()
      • getX

        protected float getX()
      • getY

        protected float getY()