Xj3D 2.0 VRML/X3D Code API

vrml
Class MField

java.lang.Object
  extended by vrml.Field
      extended by vrml.MField
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
MFColor, MFFloat, MFInt32, MFNode, MFRotation, MFString, MFTime, MFVec2f, MFVec3f

public abstract class MField
extends Field

Java binding for multiple value fields.

Version:
$Revision: 1.5 $
Author:
Alan Hudson

Field Summary
protected  int numElements
          The number of elements registered in this class
 
Fields inherited from class vrml.Field
valueChanged
 
Constructor Summary
MField()
           
 
Method Summary
abstract  void clear()
          Clear all values from this field.
abstract  void delete(int index)
          Delete the element at the given index.
 int getSize()
          Get the number of elements in the current field
 
Methods inherited from class vrml.Field
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numElements

protected int numElements
The number of elements registered in this class

Constructor Detail

MField

public MField()
Method Detail

getSize

public int getSize()
Get the number of elements in the current field

Returns:
The number of elements

clear

public abstract void clear()
Clear all values from this field. Leaves the size of the field empty


delete

public abstract void delete(int index)
Delete the element at the given index. All elements above it are shuffled down to take its place

Parameters:
index - the index of the element to delete

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium