Package uk.ac.starlink.ttools.plot2.task
Class CoordSpec
java.lang.Object
uk.ac.starlink.ttools.plot2.task.CoordSpec
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 -
Method Summary
Modifier and TypeMethodDescriptionuk.ac.starlink.table.DomainMapper
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
Returns the domain mapper used to interpret the value, or null if the quantity is not domain-sensitive.Returns the name of the input quantity.Returns the expression giving the quantity's value, to be evaluated in the context of the host table.
-
Constructor Details
-
CoordSpec
public CoordSpec(String inputName, 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 Details
-
getInputName
Returns the name of the input quantity.- Returns:
- coordinate name
-
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
-