Package uk.ac.starlink.ttools.plot2.task
Class CoordSpec
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.task.CoordSpec
-
public class CoordSpec extends java.lang.Object
Characterises a coordinate specification in sufficient detail to recreate it as part of a STILTS plotting command.- Since:
- 8 May 2020
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description CoordSpec(java.lang.String inputName, java.lang.String valueExpr, uk.ac.starlink.table.DomainMapper dm, uk.ac.starlink.table.DomainMapper dfltDm)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description uk.ac.starlink.table.DomainMapper
getDefaultDomainMapper()
Returns the domain mapper that would be used if none was given, or null if the quantity is not domain-sensitive or if no obvious default suggests itself.uk.ac.starlink.table.DomainMapper
getDomainMapper()
Returns the domain mapper used to interpret the value, or null if the quantity is not domain-sensitive.java.lang.String
getInputName()
Returns the name of the input quantity.java.lang.String
getValueExpr()
Returns the expression giving the quantity's value, to be evaluated in the context of the host table.
-
-
-
Constructor Detail
-
CoordSpec
public CoordSpec(java.lang.String inputName, java.lang.String valueExpr, uk.ac.starlink.table.DomainMapper dm, uk.ac.starlink.table.DomainMapper dfltDm)
Constructor.- Parameters:
inputName
- name of input quantity (coordinate name)valueExpr
- expression giving the quantity's value, to be evaluated in the context of the host tabledm
- domain mapper used to interpret the input value; null if the quantity is not domain-sensitivedfltDm
- domain mapper that would be used if none was given; null if the quantity is not domain-sensitive or if no obvious default suggests itself
-
-
Method Detail
-
getInputName
public java.lang.String getInputName()
Returns the name of the input quantity.- Returns:
- coordinate name
-
getValueExpr
public java.lang.String getValueExpr()
Returns the expression giving the quantity's value, to be evaluated in the context of the host table.- Returns:
- value expression (column name or JEL expression)
-
getDomainMapper
public uk.ac.starlink.table.DomainMapper getDomainMapper()
Returns the domain mapper used to interpret the value, or null if the quantity is not domain-sensitive.- Returns:
- domain mapper or null
-
getDefaultDomainMapper
public uk.ac.starlink.table.DomainMapper getDefaultDomainMapper()
Returns the domain mapper that would be used if none was given, or null if the quantity is not domain-sensitive or if no obvious default suggests itself.- Returns:
- default domain mapper, or null
-
-