java.lang.Object
de.gurkenlabs.litiengine.graphics.emitters.particles.Particle
de.gurkenlabs.litiengine.graphics.emitters.particles.TextParticle
All Implemented Interfaces:
ITimeToLive

public class TextParticle
extends Particle
  • Constructor Details

  • Method Details

    • getFont

      public java.awt.Font getFont()
    • getText

      public java.lang.String getText()
    • render

      public void render​(java.awt.Graphics2D g, java.awt.geom.Point2D emitterOrigin)
      Specified by:
      render in class Particle
    • setFont

      public void setFont​(java.awt.Font font)
    • getBoundingBox

      public java.awt.geom.Rectangle2D getBoundingBox​(java.awt.geom.Point2D origin)
      Description copied from class: Particle
      Gets the current bounding box of the particle, depending on its spawn location.
      Overrides:
      getBoundingBox in class Particle
      Parameters:
      origin - the spawn location of this particle
      Returns:
      The Rectangular particle bounding box.