View Javadoc
1   
2   package org.newdawn.slick.font.effects;
3   
4   import java.awt.Graphics2D;
5   import java.awt.image.BufferedImage;
6   
7   import org.newdawn.slick.UnicodeFont;
8   import org.newdawn.slick.font.Glyph;
9   
10  /**
11   * A graphical effect that is applied to glyphs in a {@link UnicodeFont}.
12   * 
13   * @author Nathan Sweet <misc@n4te.com>
14   */
15  public interface Effect {
16      /**
17       * Called to draw the effect.
18       *
19       * @param image The image to draw into
20       * @param g The graphics context to use for applying the effect
21       * @param unicodeFont The font being rendered
22       * @param glyph The particular glyph being rendered
23       */
24      public void draw (BufferedImage image, Graphics2D g, UnicodeFont unicodeFont, Glyph glyph);
25  }