Package ucar.visad.display
Class AnimationInfo
java.lang.Object
ucar.visad.display.AnimationInfo
A class to hold and transfer animation properties settings, as to and
 from the AnimationPropertiesDialog.
 
- fwdspeed controls speed of looping forward (seconds/frame) = how long each frame is seen when looping forwards, except first and last frame.
- backspeed controls speed of looping backwards (seconds/frame)= how long each frame is seen when looping reverse, except first and last frame.
- startdwell = how long first frame is seen;
- enddwell = how long last frame is seen;
- direction is the loop going forwards or backwards, true = forwards in time;
- rocking is true if rocking on - looping in both directions, back and forth.
- shared is true if state should be shared with other animation widgets
- Version:
- $Revision: 1.34 $
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringanimation groupprotected floatbackward speedprotected booleanAre boxes visibleprotected booleandirection of loopingprotected floatending dwell rateprotected floatforward speedstatic final StringEnum for reset propertystatic final StringEnum for reset propertystatic final StringEnum for reset propertyprotected StringWhen getting a new animation this determines the reset policyprotected booleanflag for rockingprotected booleanflag for sharingprotected floatstarting dwell rate
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct an object to hold and transfer animation properties settings.AnimationInfo(float fwdSpeed, float backSpeed, float startDwell, float endDwell, boolean direction, boolean rocking) Construct an object to hold and transfer animation properties settings, with values supplied.AnimationInfo(float fwdSpeed, float backSpeed, float startDwell, float endDwell, boolean direction, boolean rocking, boolean shared) Construct an object to hold and transfer animation properties settings, with values supplied.
- 
Method SummaryModifier and TypeMethodDescriptionGet the AnimationGroup property.Get the AnimationSetInfo property.floatGet the BackSpeed property.booleanGet the BoxesVisible property.booleanGet the Direction property.floatGet the EndDwell property.floatGet the FwdSpeed property.Get the ResetPolicy property.booleanGet the Rocking property.booleanGet the Running property.booleanGet the Shared property.booleanGet the ShareIndex property.floatGet the StartDwell property.booleanShould we reset to the startbooleanNo resetbooleanShould we reset to the endvoidset(AnimationInfo that) Set the state of thie AnimationInfo from the state of another.voidsetAnimationGroup(String value) Set the AnimationGroup property.voidSet the AnimationSetInfo property.voidsetBackSpeed(float value) Set the BackSpeed property.voidsetBoxesVisible(boolean value) Set the BoxesVisible property.voidsetDirection(boolean value) Set the Direction property.voidsetEndDwell(float value) Set the EndDwell property.voidsetFwdSpeed(float value) Set the FwdSpeed property.voidsetResetPolicy(String value) Set the ResetPolicy property.voidsetRocking(boolean value) Set the Rocking property.voidsetRunning(boolean value) Set the Running property.voidsetShared(boolean value) Set the Shared property.voidsetShareIndex(boolean value) Set the ShareIndex property.voidsetStartDwell(float value) Set the StartDwell property.toString()String representation of this object.
- 
Field Details- 
RESET_BEGINNINGEnum for reset property- See Also:
 
- 
RESET_CURRENTEnum for reset property- See Also:
 
- 
RESET_ENDEnum for reset property- See Also:
 
- 
resetPolicyWhen getting a new animation this determines the reset policy
- 
boxesVisibleprotected boolean boxesVisibleAre boxes visible
- 
fwdSpeedprotected float fwdSpeedforward speed
- 
backSpeedprotected float backSpeedbackward speed
- 
startDwellprotected float startDwellstarting dwell rate
- 
endDwellprotected float endDwellending dwell rate
- 
directionprotected boolean directiondirection of looping
- 
rockingprotected boolean rockingflag for rocking
- 
animationGroupanimation group
 
- 
- 
Constructor Details- 
AnimationInfopublic AnimationInfo()Construct an object to hold and transfer animation properties settings. Set initial values in seconds which user can change later.
- 
AnimationInfopublic AnimationInfo(float fwdSpeed, float backSpeed, float startDwell, float endDwell, boolean direction, boolean rocking) Construct an object to hold and transfer animation properties settings, with values supplied.- Parameters:
- fwdSpeed- controls speed of looping forward (seconds/frame)
- backSpeed- controls speed of looping backwards (seconds/frame)
- startDwell- duration of pause at start of loop (seconds)
- endDwell- duration of pause at end of loop (seconds)
- direction- is the loop going forwards or backwards
- rocking- is rocking on - looping in both directions
 
- 
AnimationInfopublic AnimationInfo(float fwdSpeed, float backSpeed, float startDwell, float endDwell, boolean direction, boolean rocking, boolean shared) Construct an object to hold and transfer animation properties settings, with values supplied.- Parameters:
- fwdSpeed- controls speed of looping forward (seconds/frame)
- backSpeed- controls speed of looping backwards (seconds/frame)
- startDwell- duration of pause at start of loop (seconds)
- endDwell- duration of pause at end of loop (seconds)
- direction- is the loop going forwards or backwards
- rocking- true if rocking on - looping in both directions
- shared- true if state is to be shared
 
 
- 
- 
Method Details- 
setSet the state of thie AnimationInfo from the state of another.- Parameters:
- that- other AnimationInfo
 
- 
toStringString representation of this object.
- 
setRockingpublic void setRocking(boolean value) Set the Rocking property.- Parameters:
- value- The new value for Rocking
 
- 
getRockingpublic boolean getRocking()Get the Rocking property.- Returns:
- The Rocking
 
- 
setDirectionpublic void setDirection(boolean value) Set the Direction property.- Parameters:
- value- The new value for Direction
 
- 
getDirectionpublic boolean getDirection()Get the Direction property.- Returns:
- The Direction
 
- 
setFwdSpeedpublic void setFwdSpeed(float value) Set the FwdSpeed property.- Parameters:
- value- The new value for FwdSpeed
 
- 
getFwdSpeedpublic float getFwdSpeed()Get the FwdSpeed property.- Returns:
- The FwdSpeed
 
- 
setBackSpeedpublic void setBackSpeed(float value) Set the BackSpeed property.- Parameters:
- value- The new value for BackSpeed
 
- 
getBackSpeedpublic float getBackSpeed()Get the BackSpeed property.- Returns:
- The BackSpeed
 
- 
setStartDwellpublic void setStartDwell(float value) Set the StartDwell property.- Parameters:
- value- The new value for StartDwell
 
- 
getStartDwellpublic float getStartDwell()Get the StartDwell property.- Returns:
- The StartDwell
 
- 
setEndDwellpublic void setEndDwell(float value) Set the EndDwell property.- Parameters:
- value- The new value for EndDwell
 
- 
getEndDwellpublic float getEndDwell()Get the EndDwell property.- Returns:
- The EndDwell
 
- 
setResetPolicySet the ResetPolicy property.- Parameters:
- value- The new value for ResetPolicy
 
- 
getResetPolicyGet the ResetPolicy property.- Returns:
- The ResetPolicy
 
- 
resetToEndpublic boolean resetToEnd()Should we reset to the end- Returns:
- Reset to the end
 
- 
resetToCurrentpublic boolean resetToCurrent()No reset- Returns:
- No reset
 
- 
resetToBeginningpublic boolean resetToBeginning()Should we reset to the start- Returns:
- Reset to the start
 
- 
setBoxesVisiblepublic void setBoxesVisible(boolean value) Set the BoxesVisible property.- Parameters:
- value- The new value for BoxesVisible
 
- 
getBoxesVisiblepublic boolean getBoxesVisible()Get the BoxesVisible property.- Returns:
- The BoxesVisible
 
- 
setAnimationGroupSet the AnimationGroup property.- Parameters:
- value- The new value for AnimationGroup
 
- 
getAnimationGroupGet the AnimationGroup property.- Returns:
- The AnimationGroup
 
- 
setAnimationSetInfoSet the AnimationSetInfo property.- Parameters:
- value- The new value for AnimationSet
 
- 
getAnimationSetInfoGet the AnimationSetInfo property.- Returns:
- The AnimationSetInfo
 
- 
setRunningpublic void setRunning(boolean value) Set the Running property.- Parameters:
- value- The new value for Running
 
- 
getRunningpublic boolean getRunning()Get the Running property.- Returns:
- The Running
 
 
-