Package com.jme3.anim.tween.action
Class Action
java.lang.Object
com.jme3.anim.tween.action.Action
- All Implemented Interfaces:
Tween,JmeCloneable,Cloneable
- Direct Known Subclasses:
BaseAction,BlendableAction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloneFields(Cloner cloner, Object original) Callback fromClonerto convert this shallow-cloned action into a deep-cloned one, using the specified cloner and original to resolve copied fields.doubleReturns the length of the tween.getMask()doublegetSpeed()protected booleanjmeClone()Create a shallow clone for the JME cloner.protected voidsetForward(boolean forward) voidsetLength(double length) Alter the length (duration) of this Action.voidsetMask(AnimationMask mask) voidsetSpeed(double speed) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jme3.anim.tween.Tween
interpolate
-
Field Details
-
actions
-
-
Constructor Details
-
Action
-
-
Method Details
-
getLength
public double getLength()Description copied from interface:TweenReturns the length of the tween. If 't' represents time in seconds then this is the notional time in seconds that the tween will run. Note: all the caveats are because tweens may be externally scaled in such a way that 't' no longer represents actual time. -
setLength
public void setLength(double length) Alter the length (duration) of this Action. This can be used to extend or truncate an Action.- Parameters:
length- the desired length (in unscaled seconds, default=0)
-
getSpeed
public double getSpeed() -
setSpeed
public void setSpeed(double speed) -
getMask
-
setMask
-
isForward
protected boolean isForward() -
setForward
protected void setForward(boolean forward) -
jmeClone
Create a shallow clone for the JME cloner.- Specified by:
jmeClonein interfaceJmeCloneable- Returns:
- a new action (not null)
-
cloneFields
Callback fromClonerto convert this shallow-cloned action into a deep-cloned one, using the specified cloner and original to resolve copied fields.- Specified by:
cloneFieldsin interfaceJmeCloneable- Parameters:
cloner- the cloner that's cloning this action (not null)original- the action from which this action was shallow-cloned (unused)
-