|
|||||||||||
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.CharArray
CharArray is an array of character values.
DataArray
Field Summary |
Fields inherited from class net.jbeans.j3d.data.DataArray |
array, dimension, maxId, size, tupleT |
Constructor Summary | |
CharArray()
|
|
CharArray(DataArray da)
|
|
CharArray(int dim)
Construct a new CharArray object. |
Method Summary | |
boolean |
allocate(int size)
Allocate memory for this array. |
void |
copy(DataArray da)
|
int |
getDataType()
Get the data type. |
double |
getElement(int i,
int j)
Return the data component at the ith tuple and jth component location. |
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. |
char |
getValue(int id)
Get the data at a particular index. |
void |
insertElement(int i,
int j,
double c)
Insert the data component at ith tuple and jth component location. |
int |
insertNextTuple(double[] tuple)
Insert (memory allocation performed) the tuple onto the end of the array. |
int |
insertNextValue(char c)
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,
char c)
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(char[] array)
This method lets the user specify data to be held by the array. |
void |
setElement(int i,
int j,
double c)
Set the data component at the ith tuple and jth component location. |
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,
char value)
Set the data at a particular index. |
Methods inherited from class net.jbeans.j3d.data.DataArray |
ensureSpace, getData, getData, getDimension, getMaxId, getNumberOfTuples, getSize, initialize, reset, setDimension, squeeze |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CharArray(int dim)
dim
- the dimension of the tuple.public CharArray()
public CharArray(DataArray da)
Method Detail |
public void copy(DataArray da)
copy
in class DataArray
public DataArray makeObject()
makeObject
in class DataArray
public boolean allocate(int size)
allocate
in class DataArray
protected java.lang.Object resize(int size)
resize
in class DataArray
public int getDataType()
getDataType
in class DataArray
public void setNumberOfTuples(int number)
setNumberOfTuples
in class DataArray
number
- the number of tuples.
public double[] getTuple(int i)
getTuple
in class DataArray
i
- the index of the i
th tuple.
public void getTuple(int i, double[] tuple)
getTuple
in class DataArray
i
- tuple
-
public void setTuple(int i, double[] tuple)
setTuple
in class DataArray
i
- tuple
-
public void insertTuple(int i, double[] tuple)
insertTuple
in class DataArray
i
- tuple
-
public int insertNextTuple(double[] tuple)
insertNextTuple
in class DataArray
tuple
-
public double getElement(int i, int j)
getElement
in class DataArray
i
- the index to the i
th tuple.j
- the index to the j
th element of the tuple.
public void setElement(int i, int j, double c)
setElement
in class DataArray
i
- the index to the i
th tuple.j
- the index to the j
th element of the tuple.c
- the element to be set.
public void insertElement(int i, int j, double c)
insertElement
in class DataArray
public char getValue(int id)
public void setValue(int id, char value)
public void setNumberOfValues(int number)
public void insertValue(int id, char c)
public int insertNextValue(char c)
public void setArray(char[] array)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |