|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.integration.animation_motion.DefaultAnimationPlayer
public class DefaultAnimationPlayer
AnimationPlayer which creates AnimationJobFrameSource and registers them with the OSGi service registry to be used as FrameSources.
Constructor Summary | |
---|---|
DefaultAnimationPlayer(org.osgi.framework.BundleContext context,
org.robokind.api.motion.Robot.Id robotId)
Creates a new OSGiAnimationPlayer using the given BundleContext. |
Method Summary | |
---|---|
List<org.robokind.api.animation.player.AnimationJob> |
getCurrentAnimations()
|
org.robokind.api.motion.Robot.Id |
getRobotId()
Returns the robotId this Animation Player uses. |
long |
getStepLength()
Returns the step length for new AnimationJobs. |
org.robokind.api.animation.player.AnimationJob |
playAnimation(org.robokind.api.animation.Animation animation)
|
org.robokind.api.animation.player.AnimationJob |
playAnimation(org.robokind.api.animation.Animation animation,
Long start,
Long stop)
|
void |
removeAnimationJob(org.robokind.api.animation.player.AnimationJob job)
|
void |
setRobotId(org.robokind.api.motion.Robot.Id robotId)
|
void |
setStepLength(long val)
Sets the step length for AnimationJobs created by this player. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAnimationPlayer(org.osgi.framework.BundleContext context, org.robokind.api.motion.Robot.Id robotId)
context
- BundleContext to be used by the OSGiAnimationPlayerMethod Detail |
---|
public void setRobotId(org.robokind.api.motion.Robot.Id robotId)
public org.robokind.api.motion.Robot.Id getRobotId()
public void setStepLength(long val)
val
- new step length in millisecondspublic long getStepLength()
public org.robokind.api.animation.player.AnimationJob playAnimation(org.robokind.api.animation.Animation animation)
playAnimation
in interface org.robokind.api.animation.player.AnimationPlayer
public List<org.robokind.api.animation.player.AnimationJob> getCurrentAnimations()
getCurrentAnimations
in interface org.robokind.api.animation.player.AnimationPlayer
public void removeAnimationJob(org.robokind.api.animation.player.AnimationJob job)
removeAnimationJob
in interface org.robokind.api.animation.player.AnimationPlayer
public org.robokind.api.animation.player.AnimationJob playAnimation(org.robokind.api.animation.Animation animation, Long start, Long stop)
playAnimation
in interface org.robokind.api.animation.player.AnimationPlayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |