Class Button
- java.lang.Object
-
- nl.colorize.multimedialib.scene.ui.Widget
-
- nl.colorize.multimedialib.scene.ui.Button
-
-
Constructor Summary
Constructors Constructor Description Button(WidgetStyle style)Button(WidgetStyle style, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrender(GraphicsContext2D 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, getStyle, getX, getY, isVisible, setLocation, setVisible
-
-
-
-
Constructor Detail
-
Button
public Button(WidgetStyle style, java.lang.String label)
-
Button
public Button(WidgetStyle style)
-
-
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(GraphicsContext2D graphics)
-
-