public abstract class TablePlotData extends Object implements PlotData
| Modifier | Constructor and Description |
|---|---|
protected |
TablePlotData(StarTable table,
String[] setExprs,
String[] setNames,
Style[] setStyles,
String labelExpr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkExpressions()
Checks that any JEL expressions used by the data for this object
compile correctly.
|
protected abstract PointSequence |
createPointSequence(SequentialJELRowReader rseq)
Constructs a point sequence suitable for dispensing by this plot data.
|
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.
|
protected TablePlotData(StarTable table, String[] setExprs, String[] setNames, Style[] setStyles, String labelExpr)
table - table this data is based onsetExprs - nset-element array of JEL boolean expressions
for subset inclusion criteriasetNames - nset-element array of subset namessetStyles - nset-element array of subset plot styleslabelExpr - JEL String expression for text labelprotected abstract PointSequence createPointSequence(SequentialJELRowReader rseq) throws gnu.jel.CompilationException
rseq - row reader representing this data's tablegnu.jel.CompilationExceptionpublic int getSetCount()
PlotDatagetSetCount in interface PlotDatapublic String getSetName(int iset)
PlotDatagetSetName in interface PlotDataiset - subset indexpublic Style getSetStyle(int iset)
PlotDatagetSetStyle in interface PlotDataiset - subset indexpublic boolean hasLabels()
PlotDatahasLabels in interface PlotDataPointSequence.getLabel() may have non-null returnspublic PointSequence getPointSequence()
PlotDatagetPointSequence in interface PlotDatapublic void checkExpressions()
throws gnu.jel.CompilationException
createPointSequence(uk.ac.starlink.ttools.jel.SequentialJELRowReader) is made.gnu.jel.CompilationException - if one is thrown by createPointSequenceCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.