org.robokind.api.animation.utils
Class AnimationUtils
java.lang.Object
org.robokind.api.animation.utils.AnimationUtils
public class AnimationUtils
- extends Object
- Author:
- Matthew Stevenson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnimationUtils
public AnimationUtils()
getChannelsParameterSource
public static ChannelsParameterSource getChannelsParameterSource()
writePositions
public static void writePositions(long x,
Map<Integer,Double> channelPositions)
getAnimationPlayerReference
public static org.osgi.framework.ServiceReference getAnimationPlayerReference(org.osgi.framework.BundleContext context,
String filter)
- Returns a ServiceReference for an AnimationPlayer matching the filter if
it is not null.
- Parameters:
context
- BundleContext to usefilter
- option OSGi filter String
- Returns:
- ServiceReference for an AnimationPlayer matching the filter if
it is not null
playAnimation
public static AnimationJob playAnimation(org.osgi.framework.BundleContext context,
String filter,
Animation anim)
- Fetches an AnimationPlayer and plays the given Animation. If a filter
String is provided, it is used to match an AnimationPlayer.
- Parameters:
context
- BundleContext to usefilter
- option OSGi filter Stringanim
- Animation to play
- Returns:
- AnimationJob created from playing the Animation, returns null
if unsuccessful
playAnimation
public static AnimationJob playAnimation(org.osgi.framework.BundleContext context,
String filter,
Animation anim,
long startTime,
long stopTime)
- Fetches an AnimationPlayer and plays the given Animation with the given
start and stop time. If a filter
String is provided, it is used to match an AnimationPlayer.
- Parameters:
context
- BundleContext to usefilter
- option OSGi filter Stringanim
- Animation to playstartTime
- Animation start time in milliseconds from the beginning
of the animationstopTime
- Animation stop time in milliseconds from the beginning
of the animation
- Returns:
- AnimationJob created from playing the Animation, returns null
if unsuccessful
Copyright © 2011. All Rights Reserved.