xmto2xmta.tree
Class AnimationElement
java.lang.Object
|
+--xmto2xmta.tree.TreeElement
|
+--xmto2xmta.tree.ConvertElement
|
+--xmto2xmta.tree.TimingElement
|
+--xmto2xmta.tree.AnimationBaseElement
|
+--xmto2xmta.tree.AnimationElement
- Direct Known Subclasses:
- animate, animateMotion
- public abstract class AnimationElement
- extends AnimationBaseElement
Class to group together the various type of animation elements.
History:
- 13 Dec 2000 - Created file.
- 19 Apr 2001 - Add simple lifecycle support.
- 30 Jun 2001 - Add interpolator support
- 30 Jun 2001 - Fix bug, on validating syntax if problem with parent then
return directly the problem.
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_ |
Constructor Summary |
AnimationElement(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. |
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 java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
debug_
private static boolean debug_
- Whether debug information is to be printed to the console.
default is not have debug information printed (false).
xmtoAttrFrom_
private java.lang.String xmtoAttrFrom_
xmtoAttrBy_
private java.lang.String xmtoAttrBy_
xmtoAttrValues_
private java.lang.String xmtoAttrValues_
xmtoAttrCalcMode_
private java.lang.String xmtoAttrCalcMode_
xmtoAttrKeyTimes_
private java.lang.String xmtoAttrKeyTimes_
xmtoAttrKeySplines_
private java.lang.String xmtoAttrKeySplines_
xmtoAttrAdditive_
private java.lang.String xmtoAttrAdditive_
xmtoAttrAccumulate_
private java.lang.String xmtoAttrAccumulate_
animationInterpolation_
private AnimationInterpolation animationInterpolation_
xmtaAttrKey_
private java.lang.String xmtaAttrKey_
xmtaAttrKeyValue_
private java.lang.String xmtaAttrKeyValue_
xmtaAttrCycleInterval_
private TimingAttribute xmtaAttrCycleInterval_
xmtaAttrLoop_
private java.lang.String xmtaAttrLoop_
xmtaInterpolatorIds_
private java.util.Hashtable xmtaInterpolatorIds_
xmtaTimeSensorIds_
private java.util.Hashtable xmtaTimeSensorIds_
animationElementRes_
private java.util.ResourceBundle animationElementRes_
xmto2XmtaRes_
private java.util.ResourceBundle xmto2XmtaRes_
AnimationElement
public AnimationElement(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.
getMFTypeField
private int getMFTypeField(int sfType)
- Validate the syntax of the interpolator keys and values.
This will generate the keys and values and check if there are any errors
with these values.
If this is a problem then remove this node from the tree.
getXmtaAttrCycleInterval
public TimingAttribute getXmtaAttrCycleInterval()
getXmtaAttrKey
public java.lang.String getXmtaAttrKey()
getXmtaAttrKeyValue
public java.lang.String getXmtaAttrKeyValue()
getXmtaAttrLoop
public java.lang.String getXmtaAttrLoop()
getXmtaInterpolatorId
public java.lang.String getXmtaInterpolatorId(ELASid elasId)
- Get the id for the Interpolator element.
- Returns:
- the id (DEF) of the XMT-A time sensor.
getXmtaTimeSensorId
public java.lang.String getXmtaTimeSensorId(ELASid elasId)
- Get the id for the TimeSensor element.
- Returns:
- the id (DEF) of the XMT-A time sensor.
getXmtoAttrAccumulate
public java.lang.String getXmtoAttrAccumulate()
getXmtoAttrAdditive
public java.lang.String getXmtoAttrAdditive()
getXmtoAttrBy
public java.lang.String getXmtoAttrBy()
getXmtoAttrCalcMode
public java.lang.String getXmtoAttrCalcMode()
getXmtoAttrFrom
public java.lang.String getXmtoAttrFrom()
getXmtoAttrKeySplines
public java.lang.String getXmtoAttrKeySplines()
getXmtoAttrKeyTimes
public java.lang.String getXmtoAttrKeyTimes()
getXmtoAttrPath
public java.lang.String getXmtoAttrPath()
getXmtoAttrValues
public java.lang.String getXmtoAttrValues()
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 AnimationBaseElement
- 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
validateSyntaxInterpolatorKeysValues
protected boolean validateSyntaxInterpolatorKeysValues(java.lang.String xmtoAttrAttributeName)
- Validate the syntax of the interpolator keys and values.
This will generate the keys and values and check if there are any errors
with these values.
If this is a problem then remove this node from the tree.
validateSyntaxInterpolatorKeysValuesSFColor
private boolean validateSyntaxInterpolatorKeysValuesSFColor(java.lang.String xmtoAttrAttributeName)
- Validate the syntax of the interpolator keys and values.
This will generate the keys and values and check if there are any errors
with these values.
If this is a problem then remove this node from the tree.
validateSyntaxInterpolatorKeysValuesSFFloat
private boolean validateSyntaxInterpolatorKeysValuesSFFloat(java.lang.String xmtoAttrAttributeName)
- Validate the syntax of the interpolator keys and values.
This will generate the keys and values and check if there are any errors
with these values.
If this is a problem then remove this node from the tree.
validateSyntaxInterpolatorKeysValuesSFVec2f
private boolean validateSyntaxInterpolatorKeysValuesSFVec2f(java.lang.String xmtoAttrAttributeName)
- Validate the syntax of the interpolator keys and values.
This will generate the keys and values and check if there are any errors
with these values.
If this is a problem then remove this node from the tree.