org.robokind.impl.animation.xml
Class XPP3AnimationXMLWriter
java.lang.Object
org.robokind.impl.animation.xml.XPP3AnimationXMLWriter
- All Implemented Interfaces:
- AnimationFileWriter
public class XPP3AnimationXMLWriter
- extends Object
- implements AnimationFileWriter
- Author:
- Matthew Stevenson
|
Method Summary |
static void |
writeAddOn(org.xmlpull.v1.XmlSerializer xs,
ServiceAddOn<Playable> addon,
String addonPath)
|
static void |
writeAddOnList(org.xmlpull.v1.XmlSerializer xs,
List<ServiceAddOn<Playable>> addons,
String animPath)
|
void |
writeAnimation(String path,
Animation anim,
ChannelsParameterSource source,
Set<SynchronizedPointGroup> syncPointGroups)
|
static void |
writeAnimation(org.xmlpull.v1.XmlSerializer xs,
Animation a,
String file,
ChannelsParameterSource source,
Set<SynchronizedPointGroup> syncPointGroups)
|
static void |
writeChannel(org.xmlpull.v1.XmlSerializer xs,
Channel channel)
|
static void |
writeChannelsParameter(org.xmlpull.v1.XmlSerializer xs,
ChannelsParameter param)
|
static void |
writeControlPoint(org.xmlpull.v1.XmlSerializer xs,
Point2D p)
|
static void |
writeControlPoints(org.xmlpull.v1.XmlSerializer xs,
List<Point2D> points)
|
static void |
writeGenericParameter(org.xmlpull.v1.XmlSerializer xs,
String key,
String value)
|
static void |
writeMotionPath(org.xmlpull.v1.XmlSerializer xs,
MotionPath mp)
|
static void |
writeNormalizableRange(org.xmlpull.v1.XmlSerializer xs,
NormalizableRange range)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPP3AnimationXMLWriter
public XPP3AnimationXMLWriter()
writeAnimation
public void writeAnimation(String path,
Animation anim,
ChannelsParameterSource source,
Set<SynchronizedPointGroup> syncPointGroups)
throws Exception
- Specified by:
writeAnimation in interface AnimationFileWriter
- Throws:
Exception
writeAnimation
public static void writeAnimation(org.xmlpull.v1.XmlSerializer xs,
Animation a,
String file,
ChannelsParameterSource source,
Set<SynchronizedPointGroup> syncPointGroups)
throws IOException
- Parameters:
xs - a -
- Throws:
IOException
writeChannel
public static void writeChannel(org.xmlpull.v1.XmlSerializer xs,
Channel channel)
throws IOException
- Parameters:
xs - channel -
- Throws:
IOException
writeMotionPath
public static void writeMotionPath(org.xmlpull.v1.XmlSerializer xs,
MotionPath mp)
throws IOException
- Parameters:
xs - mp -
- Throws:
IOException
writeControlPoints
public static void writeControlPoints(org.xmlpull.v1.XmlSerializer xs,
List<Point2D> points)
throws IOException
- Parameters:
xs - points -
- Throws:
IOException
writeControlPoint
public static void writeControlPoint(org.xmlpull.v1.XmlSerializer xs,
Point2D p)
throws IOException
- Parameters:
xs - p -
- Throws:
IOException
writeChannelsParameter
public static void writeChannelsParameter(org.xmlpull.v1.XmlSerializer xs,
ChannelsParameter param)
throws IOException
- Parameters:
xs - param -
- Throws:
IOException
writeNormalizableRange
public static void writeNormalizableRange(org.xmlpull.v1.XmlSerializer xs,
NormalizableRange range)
throws IOException
- Parameters:
xs - range -
- Throws:
IOException
writeGenericParameter
public static void writeGenericParameter(org.xmlpull.v1.XmlSerializer xs,
String key,
String value)
throws IOException
- Parameters:
xs - param - key -
- Throws:
IOException
writeAddOnList
public static void writeAddOnList(org.xmlpull.v1.XmlSerializer xs,
List<ServiceAddOn<Playable>> addons,
String animPath)
throws IOException
- Throws:
IOException
writeAddOn
public static void writeAddOn(org.xmlpull.v1.XmlSerializer xs,
ServiceAddOn<Playable> addon,
String addonPath)
throws Exception
- Throws:
Exception
Copyright © 2011-2013. All Rights Reserved.