iicm.vrml.pw
Class MFNode

java.lang.Object
  extended by iicm.vrml.pw.Field
      extended by iicm.vrml.pw.MultiField
          extended by iicm.vrml.pw.MFNode

public class MFNode
extends MultiField

MFNode - Field that holds a vector of nodes Copyright (c) 1996 IICM

Version:
0.1, latest change: 1 Oct 96
Author:
Michael Pichler, Karin Roschker

Field Summary
 java.util.Vector nodes
           
 
Fields inherited from class iicm.vrml.pw.Field
changed, class_, F_EVENTIN, F_EVENTOUT, F_EXPOSEDFIELD, F_FIELD, fieldClassName, IS_KEYWORD, protoIS, protoIScontent, protoISfield, protoISname, readerror, receiver_, STR_EVENTIN, STR_EVENTOUT, STR_EXPOSEDFIELD, STR_FALSE, STR_FIELD, STR_NULL, STR_TRUE, STR_X3d_EVENTIN, STR_X3d_EVENTOUT, STR_X3d_EXPOSEDFIELD, STR_X3d_FIELD, timeOfChange_
 
Constructor Summary
MFNode()
           
 
Method Summary
 void addNodes(java.util.Vector nds)
           
(package private)  boolean clearValues()
          clear current values (before reading new ones)
(package private)  void copyValue(Field source)
          copy field's value(s) to this field (of same type, non-null)
 java.lang.String fieldName()
          the field's type name
 java.util.Vector getNodes()
           
 int getValueCount()
           
(package private)  Field newFieldInstance()
          create a new instance of the prototyped field changed flags etc. will be virgin (not taken from proto field)
(package private)  void read1Value(VRMLparser parser)
          read and return a single field value
 void removeNodes(java.util.Vector nds)
           
 void setValue(Node[] nds)
           
(package private)  void writeValue(java.io.PrintStream os, java.util.Hashtable writtenrefs)
          write field's value(s) to an output stream
(package private)  void writeX3dValue(java.io.PrintStream os, java.util.Hashtable writtenrefs)
          write field's value(s) to an x3d output stream
(package private)  void writeX3dValue(java.io.PrintStream os, java.util.Hashtable writtenrefs, int depth)
           
 
Methods inherited from class iicm.vrml.pw.MultiField
readValue
 
Methods inherited from class iicm.vrml.pw.Field
addReceiver, disableRoutes, enableRoutes, fieldNameToX3d, getFieldClass, getFieldClassName, getIScontent, readBoolValue, readError, readFieldValue, readFloatValue, readIntValue, readISdeclaration, readISdeclaration, readStringValue, removeReceiver, routeExists, sendEvent, setEventCallback, setFieldClass, setIScontent, wasChanged, writeFieldValue, writeX3dFieldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

public java.util.Vector nodes
Constructor Detail

MFNode

public MFNode()
Method Detail

fieldName

public java.lang.String fieldName()
Description copied from class: Field
the field's type name

Specified by:
fieldName in class Field

newFieldInstance

Field newFieldInstance()
Description copied from class: Field
create a new instance of the prototyped field changed flags etc. will be virgin (not taken from proto field)

Specified by:
newFieldInstance in class Field

getValueCount

public final int getValueCount()
Specified by:
getValueCount in class MultiField
Returns:
number of field values

getNodes

public final java.util.Vector getNodes()

setValue

public final void setValue(Node[] nds)

copyValue

void copyValue(Field source)
Description copied from class: Field
copy field's value(s) to this field (of same type, non-null)

Specified by:
copyValue in class Field

read1Value

void read1Value(VRMLparser parser)
          throws java.io.IOException
Description copied from class: MultiField
read and return a single field value

Specified by:
read1Value in class MultiField
Throws:
java.io.IOException

clearValues

boolean clearValues()
Description copied from class: MultiField
clear current values (before reading new ones)

Specified by:
clearValues in class MultiField
Returns:
true if field was previosly non-empty

writeValue

void writeValue(java.io.PrintStream os,
                java.util.Hashtable writtenrefs)
Description copied from class: Field
write field's value(s) to an output stream

Specified by:
writeValue in class Field

writeX3dValue

void writeX3dValue(java.io.PrintStream os,
                   java.util.Hashtable writtenrefs)
Description copied from class: Field
write field's value(s) to an x3d output stream

Specified by:
writeX3dValue in class Field

writeX3dValue

void writeX3dValue(java.io.PrintStream os,
                   java.util.Hashtable writtenrefs,
                   int depth)

addNodes

public void addNodes(java.util.Vector nds)

removeNodes

public void removeNodes(java.util.Vector nds)