org.robokind.impl.animation.xml
Class XPP3AnimationXMLWriter
java.lang.Object
org.robokind.impl.animation.xml.XPP3AnimationXMLWriter
- All Implemented Interfaces:
- org.robokind.api.animation.xml.AnimationFileWriter
public class XPP3AnimationXMLWriter
- extends Object
- implements org.robokind.api.animation.xml.AnimationFileWriter
- Author:
- Matthew Stevenson
Method Summary |
static void |
writeAddOn(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.common.services.addon.ServiceAddOn<org.robokind.api.common.playable.Playable> addon,
String addonPath)
|
static void |
writeAddOnList(org.xmlpull.v1.XmlSerializer xs,
List<org.robokind.api.common.services.addon.ServiceAddOn<org.robokind.api.common.playable.Playable>> addons,
String animPath)
|
void |
writeAnimation(String path,
org.robokind.api.animation.Animation anim,
org.robokind.api.animation.utils.ChannelsParameterSource source,
Set<org.robokind.api.animation.editor.features.SynchronizedPointGroup> syncPointGroups)
|
static void |
writeAnimation(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.animation.Animation a,
String file,
org.robokind.api.animation.utils.ChannelsParameterSource source,
Set<org.robokind.api.animation.editor.features.SynchronizedPointGroup> syncPointGroups)
|
static void |
writeChannel(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.animation.Channel channel)
|
static void |
writeChannelsParameter(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.animation.utils.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,
org.robokind.api.animation.MotionPath mp)
|
static void |
writeNormalizableRange(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.common.position.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,
org.robokind.api.animation.Animation anim,
org.robokind.api.animation.utils.ChannelsParameterSource source,
Set<org.robokind.api.animation.editor.features.SynchronizedPointGroup> syncPointGroups)
throws Exception
- Specified by:
writeAnimation
in interface org.robokind.api.animation.xml.AnimationFileWriter
- Throws:
Exception
writeAnimation
public static void writeAnimation(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.animation.Animation a,
String file,
org.robokind.api.animation.utils.ChannelsParameterSource source,
Set<org.robokind.api.animation.editor.features.SynchronizedPointGroup> syncPointGroups)
throws IOException
- Parameters:
xs
- a
-
- Throws:
IOException
writeChannel
public static void writeChannel(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.animation.Channel channel)
throws IOException
- Parameters:
xs
- channel
-
- Throws:
IOException
writeMotionPath
public static void writeMotionPath(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.animation.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,
org.robokind.api.animation.utils.ChannelsParameter param)
throws IOException
- Parameters:
xs
- param
-
- Throws:
IOException
writeNormalizableRange
public static void writeNormalizableRange(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.common.position.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<org.robokind.api.common.services.addon.ServiceAddOn<org.robokind.api.common.playable.Playable>> addons,
String animPath)
throws IOException
- Throws:
IOException
writeAddOn
public static void writeAddOn(org.xmlpull.v1.XmlSerializer xs,
org.robokind.api.common.services.addon.ServiceAddOn<org.robokind.api.common.playable.Playable> addon,
String addonPath)
throws Exception
- Throws:
Exception
Copyright © 2011-2013. All Rights Reserved.