Class Button
- java.lang.Object
-
- nl.colorize.multimedialib.scene.ui.Widget
-
- nl.colorize.multimedialib.scene.ui.Button
-
- All Implemented Interfaces:
Renderable,Updatable,SubSystem
public class Button extends Widget
Simple button widget with graphics and interaction entirely managed by the renderer, not using the native widget. Buttons can consist of a flat background or an image background, combined with a text label.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrender(GraphicsContext graphics)voidsetClickHandler(InputDevice input, java.lang.Runnable onClick)voidupdate(float deltaTime)Updates this object for the current frame.-
Methods inherited from class nl.colorize.multimedialib.scene.ui.Widget
getLocation, getX, getY, setLocation
-
-
-
-
Method Detail
-
setClickHandler
public void setClickHandler(InputDevice input, java.lang.Runnable onClick)
-
update
public void update(float deltaTime)
Description copied from interface:UpdatableUpdates this object for the current frame.- Parameters:
deltaTime- Elapsed time since the last frame, in seconds.
-
render
public void render(GraphicsContext graphics)
-
-