|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart3djava.DoubleArray
com.quinncurtis.chart3djava.TimeArray
public class TimeArray
Constructor Summary | |
---|---|
TimeArray()
Default constructor. |
|
TimeArray(java.util.GregorianCalendar[] x)
Constructor initializes the array using the specified data values. |
|
TimeArray(java.util.GregorianCalendar[] x,
int maxcap)
Constructor initializes the array using the specified data values. |
|
TimeArray(int n)
Constructor creates an array of Length n, initialized to zero. |
Method Summary | |
---|---|
int |
add(java.util.GregorianCalendar r)
Adds a new element at the end of the array, increasing the length of the array by one. |
int |
addRange(java.util.GregorianCalendar[] x)
Adds a array of new values at the end of the array, increasing the length of the array by the length of the source array. |
static void |
arrayCopy(java.util.GregorianCalendar[] source,
int sourceoffset,
double[] dest,
int destoffset,
int count)
Copy routine for arrays of Time objects. |
java.lang.Object |
clone()
Returns an object that is a clone of this array object. |
void |
copy(TimeArray source)
Copies the source array to the current instance. |
java.util.GregorianCalendar[] |
getTimeDataBuffer()
Returns a reference to the Array object that represents protected data buffer. |
java.util.GregorianCalendar |
getTimeElement(int index)
Get the value of a single element in the array. |
java.util.GregorianCalendar[] |
getTimeElements()
Returns a copy of the data values in the array sized to the number of elements. |
void |
setElement(int index,
java.util.GregorianCalendar r)
Set the value of a single element in the array. |
int |
setElements(java.util.GregorianCalendar[] source)
Initializes the elements of the array, starting at element 0. |
int |
setElements(java.util.GregorianCalendar[] source,
int count)
Initializes the elements of the array, starting at element 0 and continuing for count elements. |
int |
setElements(TimeArray source)
Initializes the elements of the array, starting at element 0. |
int |
setElements(TimeArray source,
int count)
Initializes the elements of the array, starting at element 0 and continuing for count elements. |
java.util.GregorianCalendar[] |
TimeDataBuffer()
Returns a reference to the Array object that represents protected data buffer. |
Methods inherited from class com.quinncurtis.chart3djava.DoubleArray |
---|
add, addRange, arrayCopy, clear, copy, copyArray, DataBuffer, delete, getDataBuffer, getElement, getElements, insert, length, maxCapacity, nDCopy, removeAt, reset, resize, resizeCapacity, setElement, setElements, setElements, setElements, setElements, setLength, shiftLeft, shiftLeftThenResize, shiftRight, TrimToSize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeArray()
public TimeArray(int n)
n
- The array is sized to n elements.public TimeArray(java.util.GregorianCalendar[] x, int maxcap)
x
- The initializing data values.maxcap
- The protected buffer holding the data values is sized to the value of maxcap.
If the number of data values exceeds the maxcap limit, the size of maxcap is automatically doubled.public TimeArray(java.util.GregorianCalendar[] x)
x
- The initializing data values.Method Detail |
---|
public static void arrayCopy(java.util.GregorianCalendar[] source, int sourceoffset, double[] dest, int destoffset, int count)
source
- Source arraysourceoffset
- Offset to start copying fromdest
- Destination arraydestoffset
- Destination offset to start copying to.count
- Number of elements to copypublic void copy(TimeArray source)
source
- The source array object.public java.lang.Object clone()
clone
in class DoubleArray
public int add(java.util.GregorianCalendar r)
r
- The new value to add at the end of the array.
public int addRange(java.util.GregorianCalendar[] x)
x
- An array of new values that are added to the end of the array.
public int setElements(java.util.GregorianCalendar[] source)
source
- An array of new values used to initialize the array. The
array will end up the same size as the source array.
public int setElements(java.util.GregorianCalendar[] source, int count)
source
- An array of new values used to initialize the array. The
array will end up the same size as the source array, or the count value, whichever is smaller.count
- Specifies the number of elements to initialize.
public int setElements(TimeArray source, int count)
source
- An array of new values used to initialize the array. The
array will end up the same size as the source array, or the count value, whichever is smaller.count
- Specifies the number of elements to initialize.
public int setElements(TimeArray source)
source
- An array of new values used to initialize the array. The
array will end up the same size as the source array.
public void setElement(int index, java.util.GregorianCalendar r)
index
- The index to set in the array.r
- The array element at index is set to the value r.*public java.util.GregorianCalendar getTimeElement(int index)
index
- The array index.
public java.util.GregorianCalendar[] getTimeDataBuffer()
public java.util.GregorianCalendar[] getTimeElements()
public java.util.GregorianCalendar[] TimeDataBuffer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |