Package jsl.observers.animation
Class AnimationTextFileGenerator
- java.lang.Object
-
- jsl.observers.animation.AnimationTextFileGenerator
-
- All Implemented Interfaces:
AnimationMessageHandlerIfc
public class AnimationTextFileGenerator extends java.lang.Object implements AnimationMessageHandlerIfc
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringBuilder
myAnimationMessage
protected java.io.PrintWriter
myPrintWriter
-
Constructor Summary
Constructors Constructor Description AnimationTextFileGenerator(java.lang.String name)
AnimationTextFileGenerator(java.lang.String directory, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(double value)
Appends the supplied value to the animation messagevoid
append(long value)
Appends the supplied value to the animation messagevoid
append(java.lang.String value)
Appends the supplied value to the animation messagevoid
beginMessage()
Tells the animation generator to begin a new messagevoid
commitMessage()
Tells the animation generator to committ the current messageboolean
isStarted()
Checks if a message has been started
-
-
-
Constructor Detail
-
AnimationTextFileGenerator
public AnimationTextFileGenerator(java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
AnimationTextFileGenerator
public AnimationTextFileGenerator(java.lang.String directory, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
isStarted
public boolean isStarted()
Description copied from interface:AnimationMessageHandlerIfc
Checks if a message has been started- Specified by:
isStarted
in interfaceAnimationMessageHandlerIfc
- Returns:
-
beginMessage
public void beginMessage()
Description copied from interface:AnimationMessageHandlerIfc
Tells the animation generator to begin a new message- Specified by:
beginMessage
in interfaceAnimationMessageHandlerIfc
-
append
public void append(double value)
Description copied from interface:AnimationMessageHandlerIfc
Appends the supplied value to the animation message- Specified by:
append
in interfaceAnimationMessageHandlerIfc
-
append
public void append(long value)
Description copied from interface:AnimationMessageHandlerIfc
Appends the supplied value to the animation message- Specified by:
append
in interfaceAnimationMessageHandlerIfc
-
append
public void append(java.lang.String value)
Description copied from interface:AnimationMessageHandlerIfc
Appends the supplied value to the animation message- Specified by:
append
in interfaceAnimationMessageHandlerIfc
-
commitMessage
public void commitMessage()
Description copied from interface:AnimationMessageHandlerIfc
Tells the animation generator to committ the current message- Specified by:
commitMessage
in interfaceAnimationMessageHandlerIfc
-
-