Coord
public class StringCoord extends SingleCoord
Constructor | Description |
---|---|
StringCoord(InputMeta meta,
boolean isRequired) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
inputToStorage(java.lang.Object[] values,
uk.ac.starlink.table.DomainMapper[] mappers) |
Turns a quantity in the user view to a plotting view object.
|
java.lang.String |
readStringCoord(Tuple tuple,
int icol) |
Reads a String value from an appropriate field of a given Tuple.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInput, getInputs, getStorageType, isRequired
public StringCoord(InputMeta meta, boolean isRequired)
meta
- input value metadataisRequired
- true if this coordinate is required for plottingpublic java.lang.Object inputToStorage(java.lang.Object[] values, 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
.
values
- per-input valuesmappers
- per-input domain mappers, each may be nullCoord.getStorageType()
; not nullpublic java.lang.String readStringCoord(Tuple tuple, int icol)
tuple
- tupleicol
- index of field in tuple corresponding to this CoordCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.