public class IntegerCoord extends SingleCoord
Modifier and Type | Class and Description |
---|---|
static class |
IntegerCoord.IntType
Enumerates the avaialable integer types.
|
Constructor and Description |
---|
IntegerCoord(InputMeta meta,
boolean isRequired,
IntegerCoord.IntType itype)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
readIntCoord(Tuple tuple,
int icol)
Reads an integer value from an appropriate field
in a given Tuple.
|
getInput, getInputs, getStorageType, isRequired
public IntegerCoord(InputMeta meta, boolean isRequired, IntegerCoord.IntType itype)
meta
- input value metadataisRequired
- true if this coordinate is required for plottingitype
- defines integer length usedpublic 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 int readIntCoord(Tuple tuple, int icol)
tuple
- tupleicol
- index of field in tuple corresponding to this CoordCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.