XMT-O Reference Software

xmto2xmta.tree
Class animateMotion

java.lang.Object
  |
  +--xmto2xmta.tree.TreeElement
        |
        +--xmto2xmta.tree.ConvertElement
              |
              +--xmto2xmta.tree.TimingElement
                    |
                    +--xmto2xmta.tree.AnimationBaseElement
                          |
                          +--xmto2xmta.tree.AnimationElement
                                |
                                +--xmto2xmta.tree.animateMotion

public class animateMotion
extends AnimationElement

Class to handle the conversion of the animationMotion element.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  java.lang.String xmtoAttrOrigin_
           
private  java.lang.String xmtoAttrPath_
           
 
Fields inherited from class xmto2xmta.tree.AnimationElement
animationElementRes_, animationInterpolation_, xmtaAttrCycleInterval_, xmtaAttrKey_, xmtaAttrKeyValue_, xmtaAttrLoop_, xmtaInterpolatorIds_, xmtaTimeSensorIds_, xmto2XmtaRes_, xmtoAttrAccumulate_, xmtoAttrAdditive_, xmtoAttrBy_, xmtoAttrCalcMode_, xmtoAttrFrom_, xmtoAttrKeySplines_, xmtoAttrKeyTimes_, xmtoAttrValues_
 
Fields inherited from class xmto2xmta.tree.AnimationBaseElement
animationBaseElementRes_, xmtoAttrTargetAnimatableElement_, xmtoAttrTargetElement_, xmtoAttrTo_, xmtoAttrXlinkHref_
 
Fields inherited from class xmto2xmta.tree.TimingElement
timingElementRes_, xmtoAttrBegin_, xmtoAttrDur_, xmtoAttrEnd_, xmtoAttrEndsync_, xmtoAttrFill_, xmtoAttrFillDefault_, xmtoAttrMax_, xmtoAttrMin_, xmtoAttrRepeatCount_, xmtoAttrRepeatDur_, xmtoAttrRestart_, xmtoAttrRestartDefault_
 
Fields inherited from class xmto2xmta.tree.ConvertElement
convertIndexTable_, index_, xmtaDoc_, xmtaIds_, xmtaParNodes_, xmtaParOds_, xmtaParRoutes_, xmto2Xmta_, xmtoAttrId_, xmtoElement_, xmtoIds_
 
Fields inherited from class xmto2xmta.tree.TreeElement
children, parent_
 
Constructor Summary
animateMotion(org.w3c.dom.Element xmtoElement, java.util.Hashtable xmtoIds, java.util.Hashtable xmtaIds, java.util.Hashtable convertIndexTable, org.w3c.dom.Document xmtaDoc, Xmto2Xmta xmto2Xmta)
          constructor.
 
Method Summary
 java.lang.String getXmtoAttrOrigin()
           
 java.lang.String getXmtoAttrPath()
           
protected  boolean handleValidateSyntax(java.lang.String attributeName, java.lang.String attributeValue)
          Handle the attribute by checking its syntax.
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 java.lang.String toString()
           
 boolean validateSyntax()
          Validate the syntax of the element.
 
Methods inherited from class xmto2xmta.tree.AnimationElement
getMFTypeField, getXmtaAttrCycleInterval, getXmtaAttrKey, getXmtaAttrKeyValue, getXmtaAttrLoop, getXmtaInterpolatorId, getXmtaTimeSensorId, getXmtoAttrAccumulate, getXmtoAttrAdditive, getXmtoAttrBy, getXmtoAttrCalcMode, getXmtoAttrFrom, getXmtoAttrKeySplines, getXmtoAttrKeyTimes, getXmtoAttrValues, validateSyntaxInterpolatorKeysValues, validateSyntaxInterpolatorKeysValuesSFColor, validateSyntaxInterpolatorKeysValuesSFFloat, validateSyntaxInterpolatorKeysValuesSFVec2f
 
Methods inherited from class xmto2xmta.tree.AnimationBaseElement
getXmtoAttrTargetElement, getXmtoAttrTargetObject, getXmtoAttrTo, getXmtoAttrXlinkHref
 
Methods inherited from class xmto2xmta.tree.TimingElement
getXmtoAttrBegin, getXmtoAttrDur, getXmtoAttrEnd, getXmtoAttrEndsync, getXmtoAttrFill, getXmtoAttrFillDefault, getXmtoAttrMax, getXmtoAttrMin, getXmtoAttrRepeatCount, getXmtoAttrRepeatDur, getXmtoAttrRepeatRestart, getXmtoAttrRepeatRestartDefault, validateDefsObjectTimingSyntax
 
Methods inherited from class xmto2xmta.tree.ConvertElement
addToParNode, addToParOd, addToParRoutes, createChildren, fireErrorEvent, fireErrorEvent, fireErrorEvent, getConvertIndexTable, getIndex, getXmtaDoc, getXmtaIds, getXmto2Xmta, getXmtoAttrId, getXmtoElement, getXmtoIds, insertIntoXmtaTree, remove
 
Methods inherited from class xmto2xmta.tree.TreeElement
addChild, getChildren, getParent, removeChild, setParent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

debug_

private static boolean debug_
Whether debug information is to be printed to the console. default is not have debug information printed (false).

xmtoAttrOrigin_

private java.lang.String xmtoAttrOrigin_

xmtoAttrPath_

private java.lang.String xmtoAttrPath_
Constructor Detail

animateMotion

public animateMotion(org.w3c.dom.Element xmtoElement,
                     java.util.Hashtable xmtoIds,
                     java.util.Hashtable xmtaIds,
                     java.util.Hashtable convertIndexTable,
                     org.w3c.dom.Document xmtaDoc,
                     Xmto2Xmta xmto2Xmta)
constructor.
Parameters:
xmtoElement - XMT-O element for conversion.
xmtoIds - hashtable to contain XMT-O Conversion elements with the key of their XMT-O id.
xmtaIds - hashtable to contain XMT-A elements with the key of their XMT-A id.
xmtaDoc - DOM Document for the new XMT-A elements.
xmto2Xmta - Converter, used for firing error events.
Method Detail

getXmtoAttrOrigin

public java.lang.String getXmtoAttrOrigin()

getXmtoAttrPath

public java.lang.String getXmtoAttrPath()
Overrides:
getXmtoAttrPath in class AnimationElement

handleValidateSyntax

protected boolean handleValidateSyntax(java.lang.String attributeName,
                                       java.lang.String attributeValue)
Handle the attribute by checking its syntax. This is to catch all syntax errors which the schema can not check for, and thus the DOM parser doesn't find any problems. Call the parent handler to see if it can handle the attribute or not.
Overrides:
handleValidateSyntax in class AnimationElement
Parameters:
attributeName - node name of attribute.
attributeValue - node value of attribute.
Returns:
whether this attribute is handled or not.

setDebug

public static void setDebug(boolean debug)
Enable debugging information to be printed to the console.
Parameters:
debug - sets debug information is printed

toString

public java.lang.String toString()
Overrides:
toString in class TreeElement

validateSyntax

public boolean validateSyntax()
Validate the syntax of the element. This is to catch all syntax errors which the schema can not check for, and thus the DOM parser doesn't find any problems. Mainly check the begin, dur and end values to see they are valid timing attributes. If this is a problem then remove this node from the tree.
Overrides:
validateSyntax in class AnimationBaseElement

XMT-O Reference Software