|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.data.SingleCoord
uk.ac.starlink.ttools.plot2.data.StringCoord
public class StringCoord
Coord implementation for String values.
Constructor Summary | |
---|---|
StringCoord(InputMeta meta,
boolean isRequired)
Constructor. |
Method Summary | |
---|---|
Object |
inputToStorage(Object[] values,
DomainMapper[] mappers)
Turns a quantity in the user view to a plotting view object. |
String |
readStringCoord(TupleSequence tseq,
int icol)
Reads a String value from an appropriate column in the current row of a given TupleSequence. |
Methods inherited from class uk.ac.starlink.ttools.plot2.data.SingleCoord |
---|
getInput, getInputs, getStorageType, isRequired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringCoord(InputMeta meta, boolean isRequired)
meta
- input value metadataisRequired
- true if this coordinate is required for plottingMethod Detail |
---|
public Object inputToStorage(Object[] values, 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 null
Coord.getStorageType()
; not nullpublic String readStringCoord(TupleSequence tseq, int icol)
tseq
- sequence positioned at a rowicol
- index of column in sequence corresponding to this Coord
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |