public class IlvDataPoints extends IlvDoublePoints
Constructor and Description |
---|
IlvDataPoints(IlvDataSet dataSet,
int count)
Creates a new object associated with the given data set and allocates
storage for
count value pairs. |
IlvDataPoints(IlvDataSet dataSet,
int count,
double[] xValues,
double[] yValues,
int[] indices)
Creates a new object and initializes it with the given values and indices.
|
IlvDataPoints(int count)
Creates a new object and allocates storage for
count value
pairs. |
Modifier and Type | Method and Description |
---|---|
void |
add(double[] x,
double[] y,
int count)
Appends the specified values to this object.
|
void |
add(double[] x,
double[] y,
int[] indices,
int count)
Appends the specified values to this object.
|
void |
add(double x,
double y)
Appends the specified values to this object.
|
void |
add(double x,
double y,
int index)
Appends the specified values to this object.
|
void |
add(IlvDataPoints pts)
Appends the contents of the specified object.
|
void |
add(int insertIdx,
double[] x,
double[] y,
int count)
Inserts the specified values at the specified index.
|
void |
add(int insertIdx,
double[] x,
double[] y,
int[] indices,
int count)
Inserts the specified values at the specified index.
|
void |
dispose()
Releases the memory used by this object.
|
int |
getDataIndex(int i)
Deprecated.
Please use the method
getIndex(int) instead. |
IlvDataSet |
getDataSet()
Returns the data set to which these data points belong.
|
int |
getIndex(int index)
Returns the index of the specified data point.
|
int[] |
getIndices()
Returns the array holding all the indices.
|
void |
remove(int start,
int count)
Removes the specified points.
|
void |
setIndices(int[] indices,
int count)
Sets the indices of the stored data points.
|
String |
toString()
Returns a string representation of this object.
|
add, getX, getXFloor, getXValues, getXValuesClone, getY, getYFloor, getYValues, getYValuesClone, reset, set, setSize, setX, setY, size, swapXYValues
public IlvDataPoints(IlvDataSet dataSet, int count, double[] xValues, double[] yValues, int[] indices)
For optimal performance, you should dispose()
this object
when done with it.
public IlvDataPoints(int count)
count
value
pairs.
For optimal performance, you should dispose()
this object
when done with it.
public IlvDataPoints(IlvDataSet dataSet, int count)
count
value pairs.
For optimal performance, you should dispose()
this object
when done with it.
public void add(double x, double y)
-1
.add
in class IlvDoublePoints
x
- The new X value.y
- The new Y value.public void add(double x, double y, int index)
x
- The new x-value.y
- The new y-value.index
- The index of the data point.public void add(double[] x, double[] y, int count)
-1
.add
in class IlvDoublePoints
x
- The X values to add.y
- The Y values to add.count
- The number of values to add.public void add(double[] x, double[] y, int[] indices, int count)
x
- The X values to add.y
- The Y values to add.indices
- The indices of the values.count
- The number of values to add.public void add(int insertIdx, double[] x, double[] y, int count)
add
in class IlvDoublePoints
insertIdx
- The insertion index. This index must be less than or
equal to the number of values stored in this object.x
- The X values to insert.y
- The Y values to insert.count
- The number of values to insert.public void add(int insertIdx, double[] x, double[] y, int[] indices, int count)
insertIdx
- The insertion index. This index must be less than or
equal to the number of values stored in this object.x
- The X values to insert.y
- The Y values to insert.indices
- The indices of the values.count
- The number of values to insert.public void add(IlvDataPoints pts)
public void remove(int start, int count)
remove
in class IlvDoublePoints
start
- The index of the first point to remove.count
- The number of points to remove.public IlvDataSet getDataSet()
@Deprecated public final int getDataIndex(int i)
getIndex(int)
instead.public void setIndices(int[] indices, int count)
indices
- The new indices.count
- The number of provided indices. If this number is
inferior than the actual number of data points, an index equal to -1
will be assigned to these data points .public final int[] getIndices()
public final int getIndex(int index)
index
- The index of the considered data point within this object.public void dispose()
dispose
in class IlvDoublePoints
public String toString()
toString
in class IlvDoublePoints
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.