|
|||||||||||
| 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.StringArray
StringArray 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 | |
StringArray()
|
|
StringArray(DataArray da)
|
|
StringArray(int dim)
Construct a new StringArray 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. |
java.lang.String |
getString(int i)
|
void |
getString(int i,
java.lang.String string)
|
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. |
java.lang.String |
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 |
insertNextString(java.lang.String string)
|
int |
insertNextTuple(double[] tuple)
Insert (memory allocation performed) the tuple onto the end of the array. |
int |
insertNextValue(java.lang.String c)
Insert data at the end of the array. |
void |
insertString(int i,
java.lang.String string)
|
void |
insertTuple(int i,
double[] tuple)
Insert (memory allocation performed) the tuple into the ith location in the array. |
void |
insertValue(int id,
java.lang.String 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(java.lang.String[] 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 |
setNumberOfStrings(int number)
|
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 |
setString(int i,
java.lang.String string)
|
void |
setTuple(int i,
double[] tuple)
Set the tuple value at the ith location in the array. |
void |
setValue(int id,
java.lang.String 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 StringArray(int dim)
dim - the dimension of the tuple. The dim
is always 1.public StringArray()
public StringArray(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 void setNumberOfStrings(int number)
public double[] getTuple(int i)
getTuple in class DataArrayi - the index of the ith tuple.
public java.lang.String getString(int i)
public void getTuple(int i,
double[] tuple)
getTuple in class DataArrayi - tuple -
public void getString(int i,
java.lang.String string)
public void setTuple(int i,
double[] tuple)
setTuple in class DataArrayi - tuple -
public void setString(int i,
java.lang.String string)
public void insertTuple(int i,
double[] tuple)
insertTuple in class DataArrayi - tuple -
public void insertString(int i,
java.lang.String string)
public int insertNextTuple(double[] tuple)
insertNextTuple in class DataArraytuple -
public int insertNextString(java.lang.String string)
public double getElement(int i,
int j)
getElement in class DataArrayi - the index to the ith tuple.j - the index to the jth element of the tuple.
public void setElement(int i,
int j,
double c)
setElement in class DataArrayi - the index to the ith tuple.j - the index to the jth element of the tuple.c - the element to be set.
public void insertElement(int i,
int j,
double c)
insertElement in class DataArraypublic java.lang.String getValue(int id)
public void setValue(int id,
java.lang.String value)
public void setNumberOfValues(int number)
public void insertValue(int id,
java.lang.String c)
public int insertNextValue(java.lang.String c)
public void setArray(java.lang.String[] array)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||