com.threerings.media.animation
Class FadeLabelAnimation

java.lang.Object
  extended by com.threerings.media.AbstractMedia
      extended by com.threerings.media.animation.Animation
          extended by com.threerings.media.animation.FadeAnimation
              extended by com.threerings.media.animation.FadeLabelAnimation
All Implemented Interfaces:
Shape

public class FadeLabelAnimation
extends FadeAnimation

Does something extraordinary.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.media.animation.Animation
Animation.AnimCompletedOp, Animation.AnimStartedOp
 
Field Summary
protected  boolean _antiAliased
          Whether or not to use anti-aliased rendering.
protected  Label _label
          The label we are rendering.
 
Fields inherited from class com.threerings.media.animation.FadeAnimation
_effect
 
Fields inherited from class com.threerings.media.animation.Animation
_finished
 
Fields inherited from class com.threerings.media.AbstractMedia
_bounds, _firstTick, _mgr, _observers, _renderOrder, HUD_LAYER
 
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.animation.FadeAnimation
paint, tick, willStart
 
Methods inherited from class com.threerings.media.animation.Animation
addAnimationObserver, didFinish, isFinished, removeAnimationObserver, reset, setLocation, willFinish
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_label

protected Label _label
The label we are rendering.


_antiAliased

protected boolean _antiAliased
Whether or not to use anti-aliased rendering.

Constructor Detail

FadeLabelAnimation

public FadeLabelAnimation(Label label,
                          int x,
                          int y,
                          float alpha,
                          float step,
                          float target)
Creates a label fading animation.

Method Detail

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