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.StringBuildermyAnimationMessageprotected java.io.PrintWritermyPrintWriter
-
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 voidappend(double value)Appends the supplied value to the animation messagevoidappend(long value)Appends the supplied value to the animation messagevoidappend(java.lang.String value)Appends the supplied value to the animation messagevoidbeginMessage()Tells the animation generator to begin a new messagevoidcommitMessage()Tells the animation generator to committ the current messagebooleanisStarted()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:AnimationMessageHandlerIfcChecks if a message has been started- Specified by:
isStartedin interfaceAnimationMessageHandlerIfc- Returns:
-
beginMessage
public void beginMessage()
Description copied from interface:AnimationMessageHandlerIfcTells the animation generator to begin a new message- Specified by:
beginMessagein interfaceAnimationMessageHandlerIfc
-
append
public void append(double value)
Description copied from interface:AnimationMessageHandlerIfcAppends the supplied value to the animation message- Specified by:
appendin interfaceAnimationMessageHandlerIfc
-
append
public void append(long value)
Description copied from interface:AnimationMessageHandlerIfcAppends the supplied value to the animation message- Specified by:
appendin interfaceAnimationMessageHandlerIfc
-
append
public void append(java.lang.String value)
Description copied from interface:AnimationMessageHandlerIfcAppends the supplied value to the animation message- Specified by:
appendin interfaceAnimationMessageHandlerIfc
-
commitMessage
public void commitMessage()
Description copied from interface:AnimationMessageHandlerIfcTells the animation generator to committ the current message- Specified by:
commitMessagein interfaceAnimationMessageHandlerIfc
-
-