|
CubeTwister 2.0alpha141 2011-10-13 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectidx3d.idx3d_CoreObject
idx3d.idx3d_Node
idx3d.idx3d_Group
public class idx3d_Group
The idx3d_Group node object is a general-purpose grouping node. Group nodes have exactly one parent and an arbitrary number of children. Operations on idx3d_Group node objects include adding, removing and enumerating the children of the idx3d_Group node. The subclasses of idx3d_Group node add additional semantics.
| Field Summary |
|---|
| Fields inherited from class idx3d.idx3d_Node |
|---|
EMPTY_ENUMERATION, parent |
| Fields inherited from class idx3d.idx3d_CoreObject |
|---|
matrix, normalmatrix |
| Constructor Summary | |
|---|---|
idx3d_Group()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addChild(idx3d_Node child)
Add a new child as the last child in the group. |
java.util.Enumeration |
children()
Return an enumeration of all children. |
idx3d_Node |
getChild(int index)
Returns the child at the specified index. |
int |
getChildCount()
Returns a count of the number of children. |
void |
insertChild(idx3d_Node child,
int index)
Insert a new child before the specified index. |
java.util.Enumeration |
preorderEnumeration()
Creates and returns an enumeration that traverses the subtree rooted at this node in preorder. |
void |
removeAllChildren()
Remove all children. |
void |
removeChild(idx3d_Node child)
Returns the specified child. |
void |
removeChild(int index)
Remove the child at the specified index. |
void |
setChild(idx3d_Node child,
int index)
Replace the child at the specified index. |
void |
validate()
Validates this node and all its children. |
| Methods inherited from class idx3d.idx3d_Node |
|---|
getParent, invalidate, isValid |
| Methods inherited from class idx3d.idx3d_CoreObject |
|---|
getPos, resetTransform, rotate, rotate, rotateSelf, rotateSelf, scale, scale, scaleSelf, scaleSelf, setPos, setPos, setTransform, shift, shift, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public idx3d_Group()
| Method Detail |
|---|
public final int getChildCount()
public final idx3d_Node getChild(int index)
public final void setChild(idx3d_Node child,
int index)
public final void insertChild(idx3d_Node child,
int index)
public final void removeChild(int index)
public final void removeChild(idx3d_Node child)
public final java.util.Enumeration children()
children in class idx3d_Nodepublic void removeAllChildren()
public final void addChild(idx3d_Node child)
public java.util.Enumeration preorderEnumeration()
nextElement() method is this node.Modifying the tree by inserting, removing, or moving a node invalidates any enumerations created before the modification.
public void validate()
validate in class idx3d_Node
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||