com.threerings.media.animation
Class FadeLabelAnimation
java.lang.Object
com.threerings.media.AbstractMedia
com.threerings.media.animation.Animation
com.threerings.media.animation.FadeAnimation
com.threerings.media.animation.FadeLabelAnimation
- All Implemented Interfaces:
- Shape
public class FadeLabelAnimation
- extends FadeAnimation
Does something extraordinary.
|
Field Summary |
protected boolean |
_antiAliased
Whether or not to use anti-aliased rendering. |
protected Label |
_label
The label we are rendering. |
|
Constructor Summary |
FadeLabelAnimation(Label label,
int x,
int y,
float alpha,
float step,
float target)
Creates a label fading animation. |
|
Method Summary |
protected void |
init()
Called when the media has had its manager set. |
protected void |
paintAnimation(Graphics2D gfx)
Here is where derived animations actually render their image. |
void |
setAntiAliased(boolean antiAliased)
Indicates that our label should be rendered with antialiased text. |
| Methods inherited from class com.threerings.media.AbstractMedia |
addObserver, contains, contains, contains, contains, fastForward, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, invalidateAfterChange, naturalCompareTo, queueNotification, removeObserver, renderCompareTo, setRenderOrder, shutdown, toString, toString, viewLocationDidChange |
_label
protected Label _label
- The label we are rendering.
_antiAliased
protected boolean _antiAliased
- Whether or not to use anti-aliased rendering.
FadeLabelAnimation
public FadeLabelAnimation(Label label,
int x,
int y,
float alpha,
float step,
float target)
- Creates a label fading animation.
setAntiAliased
public void setAntiAliased(boolean antiAliased)
- Indicates that our label should be rendered with antialiased text.
init
protected void init()
- Description copied from class:
AbstractMedia
- Called when the media has had its manager set.
Derived classes may override this method, but should be sure to call
super.init().
- Overrides:
init in class AbstractMedia
paintAnimation
protected void paintAnimation(Graphics2D gfx)
- Description copied from class:
FadeAnimation
- Here is where derived animations actually render their image.
- Specified by:
paintAnimation in class FadeAnimation