org.robokind.impl.animation.xml
Class XPP3AnimationXMLWriter

java.lang.Object
  extended by org.robokind.impl.animation.xml.XPP3AnimationXMLWriter
All Implemented Interfaces:
AnimationFileWriter

public class XPP3AnimationXMLWriter
extends Object
implements AnimationFileWriter

Author:
Matthew Stevenson

Constructor Summary
XPP3AnimationXMLWriter()
           
 
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)
           
static void writeAnimation(org.xmlpull.v1.XmlSerializer xs, Animation a, String file)
           
static void writeChannel(org.xmlpull.v1.XmlSerializer xs, Channel channel)
           
static void writeControlPoint(org.xmlpull.v1.XmlSerializer xs, Point2D p)
           
static void writeControlPoints(org.xmlpull.v1.XmlSerializer xs, List<Point2D> points)
           
static void writeMotionPath(org.xmlpull.v1.XmlSerializer xs, MotionPath mp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPP3AnimationXMLWriter

public XPP3AnimationXMLWriter()
Method Detail

writeAnimation

public void writeAnimation(String path,
                           Animation anim)
                    throws Exception
Specified by:
writeAnimation in interface AnimationFileWriter
Throws:
Exception

writeAnimation

public static void writeAnimation(org.xmlpull.v1.XmlSerializer xs,
                                  Animation a,
                                  String file)
                           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

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-2012. All Rights Reserved.