xmto2xmta.mapgroup
Class GrpGroup
java.lang.Object
|
+--xmto2xmta.MapRoot
|
+--xmto2xmta.mapgroup.GrpGroupElement
|
+--xmto2xmta.mapgroup.GrpGroup
- All Implemented Interfaces:
- MapInterface
- public class GrpGroup
- extends GrpGroupElement
Class to handle the conversion of the body element.
History:
- 13 Dec 2000 - Created file.
- 19 Apr 2001 - Add simple lifecycle support.
- 12 Jun 2001 - Add group node as base node to be consistent with media objects.
- 21 Jun 2001 - Fix crash in checking whether attribute is set. Needed && instead of ||.
- Make default for visibility to true.
- Add sizing support.
- Move Transform2D outside Layout2D
- 21 Jun 2001 - Disable the touchsensor by default. Enable it when it is used.
Field Summary |
private static boolean |
debug_
Whether debug information is to be printed to the console. |
private group |
treeGroup_
|
private java.util.ResourceBundle |
xmto2XmtaRes_
|
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).
treeGroup_
private group treeGroup_
xmto2XmtaRes_
private java.util.ResourceBundle xmto2XmtaRes_
GrpGroup
public GrpGroup()
createDeleteMapping
protected boolean createDeleteMapping(ELASid elasId)
- Create the group 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 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="???">
<Insert atNode="???">
<Group DEF="???">
<children>
<Switch DEF="???">
<choice>
<Layer2D DEF="???">
<children>
<Transform2D DEF="???">
<children>
<OrderedGroup DEF="???">
<children/>
</OrderedGroup>
</children>
</Transform2D>
</children>
</Layer2D>
</choice>
</Switch>
<TouchSensor DEF="???" enabled="false">
</children>
</Group>
</Insert>
<Insert atField="order" atNode="???" position="END"/>
</par>
doMapping
public void doMapping()
doTimingMapping
private boolean doTimingMapping()
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