public class TextOverlayAnimator extends AbstractAnimator implements OverlayAnimator
Modifier and Type | Class and Description |
---|---|
static class |
TextOverlayAnimator.TextPosition |
Modifier and Type | Field and Description |
---|---|
protected double |
fadeInTime |
protected double |
fadeOutTime |
protected Font |
font |
protected TextOverlayAnimator.TextPosition |
position |
protected String |
text |
Constructor and Description |
---|
TextOverlayAnimator(String text,
long duration) |
TextOverlayAnimator(String text,
long duration,
TextOverlayAnimator.TextPosition position) |
TextOverlayAnimator(String text,
long duration,
TextOverlayAnimator.TextPosition position,
double fadeInTime,
double fadeOutTime) |
TextOverlayAnimator(String text,
long duration,
TextOverlayAnimator.TextPosition position,
double fadeInTime,
double fadeOutTime,
Font font) |
Modifier and Type | Method and Description |
---|---|
void |
paint(Graphics2D g,
long time) |
boolean |
requiresRepaint()
Returns true if the animator requires an immediate repaint to continue
the animation.
|
isComplete, ratioComplete, setTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isComplete
protected final Font font
protected final String text
protected final double fadeInTime
protected final double fadeOutTime
protected final TextOverlayAnimator.TextPosition position
public TextOverlayAnimator(String text, long duration)
public TextOverlayAnimator(String text, long duration, TextOverlayAnimator.TextPosition position)
public TextOverlayAnimator(String text, long duration, TextOverlayAnimator.TextPosition position, double fadeInTime, double fadeOutTime)
public TextOverlayAnimator(String text, long duration, TextOverlayAnimator.TextPosition position, double fadeInTime, double fadeOutTime, Font font)
public void paint(Graphics2D g, long time)
paint
in interface OverlayAnimator
public boolean requiresRepaint()
OverlayAnimator
requiresRepaint
in interface OverlayAnimator
Copyright © 2015–2021 Fiji. All rights reserved.