|
|||||||||||
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 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 void setNumberOfStrings(int number)
public double[] getTuple(int i)
getTuple
in class DataArray
i
- the index of the i
th tuple.
public java.lang.String getString(int i)
public void getTuple(int i, double[] tuple)
getTuple
in class DataArray
i
- tuple
-
public void getString(int i, java.lang.String string)
public void setTuple(int i, double[] tuple)
setTuple
in class DataArray
i
- tuple
-
public void setString(int i, java.lang.String string)
public void insertTuple(int i, double[] tuple)
insertTuple
in class DataArray
i
- tuple
-
public void insertString(int i, java.lang.String string)
public int insertNextTuple(double[] tuple)
insertNextTuple
in class DataArray
tuple
-
public int insertNextString(java.lang.String string)
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 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 |