|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jbeans.j3d.data.DataArray
net.jbeans.j3d.data.BitArray
BitArray is an array of bits (0/1 data value).
DataArray| Field Summary |
| Fields inherited from class net.jbeans.j3d.data.DataArray |
array, dimension, maxId, size, tupleT |
| Constructor Summary | |
BitArray()
|
|
BitArray(DataArray da)
|
|
BitArray(int dim)
Construct a new BitArray object. |
|
| Method Summary | |
boolean |
allocate(int size)
Allocate memory for this array. |
void |
copy(DataArray da)
|
boolean |
getBit(int id)
|
int |
getDataType()
Get the data type. |
double[] |
getTuple(int i)
Get a pointer to a tuple at the ith location. |
void |
getTuple(int i,
double[] tuple)
Copy the tuple value into a user-provided array. |
int |
getValue(int id)
Get the data at a particular index. |
void |
insertBit(int id,
boolean value)
|
int |
insertNextBit(boolean value)
|
int |
insertNextTuple(double[] tuple)
Insert (memory allocation performed) the tuple onto the end of the array. |
int |
insertNextValue(int i)
Insert data at the end of the array. |
void |
insertTuple(int i,
double[] tuple)
Insert (memory allocation performed) the tuple into the ith location in the array. |
void |
insertValue(int id,
int i)
Insert data at a specified position in the array. |
DataArray |
makeObject()
Virtual constructor creates object of same type as this object. |
protected java.lang.Object |
resize(int size)
resize the array. |
void |
setArray(byte[] array)
This method lets the user specify data to be held by the array. |
void |
setBit(int id,
boolean value)
|
void |
setNumberOfTuples(int number)
Set the number of tuples in the array. |
void |
setNumberOfValues(int number)
Specify the number of values for this object to hold. |
void |
setTuple(int i,
double[] tuple)
Set the tuple value at the ith location in the array. |
void |
setValue(int id,
int value)
Set the data at a particular index. |
| Methods inherited from class net.jbeans.j3d.data.DataArray |
ensureSpace, getData, getData, getDimension, getElement, getMaxId, getNumberOfTuples, getSize, initialize, insertElement, reset, setDimension, setElement, squeeze |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BitArray(int dim)
dim - the dimension of the tuple.public BitArray()
public BitArray(DataArray da)
| Method Detail |
public void copy(DataArray da)
copy in class DataArraypublic DataArray makeObject()
makeObject in class DataArraypublic boolean allocate(int size)
allocate in class DataArrayprotected java.lang.Object resize(int size)
resize in class DataArraypublic int getDataType()
getDataType in class DataArraypublic void setNumberOfTuples(int number)
setNumberOfTuples in class DataArraynumber - the number of tuples.
public double[] getTuple(int i)
getTuple in class DataArrayi - the index of the ith tuple.
public void getTuple(int i,
double[] tuple)
getTuple in class DataArrayi - tuple -
public void setTuple(int i,
double[] tuple)
setTuple in class DataArrayi - tuple -
public void insertTuple(int i,
double[] tuple)
insertTuple in class DataArrayi - tuple -
public int insertNextTuple(double[] tuple)
insertNextTuple in class DataArraytuple -
public int getValue(int id)
public boolean getBit(int id)
public void setNumberOfValues(int number)
public void setValue(int id,
int value)
public void setBit(int id,
boolean value)
public void insertValue(int id,
int i)
public void insertBit(int id,
boolean value)
public int insertNextValue(int i)
public int insertNextBit(boolean value)
public void setArray(byte[] array)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||