|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plottask.TablePlotData
public abstract class TablePlotData
Abstract superclass for PlotData implementation representing the data from a single table with associated expressions describing coordinate selections etc. Concrete subclasses must see to provision of coordinate and error data.
Constructor Summary | |
---|---|
protected |
TablePlotData(uk.ac.starlink.table.StarTable table,
String[] setExprs,
String[] setNames,
Style[] setStyles,
String labelExpr)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.ttools.plot.PlotData |
---|
getNdim, getNerror |
Constructor Detail |
---|
protected TablePlotData(uk.ac.starlink.table.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 labelMethod Detail |
---|
protected abstract PointSequence createPointSequence(SequentialJELRowReader rseq) throws gnu.jel.CompilationException
rseq
- row reader representing this data's table
gnu.jel.CompilationException
public int getSetCount()
PlotData
getSetCount
in interface PlotData
public String getSetName(int iset)
PlotData
getSetName
in interface PlotData
iset
- subset index
public Style getSetStyle(int iset)
PlotData
getSetStyle
in interface PlotData
iset
- subset index
public boolean hasLabels()
PlotData
hasLabels
in interface PlotData
PointSequence.getLabel()
may have non-null returnspublic PointSequence getPointSequence()
PlotData
getPointSequence
in interface PlotData
public void checkExpressions() throws gnu.jel.CompilationException
createPointSequence(uk.ac.starlink.ttools.jel.SequentialJELRowReader)
is made.
gnu.jel.CompilationException
- if one is thrown by createPointSequence
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |