Class Widget

  • All Implemented Interfaces:
    Drawable, Updatable
    Direct Known Subclasses:
    Button, Form, SelectBox, TextField, TextLabel

    public abstract class Widget
    extends java.lang.Object
    implements Updatable, Drawable
    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

    • Method Detail

      • setVisible

        public void setVisible​(boolean visible)
      • isVisible

        public boolean isVisible()
      • setLocation

        public void setLocation​(Location location)
      • getLocation

        public Location getLocation()
      • getX

        protected float getX()
      • getY

        protected float getY()