Class TextEffect

java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.TextEffect
All Implemented Interfaces:
Runnable

public class TextEffect extends Effect
  • Field Details

    • text

      public String text
      Text to display
    • invert

      public boolean invert
      Invert the text
    • stepX

      public int stepX
      Each stepX pixel will be shown. Saves packets for lower fontsizes.
    • stepY

      public int stepY
      Each stepY pixel will be shown. Saves packets for lower fontsizes.
    • size

      public float size
      Scale the font down
    • realtime

      public boolean realtime
      Set this only to true if you are working with changing text. I'll advice the parser to recalculate the BufferedImage every iteration. Recommended FALSE
    • font

      public Font font
      Font to create the Text
    • image

      protected BufferedImage image
      Contains an image version of the String
  • Constructor Details

  • Method Details

    • setFont

      public void setFont(Font font)
    • onRun

      public void onRun()
      Specified by:
      onRun in class Effect