Class SolidAngleUnit
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.Unit
uk.ac.starlink.ttools.plot2.layer.SolidAngleUnit
Unit for solid angle quantities.
Base unit is a square degree.
- Since:
- 16 Jan 2018
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SolidAngleUnit
Square arcminute.static final SolidAngleUnit
Square arcsecond.static final SolidAngleUnit
Square degree.static final SolidAngleUnit
Square milliarcsecond.static final SolidAngleUnit
Steradian.static final SolidAngleUnit
Square microarcsecond. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the extent of this unit in square degrees.static SolidAngleUnit[]
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 Details
-
STERADIAN
Steradian. -
DEGREE2
Square degree. -
ARCMIN2
Square arcminute. -
ARCSEC2
Square arcsecond. -
MAS2
Square milliarcsecond. -
UAS2
Square microarcsecond.
-
-
Constructor Details
-
SolidAngleUnit
public SolidAngleUnit(String label, String textName, String symbol, AngleUnit linearAngleUnit, 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 Details
-
getExtentInSquareDegrees
public double getExtentInSquareDegrees()Returns the extent of this unit in square degrees.- Returns:
- same as extent
-
getKnownUnits
Returns an array of the defined solid angle units.- Returns:
- list of known values
-