Package xj3d.filter.node
Class BaseGroup
java.lang.Object
xj3d.filter.node.BaseEncodable
xj3d.filter.node.BaseGroup
- Direct Known Subclasses:
Collision
,Group
,MatrixTransform
,Switch
,Transform
Base abstract impl wrapper for an X3D grouping nodes.
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Field Summary
FieldsFields inherited from class xj3d.filter.node.BaseEncodable
bch, defName, fieldReader, handler, HANDLER_BINARY, HANDLER_NULL, HANDLER_STRING, handlerType, nodeName, sch, useName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a child to this grouping node.void
addChildren
(Encodable[] enc) Add children to this grouping node.void
clear()
Clear the node fields to their initial valuesprotected void
copy
(BaseEncodable enc, boolean deep) Copy the working objects of this into the argument.void
encode()
Push the node contents to the ContentHandlerReturn the children of this grouping node.void
setChildren
(Encodable[] enc) Clear and set the children of this grouping node.void
Set the value of the named field.void
Set the value of the named field.Methods inherited from class xj3d.filter.node.BaseEncodable
clone, deepEquals, getDefName, getMetadata, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setMetadata, setUseName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xj3d.filter.node.Encodable
clone, deepEquals, getDefName, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setUseName
-
Field Details
-
children
-
-
Constructor Details
-
BaseGroup
-
-
Method Details
-
clear
public void clear()Clear the node fields to their initial values- Specified by:
clear
in interfaceEncodable
- Overrides:
clear
in classBaseEncodable
-
encode
public void encode()Push the node contents to the ContentHandler- Specified by:
encode
in interfaceEncodable
- Overrides:
encode
in classBaseEncodable
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValue
in interfaceEncodable
- Overrides:
setValue
in classBaseEncodable
- Parameters:
name
- The name of the field to set.value
- The value of the field.len
- The number of values in the array.
-
copy
Copy the working objects of this into the argument. Used by subclasses to initialize a clone.- Overrides:
copy
in classBaseEncodable
- Parameters:
enc
- The encodable to initialize.deep
- true to initialize this nodes fields, false otherwise.
-
setChildren
Clear and set the children of this grouping node.- Parameters:
enc
- The Child nodes to set as children of this grouping node. A value of null just performs a clear.
-
getChildren
Return the children of this grouping node.- Returns:
- The Child nodes of this grouping node.
-
addChildren
Add children to this grouping node.- Parameters:
enc
- The Child nodes to add to this grouping node.
-
addChild
Add a child to this grouping node.- Parameters:
enc
- A Child node to add to this grouping node.
-