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.util.function.Function<Object[],Number> |
inputStorage(ValueInfo[] infos,
DomainMapper[] dms)
Provides a function to turn 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, toString
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.util.function.Function<Object[],Number> inputStorage(ValueInfo[] infos, DomainMapper[] dms)
Coord
The supplied infos
and domainMappers
arrays correspond to
(have the same length as) this object's Inputs array,
and may influence the return values. However, Coord instances
that always behave the same way (for instance whose Input Domains
have fixed DomainMappers) are free to ignore these arguments.
The returned function converts an array of per-input user values
to a storable object of the type corresponding to the result of
Coord.getStorageType()
; the return value of the returned function
is never null.
infos
- per-input array of column input metadatadms
- per-input array of input value->domain value
mapperspublic int readIntCoord(Tuple tuple, int icol)
tuple
- tupleicol
- index of field in tuple corresponding to this CoordCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.