XMT-O Reference Software

xmto2xmta.mapxmediachildren
Class XchTexture

java.lang.Object
  |
  +--xmto2xmta.MapRoot
        |
        +--xmto2xmta.mapxmediachildren.XchXmediaChildrenExternalElement
              |
              +--xmto2xmta.mapxmediachildren.XchTexture
All Implemented Interfaces:
MapInterface

public class XchTexture
extends XchXmediaChildrenExternalElement

Class to group together the Structure type of elements.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  texture treeTexture_
           
private  java.util.ResourceBundle xchTextureRes_
           
private  java.util.ResourceBundle xmto2XmtaRes_
           
 
Fields inherited from class xmto2xmta.mapxmediachildren.XchXmediaChildrenExternalElement
externalElementRes_, FILE_URL_PREFIX, mediaObjectInformation_, ODID_URL_PREFIX, treeXmediaChildExtElement_
 
Fields inherited from class xmto2xmta.MapRoot
treeElement_, xmto2xmta_
 
Constructor Summary
XchTexture()
           
 
Method Summary
protected  boolean createInsertMapping()
          Create the xMedia Child Element infrastructure.
protected  boolean createInsertMapping(ELASid elasId)
          Create the xMedia Child Element infrastructure.
protected  org.w3c.dom.Element createXmtaDefsMapping()
          Create the xMedia Children Element Defs infrastructure.
protected  org.w3c.dom.Element createXmtaMappingTexture(java.lang.String textureId, java.lang.String objectDescriptorId)
          Create the texture infrastructure.
protected  org.w3c.dom.Element createXmtaMappingTextureTransform(java.lang.String textureTransformId)
          Create the texture infrastructure.
 void doMapping()
           
private  boolean doTimingMapping()
           
protected  java.lang.String getReplaceAtNodeAttr(ELASid elasId)
          Get the XMTA node id in which the xMediaChild should be placed into.
 void init(Xmto2Xmta xmto2xmta, ConvertElement element)
           
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 
Methods inherited from class xmto2xmta.mapxmediachildren.XchXmediaChildrenExternalElement
createDeleteMapping, createInsertMappingOD, getMediaObjectInformation
 
Methods inherited from class xmto2xmta.MapRoot
fireErrorEvent, fireErrorEvent, fireErrorEvent, getConvertElement
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, 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).

treeTexture_

private texture treeTexture_

xmto2XmtaRes_

private java.util.ResourceBundle xmto2XmtaRes_

xchTextureRes_

private java.util.ResourceBundle xchTextureRes_
Constructor Detail

XchTexture

public XchTexture()
Method Detail

createInsertMapping

protected boolean createInsertMapping()
Create the xMedia Child Element infrastructure. The infrastructure contains the par node for the insertion. This insertMapping is because the XMT-O xMediaChild element is found underneath a <defs> element instead of a mediaObject (or some other timing object) element. Thus we need to insert into the defs infrastructure. The place in the defs infrastructure is the same for each xMediaChild element. Each xMediaChildStructure is going to have to have some xmta structure in order to be placed int the defs structure.
   <par begin="???">
     <Insert atNode="???">
       <Shape>
         <appearance>
           <Appearance>
             <texture>
             </texture>
             <textureTransform>
             </textureTransform>
           </Appearance>
         </appearance>
       </Shape>
     </Insert>
   </par>
 
Overrides:
createInsertMapping in class XchXmediaChildrenExternalElement

createInsertMapping

protected boolean createInsertMapping(ELASid elasId)
Create the xMedia Child Element infrastructure. The infrastructure contains the par node for the insertion. This insertMapping is because the XMT-O xMediaChild element is found underneath an mediaObject (or some other timing object) element. Thus we need to replace the XMT-A field with the appropriate XMT-A node.
   <par begin="???">
     <Replace atField="???" atNode="???"/>
     <Replace atField="???" atNode="???"/>
   </par>
 
Overrides:
createInsertMapping in class XchXmediaChildrenExternalElement

createXmtaDefsMapping

protected org.w3c.dom.Element createXmtaDefsMapping()
Create the xMedia Children Element Defs infrastructure. This creates the infrastructure necessary for the XMT-A Material2D element to fit in the defs section.
 <Shape>
   <appearance>
     <Appearance>
       <texture>
       </texture>
       <textureTransform>
       </textureTransform>
     </Appearance>
   </appearance>
 </Shape>
 

createXmtaMappingTexture

protected org.w3c.dom.Element createXmtaMappingTexture(java.lang.String textureId,
                                                       java.lang.String objectDescriptorId)
Create the texture infrastructure.

createXmtaMappingTextureTransform

protected org.w3c.dom.Element createXmtaMappingTextureTransform(java.lang.String textureTransformId)
Create the texture infrastructure.

doMapping

public void doMapping()

doTimingMapping

private boolean doTimingMapping()

getReplaceAtNodeAttr

protected java.lang.String getReplaceAtNodeAttr(ELASid elasId)
Get the XMTA node id in which the xMediaChild should be placed into.

init

public void init(Xmto2Xmta xmto2xmta,
                 ConvertElement element)
          throws java.lang.Exception
Overrides:
init in class XchXmediaChildrenExternalElement

setDebug

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

XMT-O Reference Software