public class WrapperPointSequence extends Object implements PointSequence
Constructor and Description |
---|
WrapperPointSequence(PointSequence base)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Call when this sequence is no longer required.
|
double[][] |
getErrors()
Reads the errors for the current row.
|
String |
getLabel()
Returns any text label associated with the current point.
|
double[] |
getPoint()
Reads the coordinates of the current point.
|
boolean |
isIncluded(int iset)
Indicates whether the current row is included in the given subset.
|
boolean |
next()
Attempts to advance the current row to the next one.
|
public WrapperPointSequence(PointSequence base)
base
- base objectpublic boolean next()
PointSequence
true
is returned the attempt has been successful,
and if false
is returned there are no more rows in
this sequence. Since the initial position of this sequence is before
the first row, this method must be called before calling any of the
data access methods.next
in interface PointSequence
public double[] getPoint()
PointSequence
getPoint
in interface PointSequence
public double[][] getErrors()
PointSequence
nerror
double[] arrays,
each of which has ndim
elements and represents the
coordinates of the end of an error bar. If any of these
coordinate arrays is null
, it represents an error
bar of zero size, that is one whose end sits right on the data point.
The ordering of these points is up to the user of this object,
but typically they will be in pairs, e.g. (xlo,xhi, ylo,hi, ...).
The content of the returned double[][] array and of its elements
may be modified by subsequent calls to this method. The caller is
also permitted to modify these.getErrors
in interface PointSequence
public String getLabel()
PointSequence
getLabel
in interface PointSequence
public boolean isIncluded(int iset)
PointSequence
isIncluded
in interface PointSequence
iset
is includedpublic void close()
PointSequence
close
in interface PointSequence
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.