Package yearreview.app.grid.widgets
Class TestWidget
java.lang.Object
yearreview.app.grid.widgets.Widget
yearreview.app.grid.widgets.TestWidget
Test Widget that's just a blue rectangle.
- Author:
- ColdStone37
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTestWidget
(float x, float y, float w, float h, XmlNode c) Constructs a TestWidget at a given position with a configuration (that isn't used). -
Method Summary
Modifier and TypeMethodDescriptionprotected void
renderLocalSpace
(Graphics2D graphic, Instant time) Renders the widget in its local space (meaning that the coordinate system goes from (0, 0) to (w, h)).Methods inherited from class yearreview.app.grid.widgets.Widget
renderGlobalSpace, setPosition
-
Constructor Details
-
TestWidget
Constructs a TestWidget at a given position with a configuration (that isn't used).- Parameters:
x
- x-position of the widgety
- y-position of the widgetw
- width of the widgeth
- height of the widgetc
- configuration
-
-
Method Details
-
renderLocalSpace
Renders the widget in its local space (meaning that the coordinate system goes from (0, 0) to (w, h)).- Specified by:
renderLocalSpace
in classWidget
- Parameters:
graphic
- graphic that gets rendered totime
- time at which the widget is rendered
-