org.problets.lib.io.output.text
Class AnimationController

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

public class AnimationController
extends java.lang.Object
implements java.awt.event.ActionListener, AnimationConstants

- responds to animation buttons 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
AnimationController(java.awt.event.ActionListener inRoot)
          Constructor when a derived class creates the displayed content in response to an event
AnimationController(java.awt.event.ActionListener inRoot, java.util.Vector inExplanation)
          Constructor when a client creates this object with specific displayed content in mind
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 int getAnimationExtent()
          Method used by AnimatedTextView to determine how many lines to display
 boolean isAtEnd()
           
 boolean isAtStart()
           
 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
 

Constructor Detail

AnimationController

public AnimationController(java.awt.event.ActionListener inRoot)
Constructor when a derived class creates the displayed content in response to an event


AnimationController

public AnimationController(java.awt.event.ActionListener inRoot,
                           java.util.Vector inExplanation)
Constructor when a client creates this object with specific displayed content in mind

Method Detail

actionPerformed

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

getAnimationExtent

public int getAnimationExtent()
Method used by AnimatedTextView to determine how many lines to display


isAtStart

public boolean isAtStart()

isAtEnd

public boolean isAtEnd()

setData

public void setData(java.util.Vector inExplanation)
Method used by client to update the text to be animated