public class FloatingCoord extends SingleCoord
Modifier and Type | Field and Description |
---|---|
static FloatingCoord |
WEIGHT_COORD
Coordinate instance used for weighting values.
|
Modifier and Type | Method and Description |
---|---|
static FloatingCoord |
createCoord(InputMeta meta,
boolean isRequired)
Factory method to return an instance of this class.
|
static FloatingCoord |
createTimeCoord(InputMeta meta,
boolean isRequired)
Returns a new time coordinate.
|
java.lang.Object |
inputToStorage(java.lang.Object[] userValues,
uk.ac.starlink.table.DomainMapper[] mappers)
Turns a quantity in the user view to a plotting view object.
|
double |
readDoubleCoord(TupleSequence tseq,
int icol)
Reads a floating point value from an appropriate column
in the current row of a given TupleSequence.
|
getInput, getInputs, getStorageType, isRequired
public static FloatingCoord WEIGHT_COORD
public java.lang.Object inputToStorage(java.lang.Object[] userValues, uk.ac.starlink.table.DomainMapper[] mappers)
Coord
The supplied parameters both correspond (have the same length as)
this object's Inputs array.
For each Input, the corresponding element of the
inputValues
array gives the value obtained from
the user-supplied data (matching Input.getValueClass()
),
and the corresponding element of the inputMappers
array gives a DomainMapper object
(consistent with Input.getDomain()
).
InputMappers may be null however, and in many cases,
coordinates are not sensitive to domains,
and for those cases implementations will ignore
inputMappers
.
userValues
- per-input valuesmappers
- per-input domain mappers, each may be nullCoord.getStorageType()
; not nullpublic double readDoubleCoord(TupleSequence tseq, int icol)
tseq
- sequence positioned at a rowicol
- index of column in sequence corresponding to this Coordpublic static FloatingCoord createCoord(InputMeta meta, boolean isRequired)
PlotUtil.storeFullPrecision()
method.meta
- input value metadataisRequired
- true if this coordinate is required for plottingpublic static FloatingCoord createTimeCoord(InputMeta meta, boolean isRequired)
meta
- input value metadataisRequired
- true if this coordinate is required for plottingCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.