Class EntityRenderEvent

java.lang.Object
java.util.EventObject
de.gurkenlabs.litiengine.entities.EntityRenderEvent
All Implemented Interfaces:
java.io.Serializable

public class EntityRenderEvent
extends java.util.EventObject
This EventObject contains data about the rendering process of an entity.
See Also:
RenderEngine.renderEntity(Graphics2D, IEntity), Serialized Form
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors 
    ConstructorDescription
    EntityRenderEvent​(java.awt.Graphics2D graphics, IEntity entity) 
  • Method Summary

    Modifier and TypeMethodDescription
    IEntitygetEntity()
    Get the entity involved with the rendering process.
    java.awt.Graphics2DgetGraphics()
    Gets the graphics object on which the entity is rendered.

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getGraphics

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

      public IEntity getEntity()
      Get the entity involved with the rendering process.
      Returns:
      The entity involved with the rendering process.