Class TestWidget

java.lang.Object
yearreview.app.grid.widgets.Widget
yearreview.app.grid.widgets.TestWidget

public class TestWidget extends Widget
Test Widget that's just a blue rectangle.
Author:
ColdStone37
  • Constructor Details

    • TestWidget

      public TestWidget(float x, float y, float w, float h, XmlNode c)
      Constructs a TestWidget at a given position with a configuration (that isn't used).
      Parameters:
      x - x-position of the widget
      y - y-position of the widget
      w - width of the widget
      h - height of the widget
      c - configuration
  • Method Details

    • renderLocalSpace

      protected 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)).
      Specified by:
      renderLocalSpace in class Widget
      Parameters:
      graphic - graphic that gets rendered to
      time - time at which the widget is rendered