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

    • TextParticle

      public TextParticle(String text)
  • Method Details

    • getFont

      public Font getFont()
    • getText

      public String getText()
    • render

      public void render(Graphics2D g, Point2D emitterOrigin)
      Specified by:
      render in class Particle
    • setFont

      public void setFont(Font font)
    • getBoundingBox

      public Rectangle2D getBoundingBox(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.