stsci.sky
Class Star2D

java.lang.Object
  |
  +--stsci.sky.Star2D
All Implemented Interfaces:
ArchiveObject, java.io.Serializable

public class Star2D
extends java.lang.Object
implements ArchiveObject

A star with info for plotting in 2D * @author

See Also:
Serialized Form

Field Summary
protected  java.awt.Rectangle bounds
           
protected  Mag gmag
           
protected  int homex
           
protected  int homey
           
protected  int mux
           
protected  int muy
           
 ArchiveObject obj
           
protected  boolean shown
           
static boolean tails
           
protected  int x
           
protected  int y
           
 
Constructor Summary
Star2D(ArchiveObject obj)
           
 
Method Summary
 boolean after(int x, int y)
           
 double alpha()
           
 double b_v()
           
 java.lang.String bandcode()
           
 boolean before(int x, int y)
          Assumes Stars are sorted in a certain order - the order * @param x
 java.lang.String classification()
           
 double delta()
           
 double epoch()
           
 Mag getMag2D()
           
 java.lang.String header()
          A Line of text representing header for a onw line representaion of this object.
 java.lang.String id()
           
 double magnitude()
           
 void move(java.awt.Graphics g, int x, int y, int rightLimit, boolean tails, java.awt.Color c)
           
 double muAlpha()
           
 double muAlpha(int year)
          MuAlpha and MuDelta for the purpose of animation need to give the offset in degrees for a given year this means subtracting the zero year and converting to degrees.
 double muDelta()
           
 double muDelta(int year)
           
 boolean near(int x, int y)
          What does near mean ?? - Here it is relativly close to * @param x
 double paralax()
           
 void plot(java.awt.Graphics g, java.awt.Color c)
           
 void plot(java.awt.Graphics g, int x, int y, java.awt.Color c)
           
 void setXY(int x, int y)
           
 java.lang.String shortInfo()
           
 void showDetails(java.awt.Graphics g)
           
 void showDetails(java.awt.Graphics g, int rightLimit)
           
 void showDetails(java.awt.Graphics g, int x, int y)
           
 int status()
           
 java.lang.String toString()
           
 void unplot(java.awt.Graphics g, boolean tails)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bounds

protected java.awt.Rectangle bounds

x

protected int x

y

protected int y

homex

protected int homex

homey

protected int homey

mux

protected int mux

muy

protected int muy

shown

protected boolean shown

obj

public ArchiveObject obj

gmag

protected Mag gmag

tails

public static boolean tails
Constructor Detail

Star2D

public Star2D(ArchiveObject obj)
Parameters:
obj -  
Throws:
-  
Method Detail

getMag2D

public Mag getMag2D()
Returns:
Mag
Throws:
-  

plot

public void plot(java.awt.Graphics g,
                 int x,
                 int y,
                 java.awt.Color c)
Parameters:
g -  
x -  
y -  
c -  
Returns:
void
Throws:
-  

plot

public void plot(java.awt.Graphics g,
                 java.awt.Color c)
Parameters:
g -  
c -  
Returns:
void
Throws:
-  

unplot

public void unplot(java.awt.Graphics g,
                   boolean tails)
Parameters:
g -  
tails -  
Returns:
void
Throws:
-  

showDetails

public void showDetails(java.awt.Graphics g,
                        int rightLimit)
Parameters:
g -  
rightLimit -  
Returns:
void
Throws:
-  

showDetails

public void showDetails(java.awt.Graphics g)
Parameters:
g -  
Returns:
void
Throws:
-  

showDetails

public void showDetails(java.awt.Graphics g,
                        int x,
                        int y)
Parameters:
g -  
x -  
y -  
Returns:
void
Throws:
-  

near

public boolean near(int x,
                    int y)
What does near mean ?? - Here it is relativly close to * @param x
Parameters:
y -  
Returns:
boolean
Throws:
-  

before

public boolean before(int x,
                      int y)
Assumes Stars are sorted in a certain order - the order * @param x
Parameters:
y -  
Returns:
boolean
Throws:
-  

after

public boolean after(int x,
                     int y)
Parameters:
x -  
y -  
Returns:
boolean
Throws:
-  

move

public void move(java.awt.Graphics g,
                 int x,
                 int y,
                 int rightLimit,
                 boolean tails,
                 java.awt.Color c)
Parameters:
g -  
x -  
y -  
rightLimit -  
tails -  
c -  
Returns:
void
Throws:
-  

id

public java.lang.String id()
Specified by:
id in interface ArchiveObject
Returns:
String
Throws:
-  

magnitude

public double magnitude()
Specified by:
magnitude in interface ArchiveObject
Returns:
double
Throws:
-  

bandcode

public java.lang.String bandcode()
Specified by:
bandcode in interface ArchiveObject
Returns:
String
Throws:
-  

classification

public java.lang.String classification()
Specified by:
classification in interface ArchiveObject
Returns:
String
Throws:
-  

alpha

public double alpha()
Specified by:
alpha in interface ArchiveObject
Returns:
double
Throws:
-  

delta

public double delta()
Specified by:
delta in interface ArchiveObject
Returns:
double
Throws:
-  

paralax

public double paralax()
Specified by:
paralax in interface ArchiveObject
Returns:
double
Throws:
-  

muAlpha

public double muAlpha()
Specified by:
muAlpha in interface ArchiveObject
Returns:
double
Throws:
-  

muDelta

public double muDelta()
Specified by:
muDelta in interface ArchiveObject
Returns:
double
Throws:
-  

b_v

public double b_v()
Specified by:
b_v in interface ArchiveObject
Returns:
double
Throws:
-  

muAlpha

public double muAlpha(int year)
Description copied from interface: ArchiveObject
MuAlpha and MuDelta for the purpose of animation need to give the offset in degrees for a given year this means subtracting the zero year and converting to degrees.
Specified by:
muAlpha in interface ArchiveObject
Parameters:
year -  
Returns:
double
Throws:
-  

muDelta

public double muDelta(int year)
Specified by:
muDelta in interface ArchiveObject
Parameters:
year -  
Returns:
double
Throws:
-  

shortInfo

public java.lang.String shortInfo()
Returns:
String
Throws:
-  

setXY

public void setXY(int x,
                  int y)
Parameters:
x -  
y -  
Returns:
void
Throws:
-  

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String
Throws:
-  

header

public java.lang.String header()
Description copied from interface: ArchiveObject
A Line of text representing header for a onw line representaion of this object.
Specified by:
header in interface ArchiveObject
Returns:
String
Throws:
-  

epoch

public double epoch()
Specified by:
epoch in interface ArchiveObject

status

public int status()
Specified by:
status in interface ArchiveObject