Constructor and Description |
---|
ArrayPlotData(int nset,
String[] setNames,
Style[] setStyles,
int ndim,
int nerror,
boolean hasLabels,
PointData[] points)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ArrayPlotData |
copyPlotData(PlotData data)
Factory method which constructs a new ArrayPlotData object
with data which is a copy of that taken from a supplied
PlotData object. |
int |
getNdim()
Returns the dimensionality of data points in this object.
|
int |
getNerror()
Returns the number of error points per data point in this object.
|
PointData[] |
getPoints()
Returns the point array supplying the data for this object.
|
PointSequence |
getPointSequence()
Returns an iterator over the data points in this object.
|
int |
getSetCount()
Returns the number of subsets in this object.
|
String |
getSetName(int iset)
Returns the name for a given subset.
|
Style |
getSetStyle(int iset)
Returns the plotting style for a given subset.
|
boolean |
hasLabels()
Indicates whether there are or may be text labels
associated with the data points in this object.
|
void |
setPoints(PointData[] points)
Sets the point array supplying the data for this object.
|
public ArrayPlotData(int nset, String[] setNames, Style[] setStyles, int ndim, int nerror, boolean hasLabels, PointData[] points)
nset
- number of subsetssetNames
- nset
-element array of subset namessetStyles
- nset
-element array of subset stylesndim
- data point dimensionalitynerror
- number of error values for each pointhasLabels
- whether there are per-point text labelspoints
- point data arraypublic int getSetCount()
PlotData
getSetCount
in interface PlotData
public String getSetName(int iset)
PlotData
getSetName
in interface PlotData
iset
- subset indexpublic Style getSetStyle(int iset)
PlotData
getSetStyle
in interface PlotData
iset
- subset indexpublic int getNdim()
PlotData
getNdim
in interface PlotData
PointSequence.getPoint()
return valuespublic int getNerror()
PlotData
getNerror
in interface PlotData
PointSequence.getErrors()
return valuespublic boolean hasLabels()
PlotData
hasLabels
in interface PlotData
PointSequence.getLabel()
may have non-null returnspublic PointSequence getPointSequence()
PlotData
getPointSequence
in interface PlotData
public void setPoints(PointData[] points)
points
- point arraypublic PointData[] getPoints()
public static ArrayPlotData copyPlotData(PlotData data)
PlotData
object.data
- data object to copyCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.