edu.pdx.starview.planets
Class PlanetData

java.lang.Object
  extended byedu.pdx.starview.imaging.SVSkyObject
      extended byedu.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

Field Summary
static int EARTH
           
static int JUPITER
           
static int LUNA
           
static int MARS
           
static int MERCURY
           
static int NAP
           
static int NEPTUNE
           
static int PLUTO
           
static int SATURN
           
static int SUN
           
static int URANUS
           
static int VENUS
           
 
Constructor Summary
PlanetData()
           
 
Method Summary
static SVAzAlt[] getAllPlanetLocs(double JDOfObservation, SVAngle observerLat, SVAngle observerLong)
           
static SVAzAlt getAzAltOfPlanet(int thePlanet, double JDOfObservation, SVAngle observerLat, SVAngle observerLong)
           
 java.awt.Color getColor()
           
 int getSize()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PlanetData

public PlanetData()
Method Detail

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 observation
observerLat - The latitude of the observer
observerLong - 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.