Package uk.ac.starlink.ttools.plot
Class WrapperPlotData
java.lang.Object
uk.ac.starlink.ttools.plot.WrapperPlotData
- All Implemented Interfaces:
PlotData
- Direct Known Subclasses:
SubsetSelectionPlotData
PlotData implementation based on an existing PlotData object.
All behaviour is delegated to the base.
- Since:
- 24 Apr 2008
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetNdim()Returns the dimensionality of data points in this object.intReturns the number of error points per data point in this object.Returns an iterator over the data points in this object.intReturns 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.booleanIndicates whether there are or may be text labels associated with the data points in this object.
-
Constructor Details
-
WrapperPlotData
Constructor.- Parameters:
base- base plot data
-
-
Method Details
-
getNdim
public int getNdim()Description copied from interface:PlotDataReturns the dimensionality of data points in this object.- Specified by:
getNdimin interfacePlotData- Returns:
- length of
PointSequence.getPoint()return values
-
getNerror
public int getNerror()Description copied from interface:PlotDataReturns the number of error points per data point in this object.- Specified by:
getNerrorin interfacePlotData- Returns:
- length of
PointSequence.getErrors()return values
-
getSetCount
public int getSetCount()Description copied from interface:PlotDataReturns the number of subsets in this object.- Specified by:
getSetCountin interfacePlotData- Returns:
- subset count
-
getSetName
Description copied from interface:PlotDataReturns the name for a given subset.- Specified by:
getSetNamein interfacePlotData- Parameters:
iset- subset index- Returns:
- subset name
-
getSetStyle
Description copied from interface:PlotDataReturns the plotting style for a given subset.- Specified by:
getSetStylein interfacePlotData- Parameters:
iset- subset index- Returns:
- subset style
-
hasLabels
public boolean hasLabels()Description copied from interface:PlotDataIndicates whether there are or may be text labels associated with the data points in this object.- Specified by:
hasLabelsin interfacePlotData- Returns:
- true if
PointSequence.getLabel()may have non-null returns
-
getPointSequence
Description copied from interface:PlotDataReturns an iterator over the data points in this object.- Specified by:
getPointSequencein interfacePlotData- Returns:
- new point iterator
-