XMT-O Reference Software

xmto2xmta.mapgroup
Class GrpRegion

java.lang.Object
  |
  +--xmto2xmta.MapRoot
        |
        +--xmto2xmta.mapgroup.GrpRegion
All Implemented Interfaces:
MapInterface

public class GrpRegion
extends MapRoot

Class to handle the conversion of the XMT-O element. The class name is XMTO instead of XMT-O since java doesn't allow a dash character in the class name.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  region treeRegion_
           
private  java.util.ResourceBundle xmto2XmtaRes_
           
 
Fields inherited from class xmto2xmta.MapRoot
treeElement_, xmto2xmta_
 
Constructor Summary
GrpRegion()
           
 
Method Summary
protected  boolean createInsertMapping()
          Create the group infrastructure.
 void doMapping()
           
 java.lang.String getOrderAttribute()
           
 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).

treeRegion_

private region treeRegion_

xmto2XmtaRes_

private java.util.ResourceBundle xmto2XmtaRes_
Constructor Detail

GrpRegion

public GrpRegion()
Method Detail

createInsertMapping

protected boolean createInsertMapping()
Create the group infrastructure. The infrastructure contains the par node for the insertion. The par node for the insertion contains the information for the element. This also takes care of the position in the ordered group field (for z-order).
   <par begin="0">
     <Insert atNode="???">
       <Transform2D DEF="???">
         <children>
           <Layer2D DEF="???" size="???">
             <children>
               <OrderedGroup DEF="???">
                 <children/>
               </OrderedGroup>
               <OrderedGroup DEF="???">
                 <children/>
               </OrderedGroup>
             </children>
           </Layer2D>
         </children>
       </Transform2D>
     </Insert>
     <Insert atField="order" atNode="???" position="END" value="???"/>
   </par>
 

doMapping

public void doMapping()

getOrderAttribute

public java.lang.String getOrderAttribute()

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