edu.pdx.starview.planets
Class PlanetData
java.lang.Object
edu.pdx.starview.imaging.SVSkyObject
edu.pdx.starview.planets.PlanetData
- public class PlanetData
- extends SVSkyObject
This contains a list of all the planets, and provides methods to do back-end calculations
of their locations at any point in time.
- Author:
- Dave Camarillo, Mark Huss
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAP
public static final int NAP
- See Also:
- Constant Field Values
SUN
public static final int SUN
- See Also:
- Constant Field Values
MERCURY
public static final int MERCURY
- See Also:
- Constant Field Values
VENUS
public static final int VENUS
- See Also:
- Constant Field Values
EARTH
public static final int EARTH
- See Also:
- Constant Field Values
MARS
public static final int MARS
- See Also:
- Constant Field Values
JUPITER
public static final int JUPITER
- See Also:
- Constant Field Values
SATURN
public static final int SATURN
- See Also:
- Constant Field Values
URANUS
public static final int URANUS
- See Also:
- Constant Field Values
NEPTUNE
public static final int NEPTUNE
- See Also:
- Constant Field Values
PLUTO
public static final int PLUTO
- See Also:
- Constant Field Values
LUNA
public static final int LUNA
- See Also:
- Constant Field Values
PlanetData
public PlanetData()
getAzAltOfPlanet
public static SVAzAlt getAzAltOfPlanet(int thePlanet,
double JDOfObservation,
SVAngle observerLat,
SVAngle observerLong)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAllPlanetLocs
public static SVAzAlt[] getAllPlanetLocs(double JDOfObservation,
SVAngle observerLat,
SVAngle observerLong)
throws java.lang.Exception
- Parameters:
JDOfObservation
- The julian date of observationobserverLat
- The latitude of the observerobserverLong
- The longitude of the observer
- Returns:
- A list of azimuth and altitudes of the planets
- Throws:
java.lang.Exception
- If somthing bad happens
getSize
public int getSize()
- Overrides:
getSize
in class SVSkyObject
- Returns:
- The size of the point to be displayed
getColor
public java.awt.Color getColor()
- Overrides:
getColor
in class SVSkyObject
- Returns:
- The color of the point to be displayed.