|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CelestialCoordinateSystem> edu.nrao.sss.astronomy.CelestialCoordinateSystem
public enum CelestialCoordinateSystem
An enumeration of coordinate systems commonly used in astronomy.
Version Info:
$Revision: 952 $ |
$Date: 2007-10-05 10:25:17 -0600 (Fri, 05 Oct 2007) $ |
$Author: dharland $ |
Enum Constant Summary | |
---|---|
ECLIPTIC
A spherical system based on the center of the earth and the earth's orbit around the sun. |
|
EQUATORIAL
A spherical system based on the projection of the earth's equator onto the celestial sphere. |
|
GALACTIC
A spherical system based on the center of the sun and the central plane of our galaxy. |
|
HORIZONTAL
A spherical system based on the projection of the observer's horizon onto the celestial sphere. |
Method Summary | |
---|---|
static CelestialCoordinateSystem |
fromString(String text)
Returns the celestial coordinate system represented by text . |
String |
getAbbreviationForLatitude()
Returns the abbreviation commonly used for the latitude component of this system. |
String |
getAbbreviationForLongitude()
Returns the abbreviation commonly used for the longitude component of this system. |
static CelestialCoordinateSystem |
getDefault()
Returns a default coordinate system. |
String |
getNameOfLatitude()
Returns the name commonly used for the latitude component of this system. |
String |
getNameOfLongitude()
Returns the name commonly used for the longitude component of this system. |
String |
latitudeToString(Latitude latitude,
int minFracDigits,
int maxFracDigits)
Returns a text representation of latitude that is appropriate
for this coordinate system. |
String |
longitudeToString(Longitude longitude,
int minFracDigits,
int maxFracDigits)
Returns a text representation of longitude that is appropriate
for this coordinate system. |
String |
toString()
Returns a text representation of this enumeration constant. |
static CelestialCoordinateSystem |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CelestialCoordinateSystem[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CelestialCoordinateSystem EQUATORIAL
public static final CelestialCoordinateSystem HORIZONTAL
public static final CelestialCoordinateSystem GALACTIC
public static final CelestialCoordinateSystem ECLIPTIC
Method Detail |
---|
public static CelestialCoordinateSystem[] values()
for (CelestialCoordinateSystem c : CelestialCoordinateSystem.values()) System.out.println(c);
public static CelestialCoordinateSystem valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getNameOfLongitude()
public String getNameOfLatitude()
public String getAbbreviationForLongitude()
public String getAbbreviationForLatitude()
public String latitudeToString(Latitude latitude, int minFracDigits, int maxFracDigits)
latitude
that is appropriate
for this coordinate system. Note that this might not be the
same text returned by latitude.toString()
.
latitude
- the latitude to be represented as text.minFracDigits
- the minimum number of places after the decimal point.maxFracDigits
- the maximum number of places after the decimal point.
latitude
.public String longitudeToString(Longitude longitude, int minFracDigits, int maxFracDigits)
longitude
that is appropriate
for this coordinate system. Note that this might not be the
same text returned by longitude.toString()
.
longitude
- the longitude to be represented as text.minFracDigits
- the minimum number of places after the decimal point.maxFracDigits
- the maximum number of places after the decimal point.
longitude
.public static CelestialCoordinateSystem getDefault()
public String toString()
toString
in class Enum<CelestialCoordinateSystem>
public static CelestialCoordinateSystem fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a celestial coordinate system.
text
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |