Class Widget
- java.lang.Object
-
- nl.colorize.multimedialib.scene.ui.Widget
-
- All Implemented Interfaces:
Renderable,Updatable,Scene
public abstract class Widget extends java.lang.Object implements Scene
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 Summary
Constructors Constructor Description Widget(WidgetStyle style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationgetLocation()WidgetStylegetStyle()protected floatgetX()protected floatgetY()voidsetLocation(Location location)voidstart()Widgets do not have initialization logic by default, but this can be added by overriding this method.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nl.colorize.multimedialib.renderer.Renderable
render
-
-
-
-
Constructor Detail
-
Widget
public Widget(WidgetStyle style)
-
-
Method Detail
-
start
public void start()
Widgets do not have initialization logic by default, but this can be added by overriding this method.
-
setLocation
public void setLocation(Location location)
-
getLocation
public Location getLocation()
-
getX
protected float getX()
-
getY
protected float getY()
-
getStyle
public WidgetStyle getStyle()
-
-