Class WidgetFactory

java.lang.Object
yearreview.app.grid.widgets.WidgetFactory

public abstract class WidgetFactory extends Object
Factory for Widget objects.
Author:
ColdStone37
  • Constructor Details

    • WidgetFactory

      public WidgetFactory()
  • Method Details

    • getWidget

      public static Widget getWidget(float x, float y, float w, float h, XmlNode config)
      Creates a widget from positional data and a configuration.
      Parameters:
      x - x-position of the widget
      y - y-position of the widget
      w - width of the widget
      h - height of the widget
      config - configuration of the widget
      Returns:
      requested widget or null if the configuration is invalid