org.problets.tutor.view.narration
Class IndependentFdbkAnimationController
java.lang.Object
org.problets.lib.io.output.text.AnimationController
org.problets.tutor.view.narration.FeedbackAnimationController
org.problets.tutor.view.narration.IndependentFdbkAnimationController
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, AnimationConstants
public class IndependentFdbkAnimationController
- extends FeedbackAnimationController
Helps determine the animation of its caller.
Differs from its base class FeedbackAdapter in the following ways:
1) Unlike FeedbackAdapter class, it requires explanation to be passed to it.
(FeedbackAdapter lets FeedbackAnimationView handle the explanation)
So, this is supposed to be used by a class that handles animation buttons itself.
2) Unlike FeedbackAdapter, it uses explanation in situ, hence, no
need for setData() method defined in AnimationController class.
3) It lets the user specify a minimum other than 0
4) It is adaptive - it takes the feedback level of each statement into
account when stepping forward/back.
- Author:
- Amruth Kumar
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
void |
setData(java.util.Vector inExplanation)
Method used by client to update the text to be animated |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndependentFdbkAnimationController
public IndependentFdbkAnimationController(java.util.Vector inExplanation,
int inMinimum,
java.awt.event.ActionListener inRoot)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class FeedbackAnimationController
setData
public void setData(java.util.Vector inExplanation)
- Method used by client to update the text to be animated
- Overrides:
setData
in class AnimationController