Class AreaMapper
java.lang.Object
uk.ac.starlink.ttools.AreaMapper
- All Implemented Interfaces:
uk.ac.starlink.table.DomainMapper
DomainMapper for AreaDomain.
- Since:
- 14 Apr 2020
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAreaMapper(String sourceName, String sourceDescription, Class<?> sourceClazz) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionareaFunction(Class<?> aclazz) Returns a function that can map source objects of a given class to corresponding Area instances.Returns a version of the source description text that is suitable for use in the context of sky coordinates.Class<?> toString()
-
Constructor Details
-
AreaMapper
-
-
Method Details
-
getTargetDomain
- Specified by:
getTargetDomainin interfaceuk.ac.starlink.table.DomainMapper- Returns:
AreaDomain.INSTANCE
-
getSourceClass
- Specified by:
getSourceClassin interfaceuk.ac.starlink.table.DomainMapper
-
getSourceName
- Specified by:
getSourceNamein interfaceuk.ac.starlink.table.DomainMapper
-
getSourceDescription
- Specified by:
getSourceDescriptionin interfaceuk.ac.starlink.table.DomainMapper
-
getSkySourceDescription
Returns a version of the source description text that is suitable for use in the context of sky coordinates.The default implementation simply calls
getSourceDescription().- Returns:
- sky description
-
areaFunction
-
toString
-