Package tripleplay.util
Class EffectRenderer
java.lang.Object
tripleplay.util.EffectRenderer
- Direct Known Subclasses:
EffectRenderer.Gradient
,EffectRenderer.PixelOutline
,EffectRenderer.Shadow
,EffectRenderer.VectorOutline
Handles the rendering of text with a particular effect (shadow, outline, etc.).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EffectRenderer
An "effect" that just renders the text normally. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
adjustHeight
(float height) float
adjustWidth
(float width) float
offsetX()
float
offsetY()
abstract void
render
(Canvas canvas, TextLayout layout, int textColor, boolean underlined, float x, float y)
-
Field Details
-
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)
-