XMT-O Reference Software

xmto2xmta.mapuse
Class UseMediaGroupElement

java.lang.Object
  |
  +--xmto2xmta.MapRoot
        |
        +--xmto2xmta.mapuse.UseTimingElement
              |
              +--xmto2xmta.mapuse.UseMediaGroupElement
All Implemented Interfaces:
MapInterface

public class UseMediaGroupElement
extends UseTimingElement

Class to handle the conversion of the body element.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  use treeUse_
           
private  java.util.ResourceBundle xmto2XmtaRes_
           
 
Fields inherited from class xmto2xmta.MapRoot
treeElement_, xmto2xmta_
 
Constructor Summary
UseMediaGroupElement()
           
 
Method Summary
protected  boolean createDeleteMapping(ELASid elasId)
          Create the media Element infrastructure.
protected  boolean createInsertMapping(ELASid elasId)
          Create the media Element infrastructure.
private  org.w3c.dom.Element createXmtaMapping(ELASid elasId)
          Create the media Element infrastructure.
 void doMapping()
           
private  boolean doTimingMapping()
           
protected  boolean fillInTransform2dChildren(org.w3c.dom.Element transform2dChildren, ELASid elasId)
          Create the rectangle infrastructure.
 void init(Xmto2Xmta xmto2xmta, ConvertElement element)
           
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 java.lang.String toString()
           
 
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, 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).

treeUse_

private use treeUse_

xmto2XmtaRes_

private java.util.ResourceBundle xmto2XmtaRes_
Constructor Detail

UseMediaGroupElement

public UseMediaGroupElement()
Method Detail

createDeleteMapping

protected boolean createDeleteMapping(ELASid elasId)
Create the media Element infrastructure. The infrastructure contains the par node for the deletion. The par for the deletion, deletes the top level group for the element. It also takes care of the position in the ordered group field (for z-order)
   <par begin="???">
     <Delete atNode="???"/>
     <Delete atField="order" atNode="???"/>
   </par>
 

createInsertMapping

protected boolean createInsertMapping(ELASid elasId)
Create the media Element infrastructure. The infrastructure contains the par node for the insertion. The par node for the insertion contains the top level group which will contain the information for the element. This also takes care of the position in the ordered group field (for z-order).
   <par begin="???">
     <Insert atNode="???">
       <Group DEF="???">
         <children>
           <TouchSensor DEF="???" enabled="false">
         </children>
       </Group>
     </Insert>
     <Insert atField="order" atNode="???" position="END" value="???"/>
   </par>
 

createXmtaMapping

private org.w3c.dom.Element createXmtaMapping(ELASid elasId)
Create the media Element infrastructure. The infrastructure contains the switch and the transform are the standard base nodes for the element. Where it is placed in the tree is dependent on the begin and end timing for the element. <Switch DEF="???"> <choice> <Transform2D DEF="???"> <children/> </Transform2D> </choice> </Switch>

doMapping

public void doMapping()

doTimingMapping

private boolean doTimingMapping()

fillInTransform2dChildren

protected boolean fillInTransform2dChildren(org.w3c.dom.Element transform2dChildren,
                                            ELASid elasId)
Create the rectangle infrastructure.
 <Group USE="???"/>
 

init

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

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 java.lang.Object

XMT-O Reference Software