Class SolidAngleUnit
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.Unit
-
- uk.ac.starlink.ttools.plot2.layer.SolidAngleUnit
-
public class SolidAngleUnit extends Unit
Unit for solid angle quantities. Base unit is a square degree.- Since:
- 16 Jan 2018
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static SolidAngleUnitARCMIN2Square arcminute.static SolidAngleUnitARCSEC2Square arcsecond.static SolidAngleUnitDEGREE2Square degree.static SolidAngleUnitMAS2Square milliarcsecond.static SolidAngleUnitSTERADIANSteradian.static SolidAngleUnitUAS2Square microarcsecond.
-
Constructor Summary
Constructors Constructor Description SolidAngleUnit(java.lang.String label, java.lang.String textName, java.lang.String symbol, AngleUnit linearAngleUnit, java.lang.String description)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetExtentInSquareDegrees()Returns the extent of this unit in square degrees.static SolidAngleUnit[]getKnownUnits()Returns an array of the defined solid angle units.-
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.Unit
equals, getDescription, getExtent, getLabel, getSymbol, getTextName, hashCode, toString
-
-
-
-
Field Detail
-
STERADIAN
public static final SolidAngleUnit STERADIAN
Steradian.
-
DEGREE2
public static final SolidAngleUnit DEGREE2
Square degree.
-
ARCMIN2
public static final SolidAngleUnit ARCMIN2
Square arcminute.
-
ARCSEC2
public static final SolidAngleUnit ARCSEC2
Square arcsecond.
-
MAS2
public static final SolidAngleUnit MAS2
Square milliarcsecond.
-
UAS2
public static final SolidAngleUnit UAS2
Square microarcsecond.
-
-
Constructor Detail
-
SolidAngleUnit
public SolidAngleUnit(java.lang.String label, java.lang.String textName, java.lang.String symbol, AngleUnit linearAngleUnit, java.lang.String description)Constructor.- Parameters:
label- text to appear in a selection interfacetextName- text to appear in user-directed descriptive textsymbol- text to appear as unit metadata, preferably compatible with the VOUnit standardlinearAngleUnit- unit corresponding to the square root of thisdescription- textual description
-
-
Method Detail
-
getExtentInSquareDegrees
public double getExtentInSquareDegrees()
Returns the extent of this unit in square degrees.- Returns:
- same as extent
-
getKnownUnits
public static SolidAngleUnit[] getKnownUnits()
Returns an array of the defined solid angle units.- Returns:
- list of known values
-
-