Package uk.ac.starlink.ttools.plot
Class SubsetSelectionPlotData
java.lang.Object
uk.ac.starlink.ttools.plot.WrapperPlotData
uk.ac.starlink.ttools.plot.SubsetSelectionPlotData
- All Implemented Interfaces:
PlotData
PlotData wrapper implementation which rearranges subset indexes.
- Since:
- 9 Apr 2008
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Methods inherited from class uk.ac.starlink.ttools.plot.WrapperPlotData
getNdim, getNerror, hasLabels
-
Constructor Details
-
SubsetSelectionPlotData
Constructor. Thei
th subset in this object will be the same as theisets[i]
th one frombase
.- Parameters:
base
- plot data on which this is basedisets
- list of the indices of subsets frombase
which are to appear in this object
-
-
Method Details
-
getSetCount
public int getSetCount()Description copied from interface:PlotData
Returns the number of subsets in this object.- Specified by:
getSetCount
in interfacePlotData
- Overrides:
getSetCount
in classWrapperPlotData
- Returns:
- subset count
-
getSetName
Description copied from interface:PlotData
Returns the name for a given subset.- Specified by:
getSetName
in interfacePlotData
- Overrides:
getSetName
in classWrapperPlotData
- 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
- Overrides:
getSetStyle
in classWrapperPlotData
- Parameters:
iset
- subset index- Returns:
- subset style
-
getPointSequence
Description copied from interface:PlotData
Returns an iterator over the data points in this object.- Specified by:
getPointSequence
in interfacePlotData
- Overrides:
getPointSequence
in classWrapperPlotData
- Returns:
- new point iterator
-