Package uk.ac.starlink.ttools.plot
Class MultiPlotData
java.lang.Object
uk.ac.starlink.ttools.plot.MultiPlotData
- All Implemented Interfaces:
PlotData
PlotData implementation which aggregates a set of constituent PlotDatas.
- Since:
- 22 Apr 2008
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getNdim()
Returns the dimensionality of data points in this object.int
Returns the number of error points per data point in this object.Returns an iterator over the data points in this object.int
Returns the number of subsets in this object.getSetName
(int iset) Returns the name for a given subset.getSetStyle
(int iset) Returns the plotting style for a given subset.boolean
Indicates whether there are or may be text labels associated with the data points in this object.
-
Constructor Details
-
MultiPlotData
Constructor.- Parameters:
datas
- constituent plot data objects
-
-
Method Details
-
getNdim
public int getNdim()Description copied from interface:PlotData
Returns the dimensionality of data points in this object.- Specified by:
getNdim
in interfacePlotData
- Returns:
- length of
PointSequence.getPoint()
return values
-
getNerror
public int getNerror()Description copied from interface:PlotData
Returns the number of error points per data point in this object.- Specified by:
getNerror
in interfacePlotData
- Returns:
- length of
PointSequence.getErrors()
return values
-
getSetCount
public int getSetCount()Description copied from interface:PlotData
Returns the number of subsets in this object.- Specified by:
getSetCount
in interfacePlotData
- Returns:
- subset count
-
getSetName
Description copied from interface:PlotData
Returns the name for a given subset.- Specified by:
getSetName
in interfacePlotData
- Parameters:
iset
- subset index- Returns:
- subset name
-
getSetStyle
Description copied from interface:PlotData
Returns the plotting style for a given subset.- Specified by:
getSetStyle
in interfacePlotData
- Parameters:
iset
- subset index- Returns:
- subset style
-
hasLabels
public boolean hasLabels()Description copied from interface:PlotData
Indicates whether there are or may be text labels associated with the data points in this object.- Specified by:
hasLabels
in interfacePlotData
- Returns:
- true if
PointSequence.getLabel()
may have non-null returns
-
getPointSequence
Description copied from interface:PlotData
Returns an iterator over the data points in this object.- Specified by:
getPointSequence
in interfacePlotData
- Returns:
- new point iterator
-