public class AnimationUtils extends Object
| Constructor and Description |
|---|
AnimationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAnimationToLibrary(org.osgi.framework.BundleContext context,
Animation animation,
String filter) |
static Animation |
fetchAnimation(org.osgi.framework.BundleContext context,
String animVersionName,
String filter) |
static Animation |
fetchAnimation(org.osgi.framework.BundleContext context,
org.jflux.api.common.rk.config.VersionProperty animVersion,
String filter) |
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.
|
static ChannelsParameterSource |
getChannelsParameterSource() |
static AnimationLibrary |
loadAnimationLibrary(org.osgi.framework.BundleContext context,
String libraryId,
String animationPath,
boolean recursive,
FilenameFilter filenameFilter) |
static AnimationJob |
playAnimation(org.osgi.framework.BundleContext context,
String filter,
Animation anim)
Fetches an AnimationPlayer and plays the given Animation.
|
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.
|
static org.osgi.framework.ServiceRegistration |
registerAnimationLibrary(org.osgi.framework.BundleContext context,
AnimationLibrary library,
Properties serviceProps) |
static void |
writePositions(long x,
Map<Integer,Double> channelPositions) |
public static ChannelsParameterSource getChannelsParameterSource()
public static org.osgi.framework.ServiceReference getAnimationPlayerReference(org.osgi.framework.BundleContext context,
String filter)
context - BundleContext to usefilter - option OSGi filter Stringpublic static AnimationJob playAnimation(org.osgi.framework.BundleContext context, String filter, Animation anim)
context - BundleContext to usefilter - option OSGi filter Stringanim - Animation to playpublic static AnimationJob playAnimation(org.osgi.framework.BundleContext context, String filter, Animation anim, long startTime, long stopTime)
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 animationpublic static AnimationLibrary loadAnimationLibrary(org.osgi.framework.BundleContext context, String libraryId, String animationPath, boolean recursive, FilenameFilter filenameFilter)
public static org.osgi.framework.ServiceRegistration registerAnimationLibrary(org.osgi.framework.BundleContext context,
AnimationLibrary library,
Properties serviceProps)
public static void addAnimationToLibrary(org.osgi.framework.BundleContext context,
Animation animation,
String filter)
public static Animation fetchAnimation(org.osgi.framework.BundleContext context, org.jflux.api.common.rk.config.VersionProperty animVersion, String filter)
Copyright © 2011-2016. All Rights Reserved.