algoanim.primitives
Class AdvancedTextSupport

java.lang.Object
  extended by algoanim.primitives.Primitive
      extended by algoanim.primitives.AdvancedTextSupport
Direct Known Subclasses:
Text

public abstract class AdvancedTextSupport
extends Primitive


Field Summary
 
Fields inherited from class algoanim.primitives.Primitive
gen
 
Constructor Summary
protected AdvancedTextSupport(GeneratorInterface g, DisplayOptions d)
           
 
Method Summary
 void setFont(java.awt.Font newFont, Timing delay, Timing duration)
          updates the font of this text component (not supported by all primitives!).
 void setText(java.lang.String newText, Timing delay, Timing duration)
          updates the text of this text component (not supported by all primitives!).
 
Methods inherited from class algoanim.primitives.Primitive
changeColor, exchange, getDisplayOptions, getName, hide, hide, moveBy, moveTo, moveVia, rotate, rotate, setName, show, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedTextSupport

protected AdvancedTextSupport(GeneratorInterface g,
                              DisplayOptions d)
Parameters:
g - the appropriate code Generator for this Primitive.
d - [optional] the DisplayOptions for this Primitive.
Method Detail

setText

public void setText(java.lang.String newText,
                    Timing delay,
                    Timing duration)
updates the text of this text component (not supported by all primitives!).

Parameters:
newText - the new text to be used
delay - the delay until the operation starts
duration - the duration for the operation

setFont

public void setFont(java.awt.Font newFont,
                    Timing delay,
                    Timing duration)
updates the font of this text component (not supported by all primitives!).

Parameters:
newFont - the new text to be used
delay - the delay until the operation starts
duration - the duration for the operation