Package uk.ac.starlink.ttools.plot2.task
Class CoordValue
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.task.CoordValue
-
public class CoordValue extends java.lang.Object
Aggregates a coordinate specification and the expression strings that give its values.- Since:
- 22 Nov 2013
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description CoordValue(Coord coord, java.lang.String[] exprs, uk.ac.starlink.table.DomainMapper[] dms)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coord
getCoord()
Returns the coordinate definition.uk.ac.starlink.table.DomainMapper[]
getDomainMappers()
Returns the domain mappers used to decode the coordinate's input values, where known.java.lang.String[]
getExpressions()
Returns the user-supplied expressions for the coordinate's values.
-
-
-
Constructor Detail
-
CoordValue
public CoordValue(Coord coord, java.lang.String[] exprs, uk.ac.starlink.table.DomainMapper[] dms)
Constructor.- Parameters:
coord
- coordinate definitionexprs
- array of user-supplied expressions, one for each input value associated with the coordinatedms
- array of DomainMappers, one for each input value; individual elements may be null if no DomainMapper is known
-
-
Method Detail
-
getCoord
public Coord getCoord()
Returns the coordinate definition.- Returns:
- coord
-
getExpressions
public java.lang.String[] getExpressions()
Returns the user-supplied expressions for the coordinate's values.The returned array has coord.getInputs().length elements.
- Returns:
- expressions array
-
getDomainMappers
public uk.ac.starlink.table.DomainMapper[] getDomainMappers()
Returns the domain mappers used to decode the coordinate's input values, where known. Note that individual elements may be null if the domain mapper is not known; in this case downstream code will need to come up with a plausible value.The returned array has coord.getInputs().length elements.
- Returns:
- domain mapper array
-
-