org.problets.tutor.view.narration
Class FeedbackAnimationController

java.lang.Object
  extended by org.problets.lib.io.output.text.AnimationController
      extended by org.problets.tutor.view.narration.FeedbackAnimationController
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, AnimationConstants
Direct Known Subclasses:
IndependentFdbkAnimationController

public class FeedbackAnimationController
extends AnimationController

not process the feedback level of entries to be animated, assumes the minimum number of lines to be animated is zero. setData() must be called before the first ANSWER_SUBMITTED event to avoid null pointer exception. Helps determine the animation of its caller

Author:
Amruth Kumar

Field Summary
 
Fields inherited from interface org.problets.lib.io.output.text.AnimationConstants
ANIMATION_COMPLETED, FINISH_ANIMATION, NEXT_ANIMATION, PREVIOUS_ANIMATION, RESET_ANIMATION, SET_ANIMATION, START_ANIMATION
 
Constructor Summary
FeedbackAnimationController(java.awt.event.ActionListener inRoot)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 int getAnimationExtent()
          Method used by AnimatedTextView to determine how many lines to display
 
Methods inherited from class org.problets.lib.io.output.text.AnimationController
isAtEnd, isAtStart, setData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedbackAnimationController

public FeedbackAnimationController(java.awt.event.ActionListener inRoot)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class AnimationController

getAnimationExtent

public int getAnimationExtent()
Description copied from class: AnimationController
Method used by AnimatedTextView to determine how many lines to display

Overrides:
getAnimationExtent in class AnimationController