Class EffectRenderer

java.lang.Object
tripleplay.util.EffectRenderer
Direct Known Subclasses:
EffectRenderer.Gradient, EffectRenderer.PixelOutline, EffectRenderer.Shadow, EffectRenderer.VectorOutline

public abstract class EffectRenderer extends Object
Handles the rendering of text with a particular effect (shadow, outline, etc.).
  • Field Details

    • NONE

      public static final EffectRenderer NONE
      An "effect" that just renders the text normally.
  • Constructor Details

    • EffectRenderer

      public EffectRenderer()
  • Method Details

    • adjustWidth

      public float adjustWidth(float width)
    • adjustHeight

      public float adjustHeight(float height)
    • offsetX

      public float offsetX()
    • offsetY

      public float offsetY()
    • render

      public abstract void render(Canvas canvas, TextLayout layout, int textColor, boolean underlined, float x, float y)