XMT-O Reference Software

xmto2xmta.tree
Class img

java.lang.Object
  |
  +--xmto2xmta.tree.TreeElement
        |
        +--xmto2xmta.tree.ConvertElement
              |
              +--xmto2xmta.tree.TimingElement
                    |
                    +--xmto2xmta.tree.MediaElement
                          |
                          +--xmto2xmta.tree.ExternalElement
                                |
                                +--xmto2xmta.tree.ExternalVisualElement
                                      |
                                      +--xmto2xmta.tree.img
All Implemented Interfaces:
DefsObject, ParContainable, Sensorable, VisualElement

public class img
extends ExternalVisualElement
implements DefsObject

Class to handle the conversion of the rectangle element.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  boolean isDefsParent_
           
private  boolean isInDefsTree_
           
private  boolean isInDefsTreeInitialized_
           
private  java.util.Hashtable xmtaImageTextureIds_
           
 
Fields inherited from class xmto2xmta.tree.ExternalVisualElement
xmtaAppearanceIds_
 
Fields inherited from class xmto2xmta.tree.ExternalElement
externalElementRes_, FILE_URL_PREFIX, ODID_URL_PREFIX, xmtaEsDescriptorIds_, xmtaObjectDescriptorIds_, xmtoAttrSrc_
 
Fields inherited from class xmto2xmta.tree.MediaElement
classesLoaded_, enableTouchSensor_, groupClass_, headClass_, xmtaConditionalDeleteIds_, xmtaConditionalDeleteTimerIds_, xmtaConditionalInsertIds_, xmtaConditionalInsertTimerIds_, xmtaGroupIds_, xmtaSwitchIds_, xmtaTimeSensorBeginOffsetIds_, xmtaTimeSensorEndOffsetIds_, xmtaTouchSensorIds_, xmtaTransform2dIds_, xmtaValuatorIds_, xmto2XmtaRes_, xmtoAttrRegion_
 
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
img(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 getXmtaDefsId()
          Get the defs id of the object.
 java.lang.String getXmtaImageTextureId(ELASid elasId)
          Get the id for the ImageTexture element.
 void initDefsFlags()
          Routine to initialize the defs query flags.
 boolean isDefsParent()
          Determine whether the object is a child of the defs element or not.
 boolean isInDefsTree()
          Determine whether the object is in the defs tree or not.
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 java.lang.String toString()
           
 
Methods inherited from class xmto2xmta.tree.ExternalVisualElement
getXmtaAppearanceId
 
Methods inherited from class xmto2xmta.tree.ExternalElement
getXmtaEsDescriptorId, getXmtaObjectDescriptorId, getXmtoAttrSrc, getXmtoAttrSrcCanonical, handleValidateSyntax, validateSyntax
 
Methods inherited from class xmto2xmta.tree.MediaElement
enableTouchSensor, getXmtaConditionalDeleteId, getXmtaConditionalDeleteTimerId, getXmtaConditionalInsertId, getXmtaConditionalInsertTimerId, getXmtaGroupId, getXmtaSwitchId, getXmtaTimeSensorBeginOffsetId, getXmtaTimeSensorEndOffsetId, getXmtaTouchSensorId, getXmtaTransform2dId, getXmtaValuatorId, getXmtoAttrRegion, loadClasses, touchSensorEnabled
 
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).

xmtaImageTextureIds_

private java.util.Hashtable xmtaImageTextureIds_

isInDefsTreeInitialized_

private boolean isInDefsTreeInitialized_

isInDefsTree_

private boolean isInDefsTree_

isDefsParent_

private boolean isDefsParent_
Constructor Detail

img

public img(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

getXmtaDefsId

public java.lang.String getXmtaDefsId()
Get the defs id of the object.
Specified by:
getXmtaDefsId in interface DefsObject
Returns:
the unique id of this object.

getXmtaImageTextureId

public java.lang.String getXmtaImageTextureId(ELASid elasId)
Get the id for the ImageTexture element.

initDefsFlags

public void initDefsFlags()
Routine to initialize the defs query flags. This is added to provide consistency for all the classes that implement the DefsObject interface.
Specified by:
initDefsFlags in interface DefsObject

isDefsParent

public boolean isDefsParent()
Determine whether the object is a child of the defs element or not. This means that the object is a direct child of the defs element. It isn't a child if it isn't in the defs tree or is a descendent (starting at grandchild) of the defs element.
Specified by:
isDefsParent in interface DefsObject
Returns:
whether the object is a child of the defs element. True if it is a child of the defs element, false otherwise.

isInDefsTree

public boolean isInDefsTree()
Determine whether the object is in the defs tree or not. This means that the object is defined somewhere in the Defs tree. It may be a child or descendent of the defs element.
Specified by:
isInDefsTree in interface DefsObject
Returns:
whether the object is in the defs tree. True if a descendent of the defs element, false otherwise.

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

XMT-O Reference Software