weiman.transformations
Class StateMemoryControl
java.lang.Object
weiman.transformations.StateMemoryControl
public class StateMemoryControl
- extends java.lang.Object
- todo: use reset-to-0 button on RSNMDx to stop and reset animation
- todo:gray-out and deactivate kframe boxes whilst clock running
- todo: install cycle button to cycle 0-1
- todo!!! Mar13_2008 backup folder of weiman package!!
13-MAR-2008 NEW ANIMATION FIXES:
- removed "animate" button, replace with play/pause button
- fixed animation so it completes the 0-1 transition at the end
- modified runTweenimation to parametrize on frameRate and duration
Force final step to 1 if within 1/2 frame time at last step
(prevents overflow, cauterizes last step
- todo!!! Mar09_2008 backup folder of this class!!
09-MAR-2008 Play button is eliminated (serves no purpose, keyframe button triggers play)
07-MAR-2008 Fixed animation bug so interpolation runs [0,1]
in runTweenimation -> new RunTimer(dur, slices + 1 ) and trap over-1 just in case in interpolation factor
Also extended range of runspinnernumbermodel to interpolate in (-2, 2)
THIS CLASS IS A SINGLETON
This class captures data directly from the GUI during operation
This class should have responsibility to format and store data from
StateVariablesControl because it is the control for SVC
Copyright Carl Weiman, November, 2006, March 13, 2008
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keyFrameMemory
public java.util.ArrayList keyFrameMemory
stateFileManager
public static StateFileManager stateFileManager
getStateMemoryControl
public static StateMemoryControl getStateMemoryControl()
doAnimate
public void doAnimate(boolean selected)
play
public void play(int i)
runTweenimation3ToGif
public void runTweenimation3ToGif(java.util.ArrayList _state1,
java.util.ArrayList _state2,
int _frameRate,
int _totalDuration)
runTweenimation3
public void runTweenimation3(java.util.ArrayList _state1,
java.util.ArrayList _state2,
int _frameRate,
int _totalDuration)
- Parameters:
_state1
- - Full memory content, including string name_state2
- - Full memory content, including string name_frameRate
- - Frames per second_totalDuration
- - Milliseconds total duration
toDisplayStringFromMemory
public java.lang.String toDisplayStringFromMemory()
printMemory
public void printMemory()
main
public static void main(java.lang.String[] args)
setFrameStart
public void setFrameStart(int frameStart)
setFrameStop
public void setFrameStop(int frameStop)
isLooping
public boolean isLooping()
setLooping
public void setLooping(boolean looping)
getFrameRate
public int getFrameRate()
setFrameRate
public void setFrameRate(int frameRate)