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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cloneFields
(Cloner cloner, Object original) Callback fromCloner
to convert this shallow-cloned action into a deep-cloned one, using the specified cloner and original to resolve copied fields.double
Returns the length of the tween.getMask()
double
getSpeed()
protected boolean
jmeClone()
Create a shallow clone for the JME cloner.protected void
setForward
(boolean forward) void
setLength
(double length) Alter the length (duration) of this Action.void
setMask
(AnimationMask mask) void
setSpeed
(double speed) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Tween
Returns 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:
jmeClone
in interfaceJmeCloneable
- Returns:
- a new action (not null)
-
cloneFields
Callback fromCloner
to convert this shallow-cloned action into a deep-cloned one, using the specified cloner and original to resolve copied fields.- Specified by:
cloneFields
in interfaceJmeCloneable
- Parameters:
cloner
- the cloner that's cloning this action (not null)original
- the action from which this action was shallow-cloned (unused)
-