Class ComponentRenderEvent

java.lang.Object
java.util.EventObject
de.gurkenlabs.litiengine.gui.ComponentRenderEvent
All Implemented Interfaces:
Serializable

public class ComponentRenderEvent extends EventObject
See Also:
  • Constructor Details

    • ComponentRenderEvent

      public ComponentRenderEvent(Graphics2D graphics, GuiComponent source)
      Constructs a prototypical Event.
      Parameters:
      source - the object on which the Event initially occurred
      Throws:
      IllegalArgumentException - if source is null
  • Method Details

    • getComponent

      public GuiComponent getComponent()
      Get the component involved with the rendering process.
      Returns:
      The component involved with the rendering process.
    • getGraphics

      public Graphics2D getGraphics()
      Gets the graphics object on which the entity is rendered.
      Returns:
      The graphics object on which the entity is rendered.