public class AnimationInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
animationGroup
animation group
|
protected float |
backSpeed
backward speed
|
protected boolean |
boxesVisible
Are boxes visible
|
protected boolean |
direction
direction of looping
|
protected float |
endDwell
ending dwell rate
|
protected float |
fwdSpeed
forward speed
|
static java.lang.String |
RESET_BEGINNING
Enum for reset property
|
static java.lang.String |
RESET_CURRENT
Enum for reset property
|
static java.lang.String |
RESET_END
Enum for reset property
|
protected java.lang.String |
resetPolicy
When getting a new animation this determines the reset policy
|
protected boolean |
rocking
flag for rocking
|
protected boolean |
shared
flag for sharing
|
protected float |
startDwell
starting dwell rate
|
Constructor and Description |
---|
AnimationInfo()
Construct 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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAnimationGroup()
Get the AnimationGroup property.
|
AnimationSetInfo |
getAnimationSetInfo()
Get the AnimationSetInfo property.
|
float |
getBackSpeed()
Get the BackSpeed property.
|
boolean |
getBoxesVisible()
Get the BoxesVisible property.
|
boolean |
getDirection()
Get the Direction property.
|
float |
getEndDwell()
Get the EndDwell property.
|
float |
getFwdSpeed()
Get the FwdSpeed property.
|
java.lang.String |
getResetPolicy()
Get the ResetPolicy property.
|
boolean |
getRocking()
Get the Rocking property.
|
boolean |
getRunning()
Get the Running property.
|
boolean |
getShared()
Get the Shared property.
|
boolean |
getShareIndex()
Get the ShareIndex property.
|
float |
getStartDwell()
Get the StartDwell property.
|
boolean |
resetToBeginning()
Should we reset to the start
|
boolean |
resetToCurrent()
No reset
|
boolean |
resetToEnd()
Should we reset to the end
|
void |
set(AnimationInfo that)
Set the state of thie AnimationInfo from the state of
another.
|
void |
setAnimationGroup(java.lang.String value)
Set the AnimationGroup property.
|
void |
setAnimationSetInfo(AnimationSetInfo value)
Set the AnimationSetInfo property.
|
void |
setBackSpeed(float value)
Set the BackSpeed property.
|
void |
setBoxesVisible(boolean value)
Set the BoxesVisible property.
|
void |
setDirection(boolean value)
Set the Direction property.
|
void |
setEndDwell(float value)
Set the EndDwell property.
|
void |
setFwdSpeed(float value)
Set the FwdSpeed property.
|
void |
setResetPolicy(java.lang.String value)
Set the ResetPolicy property.
|
void |
setRocking(boolean value)
Set the Rocking property.
|
void |
setRunning(boolean value)
Set the Running property.
|
void |
setShared(boolean value)
Set the Shared property.
|
void |
setShareIndex(boolean value)
Set the ShareIndex property.
|
void |
setStartDwell(float value)
Set the StartDwell property.
|
java.lang.String |
toString()
String representation of this object.
|
public static final java.lang.String RESET_BEGINNING
public static final java.lang.String RESET_CURRENT
public static final java.lang.String RESET_END
protected java.lang.String resetPolicy
protected boolean boxesVisible
protected float fwdSpeed
protected float backSpeed
protected float startDwell
protected float endDwell
protected boolean direction
protected boolean rocking
protected boolean shared
protected java.lang.String animationGroup
public AnimationInfo()
public AnimationInfo(float fwdSpeed, float backSpeed, float startDwell, float endDwell, boolean direction, boolean rocking)
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 backwardsrocking
- is rocking on - looping in both directionspublic AnimationInfo(float fwdSpeed, float backSpeed, float startDwell, float endDwell, boolean direction, boolean rocking, boolean shared)
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 backwardsrocking
- true if rocking on - looping in both directionsshared
- true if state is to be sharedpublic void set(AnimationInfo that)
that
- other AnimationInfopublic java.lang.String toString()
toString
in class java.lang.Object
public void setShared(boolean value)
value
- The new value for Sharedpublic boolean getShared()
public void setRocking(boolean value)
value
- The new value for Rockingpublic boolean getRocking()
public void setDirection(boolean value)
value
- The new value for Directionpublic boolean getDirection()
public void setFwdSpeed(float value)
value
- The new value for FwdSpeedpublic float getFwdSpeed()
public void setBackSpeed(float value)
value
- The new value for BackSpeedpublic float getBackSpeed()
public void setStartDwell(float value)
value
- The new value for StartDwellpublic float getStartDwell()
public void setEndDwell(float value)
value
- The new value for EndDwellpublic float getEndDwell()
public void setResetPolicy(java.lang.String value)
value
- The new value for ResetPolicypublic java.lang.String getResetPolicy()
public boolean resetToEnd()
public boolean resetToCurrent()
public boolean resetToBeginning()
public void setBoxesVisible(boolean value)
value
- The new value for BoxesVisiblepublic boolean getBoxesVisible()
public void setAnimationGroup(java.lang.String value)
value
- The new value for AnimationGrouppublic java.lang.String getAnimationGroup()
public void setAnimationSetInfo(AnimationSetInfo value)
value
- The new value for AnimationSetpublic AnimationSetInfo getAnimationSetInfo()
public void setRunning(boolean value)
value
- The new value for Runningpublic boolean getRunning()
public void setShareIndex(boolean value)
value
- The new value for ShareIndexpublic boolean getShareIndex()